spf-discuss
[Top] [All Lists]

libspf2.so: undefined reference to `res_ninit'

2005-03-17 01:24:01
During the process of fixing many different errors in libspf2-1.2.5
I came up to the following step:
----
Making all in spfquery
source='spfquery.c' object='spfquery.o' libtool=no depfile='.deps/spfquery.Po' tmpdepfile='.deps/spfquery.TPo' depmode=gcc /bin/sh ../../config/depcomp gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -I../../src -I/usr/local/include -pthread -lbind -Wall -c spfquery.c
gcc: -lbind: linker input file unused since linking not done
/bin/sh ../../libtool --mode=link gcc -pthread -lbind -Wall -L/usr/local/lib -o spfquery spfquery.o ../../src/libspf2/libspf2.la -lintl
mkdir .libs
gcc -Wall -o .libs/spfquery spfquery.o -pthread -L/usr/local/lib ../../src/libspf2/.libs/libspf2.so -lbind -lintl -Wl,--rpath -Wl,/usr/local/milter/lib
../../src/libspf2/.libs/libspf2.so: undefined reference to `res_ninit'
../../src/libspf2/.libs/libspf2.so: undefined reference to `res_nclose'
*** Error code 1

Stop in /mnt/disk/A/com/libspf2-1.2.5/src/spfquery.
*** Error code 1
----

It seems strange enough for me because:
----
# nm libbind.a | grep res_ninit
        U __res_ninit
        U __res_ninit
        U __res_ninit
        U __res_ninit
        U __res_ninit
        U __res_ninit
        U __res_ninit
        U __res_ninit
        U __res_ninit
        U __res_ninit
        U __res_ninit
00000000 T __res_ninit
----

But the linker ignores this fact permanently as shown above.
Can anybody prompt - maybe I forgot something?

Oleg Golovanov


<Prev in Thread] Current Thread [Next in Thread>
  • libspf2.so: undefined reference to `res_ninit', Oleg M. Golovanov <=