Subject: Compile failure related to ares_nowarn

Compile failure related to ares_nowarn

From: Ben Greear <greearb_at_candelatech.com>
Date: Fri, 18 Mar 2011 16:45:48 -0700

I just pulled down the latest c-ares and I cannot get it to compile.

The libtool indirection has me totally confused. It looks like ares_nowarn
defines these things, and it looks like it's linked in, so no idea why it fails
here...

gcc -DHAVE_CONFIG_H -I. -I. -g0 -O2 -Wno-system-headers -fvisibility=hidden -MT ahost-inet_ntop.o -MD -MP -MF .deps/ahost-inet_ntop.Tpo -c -o
ahost-inet_ntop.o `test -f 'inet_ntop.c' || echo './'`inet_ntop.c
mv -f .deps/ahost-inet_ntop.Tpo .deps/ahost-inet_ntop.Po
/bin/sh ./libtool --tag=CC --mode=link gcc -g0 -O2 -Wno-system-headers -fvisibility=hidden -o ahost ahost-ahost.o ahost-ares_getopt.o
ahost-ares_strcasecmp.o ahost-inet_net_pton.o ahost-inet_ntop.o ./libcares.la -lrt
libtool: link: gcc -g0 -O2 -Wno-system-headers -fvisibility=hidden -o .libs/ahost ahost-ahost.o ahost-ares_getopt.o ahost-ares_strcasecmp.o
ahost-inet_net_pton.o ahost-inet_ntop.o ./.libs/libcares.so -lrt -Wl,-rpath -Wl,/usr/local/lib
ahost-inet_net_pton.o: In function `getbits':
inet_net_pton.c:(.text+0x45): undefined reference to `aresx_sztosi'
ahost-inet_net_pton.o: In function `ares_inet_net_pton':
inet_net_pton.c:(.text+0x129): undefined reference to `aresx_sztosi'
inet_net_pton.c:(.text+0x23b): undefined reference to `aresx_sztoui'
inet_net_pton.c:(.text+0x414): undefined reference to `aresx_sztosi'
inet_net_pton.c:(.text+0x58b): undefined reference to `aresx_sztosi'
inet_net_pton.c:(.text+0x773): undefined reference to `aresx_sztoui'
inet_net_pton.c:(.text+0x78e): undefined reference to `aresx_sztosi'
collect2: ld returned 1 exit status
make[2]: *** [ahost] Error 1
make[2]: Leaving directory `/home/greearb/git/btbits/l4libs/c-ares.ct'

Thanks,
Ben

-- 
Ben Greear <greearb_at_candelatech.com>
Candela Technologies Inc  http://www.candelatech.com
Received on 2011-03-19