[uClibc]Compiling pump

Erik Andersen andersen at codepoet.org
Fri Jun 21 15:49:15 UTC 2002


On Fri Jun 21, 2002 at 11:21:03AM -0400, root wrote:
> 
> 
> Hello,
> 
> I'm trying to compile pump using uClibc.  I get the following liker
> errors.

These days, I much prefer udhcp but pump should work...

> usr/i386-linux-uclibc/bin/cc -g  pump.o config.o dhcp.o
> /usr/lib/libpopt.a -lresolv  -o pump
> cat: CVS/Root: No such file or directory
> dhcp.o: In function `pumpPrepareInterface':
> /u01/fireDisk/pump-0.8.11/dhcp.c:336: undefined reference to `htonl'
> dhcp.o: In function `setMissingIpInfo':
> /u01/fireDisk/pump-0.8.11/dhcp.c:404: undefined reference to `ntohl'
> /u01/fireDisk/pump-0.8.11/dhcp.c:413: undefined reference to `htonl'

It seems that dhcp.c has forgotten to #include <netinet/in.h>

> /usr/lib/libpopt.a(popt.o): In function `poptGetNextOpt':
> popt.o(.text+0x15f9): undefined reference to `__strtol_internal'
> popt.o(.text+0x16a4): undefined reference to `__strtod_internal'
> collect2: ld returned 1 exit status
> make: *** [pump] Error 1
> [root at moses pump-0.8.11]# ls -l

You are linking vs /usr/lib/libpopt.a, which was compiled vs
glibc.  You need to recompile libpopt vs uClibc before you 
can compile pump to use this library.

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list