[plug] building static binaries

Craig Ringer craig at postnewspapers.com.au
Mon Dec 29 15:52:02 WST 2003


Luke Dudney wrote:
> Yes, I have /usr/lib/libresolv.a owned by glibc-devel. configure.log has
> this error
> 
> configure:5214: checking for res_mkquery in -lresolv
> configure:5245: gcc -o conftest -g -O2  -static conftest.c -lresolv 
> -lc  >&5
> /tmp/cc2uxyd7.o(.text+0xa): In function `main':
> /home/luke/src/etherape-0.9.0/configure:5272: undefined reference to
> `res_mkquery'
> collect2: ld returned 1 exit status

Interesting. On the RH8 server I'm working on:

[craig at bucket tmp]$ nm -s /usr/lib/libresolv.a  | grep res_mkquery
__res_mkquery in res_data.o
__res_nmkquery in res_mkquery.o
000000b4 T __res_mkquery
res_mkquery.o:

res_mkquery is clearly present. Can you verify that it's in your 
libresolv.a ?

Craig Ringer




More information about the plug mailing list