[uClibc]Compiling pump

cfowler cfowler at outpostsentinel.com
Fri Jun 21 15:18:43 UTC 2002


Hello,

I'm trying to compile pump using uClibc.  I get the following liker
errors.


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'
dhcp.o: In function `handleTransaction':
/u01/fireDisk/pump-0.8.11/dhcp.c:782: undefined reference to `ntohs'
/u01/fireDisk/pump-0.8.11/dhcp.c:853: undefined reference to `ntohs'
/u01/fireDisk/pump-0.8.11/dhcp.c:855: undefined reference to `ntohs'
/u01/fireDisk/pump-0.8.11/dhcp.c:874: undefined reference to `ntohs'
/u01/fireDisk/pump-0.8.11/dhcp.c:876: undefined reference to `ntohs'
dhcp.o: In function `createSocket':
/u01/fireDisk/pump-0.8.11/dhcp.c:1011: undefined reference to `htons'
dhcp.o: In function `pumpDhcpRelease':
/u01/fireDisk/pump-0.8.11/dhcp.c:1064: undefined reference to `htons'
dhcp.o: In function `pumpDhcpRenew':
/u01/fireDisk/pump-0.8.11/dhcp.c:1123: undefined reference to `htonl'
/u01/fireDisk/pump-0.8.11/dhcp.c:1127: undefined reference to `htons'
dhcp.o: In function `parseLease':
/u01/fireDisk/pump-0.8.11/dhcp.c:1152: undefined reference to `ntohl'
dhcp.o: In function `buildRequest':
/u01/fireDisk/pump-0.8.11/dhcp.c:1192: undefined reference to `ntohs'
/u01/fireDisk/pump-0.8.11/dhcp.c:1225: undefined reference to `htonl'
dhcp.o: In function `pumpDhcpRun':
/u01/fireDisk/pump-0.8.11/dhcp.c:1291: undefined reference to `htons'
/u01/fireDisk/pump-0.8.11/dhcp.c:1301: undefined reference to `htons'
/u01/fireDisk/pump-0.8.11/dhcp.c:1311: undefined reference to `htons'
/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


Can I replace those functions?  Can I create those functions in the
uClibc tree and submit them?

Thanks,
Chris Fowler






More information about the uClibc mailing list