On 03/18/2011 04:45 PM, Ben Greear wrote:
> 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...
Based on git bisect, this appears to be the patch that causes it:
uthor: Yang Tse <yangsita_at_gmail.com> 2010-12-16 08:18:57
Committer: Yang Tse <yangsita_at_gmail.com> 2010-12-16 08:18:57
Parent: e03a65c3d9b2eb47f6ce6234823913638cb6c816 (ares_inet_net_pton: fix non-rejection of some malformed literals)
Branches: master, remotes/origin/master
Follows: cares-1_7_4
Precedes:
fix compiler warning: conversion may lose significant bits
My test is:
make distclean; ./configure; make
I tested on Fedora 11 64bit and Fedora 13 32-bit.
I'm curious if anyone can get this to compile on any form of Linux?
Thanks,
Ben
>
> 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.comReceived on 2011-03-19