[plug] building static binaries
Luke Dudney
dex at wn.com.au
Mon Dec 29 15:45:21 WST 2003
On Mon, 2003-12-29 at 15:25, Craig Ringer wrote:
> Luke Dudney wrote:
> > I've tried setting CFLAGS=-static but this results in an error:
> > checking for u_char... yes
> > checking for res_init... no
> > checking for res_init in -lbind... no
> > checking for res_init in -lresolv... no
> > checking for __res_init in -lc... yes
> > checking for res_mkquery... no
> > checking for res_mkquery in -lbind... no
> > checking for res_mkquery in -lresolv... no
> > configure: error: No resolver library found
>
> Interesting. On my system (RH8) there is a libresolv.a - you might want
> to check and see if you have a suitable static libresolv. Mine is at
> /usr/lib/libresolv.a and is part of glibc-devel. My home system and
> laptop (FC1) aren't near to hand, sorry.
>
> Alternately, have a look in the config.log and see if gcc said anything
> interesting when it failed.
>
> Craig Ringer
>
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
Cheers
Luke
More information about the plug
mailing list