Hi Yang,
Am 27.12.2010 21:33, schrieb Yang Tse:
Test server and libtest programs have compiled properly for ages now.
even crosscompiled to windows. Whether they work properly or not is a
different matter.
although this seems true for my MinGW autobuilds - I've just tried a native msys/MinGW build with a snapshot, and it breaks in sethostname.c:
Making all in libtest
make[2]: Entering directory `/projects/autobuilds/curl_snapshot/curl-7.21.4-20101221/tests/libtest' if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I../../include/curl -I../../include -I../../include -I../../lib -I../../lib -g0 -O2 -Wno-system-headers -MT sethostname.lo -MD -MP -MF ".deps/sethostname.Tpo" -c -o sethostname.lo sethos
tname.c; \
then mv -f ".deps/sethostname.Tpo" ".deps/sethostname.Plo"; else rm -f ".deps/sethostname.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I../../include/curl -I../../include -I../../include -I../../lib -I../../lib -g0 -O2 -Wno-system-headers -MT sethostname.lo -MD -MP -MF .deps/sethostname.Tpo -c sethostname.c -DDLL_EXPORT -DPIC -o .libs/sethostname.o
sethostname.c:18:5: error: conflicting types for 'gethostname'
d:\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winsock2.h:635:12: note: previous declaration of 'gethostname' was here
make[2]: *** [sethostname.lo] Error 1
make[2]: Leaving directory `/projects/autobuilds/curl_snapshot/curl-7.21.4-20101221/tests/libtest'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/projects/autobuilds/curl_snapshot/curl-7.21.4-20101221/tests'
make: *** [test] Error 2

strange though that sethostname.c is not compiled at all with my MinGW cross-compiles - at least I cant find it when I search through the autobuild logs ...
any idea why?

Gün.


-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to