cURL / Mailing Lists / curl-library / Single Mail

curl-library

weird c-ares cross-compiled linking problem

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 14 Mar 2005 00:38:54 +0100 (CET)

Hi

I'm fiddling with setting up more builds for my win32 cross-compiler for the
autobuilds, and possibly to offer more daily snapshot versions.

If I enable c-ares builds, I get a set of weird link errors I thought I'd ask
you win32 guys if you recognize or have some general advice for.

i586-mingw32msvc-gcc -I/openssl-0.9.7e/include -Iwin32-zlib/include -o
curl.exe main.o hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o
strtoofft.o timeval.o -Lcurl-buildwin -Lcurl-buildwin/ares
../lib/.libs/libcurl.a -lssl -lgdi32 -lcrypto -lwinmm -lws2_32 -lz
ares/.libs/libcares.a

ares/.libs/libcares.a(ares_init.o):ares_init.c:(.text+0xe5a):
undefined reference to `_htonl_at_4'
ares/.libs/libcares.a(ares_init.o):ares_init.c:(.text+0xe8a):
undefined reference to `_gethostname_at_8'
ares/.libs/libcares.a(ares_init.o):ares_init.c:(.text+0x18c5):
undefined reference to `_ntohl_at_4'
[cut]

Do I need some particular header for these to work? Are they present in any
particular DLL/lib I don't specify here?

Compiler in use here is "i586-mingw32msvc-gcc (GCC) 3.4.2 (mingw-special)"
running on a Debian Linux unstable.

Anything?

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2005-03-14