andelf fledna Feather

2008年10月9日星期四

compile wget 1.11.4 using mingw32/dev-cpp with inet6 support

I want to get the -6 option of wget, that is --inet6-only. as on my debian computer.
so I enabled SSL support and compile normally, but inet6 can't work.
I searched config.h and found:
/* Define if IPv6 support is enabled. */
/* #undef ENABLE_IPV6 */
simplily add: #define ENABLE_IPV6
but make report error message:
host.o:host.c:(.text+0x285): undefined reference to `getaddrinfo@16'
host.o:host.c:(.text+0x6d4): undefined reference to `freeaddrinfo@4'
....
search all my .o file
then add "-lws2_32" to LIBS in Makefile
everything goes OK!

在 win32 下编译 wget 的 ssl, 及 int6/ipv6 支持
我的做法是修改 config.h 和 Makefile
在config.h 中加入 #define ENABLE_IPV6
Makefile 的LIBS 加入 -lws2_32

没有评论: