[plug] building static binaries

Luke Dudney dex at wn.com.au
Mon Dec 29 16:00:31 WST 2003


On Mon, 2003-12-29 at 15:52, Craig Ringer wrote:
> 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
> 

Yes, it's definitely there:

0=[15:57:34]luke at lukenew:~/src/etherape-0.9.0$ nm -s
/usr/lib/libresolv.a  |grep res_mkquery
__res_mkquery in res_data.o
__res_nmkquery in res_mkquery.o
000000a0 T __res_mkquery
res_mkquery.o:

Luke




More information about the plug mailing list