ranlib

ry at tinyclouds.org ry at tinyclouds.org
Wed Aug 5 18:07:00 MSD 2009


Hi,

First - thanks for the great library. It's working well for me.

It appears the makefile is not running "ranlib". This is causing
errors on some Macintosh systems:

...
gcc -Wall -W -O2 -pipe -DHAVE_CONFIG_H -c dnsget.c
dnsget.c: In function 'dbgcb':
dnsget.c:404: warning: unused parameter 'unused_q'
dnsget.c:404: warning: unused parameter 'unused_data'
gcc -Wall -W -O2 -pipe -o dnsget dnsget.o -L. -ludns
ld: in ./libudns.a, archive has no table of contents
collect2: ld returned 1 exit status
make: *** [dnsget] Error 1


The following change seems to fix it:


diff --git a/deps/udns/Makefile.in b/deps/udns/Makefile.in
index 2519eb4..fe83c7c 100644
--- a/deps/udns/Makefile.in
+++ b/deps/udns/Makefile.in
@@ -51,6 +51,7 @@ SOUTILS = $(USRCS:.c=_s)
 NAMEPFX = $(NAME)-$(VERS)

 CC = @CC@
+RANLIB = @RANLIB@
 CFLAGS = @CFLAGS@
 CDEFS = @CDEFS@
 PICFLAGS = -fPIC
@@ -65,6 +66,7 @@ staticlib: $(LIB)
 $(LIB): $(OBJS)
        -rm -f $@
        $(AR) rv $@ $(OBJS)
+       $(RANLIB) $(LIB)
 .c.o:
        $(CC) $(CFLAGS) $(CDEFS) -c $<


More information about the udns mailing list