如上所述here,我无法在Cygwin上成功构建和测试memcached 1.4.15。我能够在3个修复之后构建,一个用于从Makefile中删除-Werror
CFLAG,第二个用于sanitytest
转换为int,第三个用于testapp.c
代码更改为{ {3}}。但是,当我运行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-debug.exe
)后,我以守护进程模式启动了memcached可执行文件(-d
)并使用详细的控制台输出(-vv
),这是我看到的输出:
服务器(Cygwin bash shell):
<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稳定
memcached1.4.15
有人可以帮我解决这个问题吗?
提前谢谢..