[uClibc]PET proxy cache and uClibc

GEMMA, Tsuyoshi tgem at ecodacs.or.jp
Mon Mar 18 13:20:44 UTC 2002


Hello,

I have a compile problem with PET-1.0 (HTTP cache program, found at
http://pet.sourceforge.net/) using uClibc-snapshot (obtained March 10).
PET requires pthread and db library. So, I compiled Sleepycat db-2.7.7
using uClibc and compiling and install seemed ok. (I know current uClibc
does not fully support pthread but I gave it a try). Next, when I began
to compile PET, compiling was aborted like this:

gcc -Wall -O3 -D_REENTRANT -DHAVE_CONFIG_H   -c -o pet.o pet.c
pet.c:20: mcheck.h: No such file or directory
make: *** [pet.o] Error 1

Then I copied mcheck.h of glibc-2.2 to uClibc's include directory and
tried to compile again. This time, compiling almost went well but was
terminated at last step with the following messages:

gcc -Wall -O3 -D_REENTRANT -DHAVE_CONFIG_H   -c -o pet.o pet.c
gcc -Wall -O3 -D_REENTRANT -DHAVE_CONFIG_H   -c -o log.o log.c
gcc -Wall -O3 -D_REENTRANT -DHAVE_CONFIG_H   -c -o net.o net.c
gcc -Wall -O3 -D_REENTRANT -DHAVE_CONFIG_H   -c -o request.o request.c
gcc -Wall -O3 -D_REENTRANT -DHAVE_CONFIG_H   -c -o alloc.o alloc.c
gcc -Wall -O3 -D_REENTRANT -DHAVE_CONFIG_H   -c -o http.o http.c
gcc -Wall -O3 -D_REENTRANT -DHAVE_CONFIG_H   -c -o icp.o icp.c
icp.c: In function `icp_connect':
icp.c:201: warning: passing arg 2 of `connect' from incompatible pointer
type
icp.c: In function `icp_serverthread':
icp.c:517: warning: passing arg 5 of `recvfrom' from incompatible
pointer type
icp.c: In function `icp_waitresponses':
icp.c:1533: warning: passing arg 5 of `recvfrom' from incompatible
pointer type
gcc -Wall -O3 -D_REENTRANT -DHAVE_CONFIG_H   -c -o icpnet.o icpnet.c
icpnet.c: In function `icpnet_sendto':
icpnet.c:286: warning: passing arg 5 of `sendto' from incompatible
pointer type
gcc -Wall -O3 -D_REENTRANT -DHAVE_CONFIG_H   -c -o storage.o storage.c
gcc -Wall -O3 -D_REENTRANT -DHAVE_CONFIG_H   -c -o md5.o md5.c
gcc -Wall -O3 -D_REENTRANT -DHAVE_CONFIG_H   -c -o errcode.o errcode.c
gcc -Wall -O3 -D_REENTRANT -DHAVE_CONFIG_H   -c -o dns.o dns.c
gcc -Wall -O3 -D_REENTRANT -DHAVE_CONFIG_H   -c -o cfg.o cfg.c
gcc -Wall -O3 -D_REENTRANT -DHAVE_CONFIG_H   -c -o digest.o digest.c
gcc -Wall -O3 -D_REENTRANT -DHAVE_CONFIG_H   -c -o stat.o stat.c
gcc -Wall -O3 -D_REENTRANT -DHAVE_CONFIG_H   -c -o adm.o adm.c
gcc -Wall -O3 -D_REENTRANT -DHAVE_CONFIG_H   -c -o ftp.o ftp.c
gcc -Wall -O3 -D_REENTRANT -DHAVE_CONFIG_H   -c -o wcfg.o wcfg.c
gcc -Wall -O3 -D_REENTRANT -DHAVE_CONFIG_H   -c -o hashtable.o
hashtable.c
gcc -Wall -O3 -D_REENTRANT -DHAVE_CONFIG_H pet.o log.o net.o request.o
alloc.o http.o icp.o icpnet.o storage.o md5.o errcode.o dns.o cfg.o
digest.o stat.o adm.o ftp.o wcfg.o hashtable.o  -o pet -lpthread -ldb
net.o: In function `srv_connect':
net.o(.text+0x4a2): undefined reference to `getaddrinfo'
net.o(.text+0x80e): undefined reference to `freeaddrinfo'
dns.o: In function `dns_lookup':
dns.o(.text+0x1cc): undefined reference to `getaddrinfo'
dns.o(.text+0x1f0): undefined reference to `freeaddrinfo'
dns.o: In function `delete_ptr':
dns.o(.text+0x40b): undefined reference to `freeaddrinfo'
dns.o(.text+0x4df): undefined reference to `freeaddrinfo'
cfg.o: In function `cfg_init2':
cfg.o(.text+0x59): undefined reference to `dbopen'
adm.o: In function `adm_postdecode':
adm.o(.text+0x1387): undefined reference to `dbopen'
collect2: ld returned 1 exit status
make: *** [pet] Error 1


What is wrong? Any idea?
Many thanks in advance.

---
Tsuyoshi GEMMA / <Gem>






More information about the uClibc mailing list