如此处所述,我无法在Cygwin 上成功构建和测试 memcached 1.4.15 。我能够在 3 次修复之后进行构建,一次用于-Werror
从 Makefile 中删除 CFLAG,第二次用于sanitytest
强制转换为 int,第三次用于testapp.c
代码更改,如上所述。但是,当我运行时,testapp.exe
我得到以下输出:
$ ./testapp.exe
1..47
ok 1 - cache_create
ok 2 - cache_constructor
ok 3 - cache_constructor_fail
ok 4 - cache_destructor
ok 5 - cache_reuse
ok 6 - cache_redzone
ok 7 - issue_161
ok 8 - strtol
ok 9 - strtoll
ok 10 - strtoul
ok 11 - strtoull
ok 12 - issue_44
ok 13 - vperror
在杀死作为 testapp 运行的一部分触发的守护进程(testrun.exe
和)之后,我以守护模式( )和详细的控制台输出()启动了 memcached 可执行文件,这是我看到的输出:
服务器(Cygwin bash 外壳):memcached-debug.exe
-d
-vv
<24 server listening (udp)
<24 server listening (udp)
<25 new auto-negotiating client connection
25: Client using the ascii protocol
<25 stats
Failed to write, and not due to blocking: Address family not supported by protocol
<25 connection closed.
客户端(MS-DOS 命令提示符):
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
stats
Connection closed by foreign host.
我的本地环境是:-
Windows 7 x64
Cygwin
gcc 4.5.3
libevent2.0.20-stable
memcached1.4.15
有人可以帮我解决这个问题吗?
提前致谢..