[uClibc]POSTFIX can't load library 'libdb-4.0.so' (uClibc-0.9.12)
Nguyen Binh Phuong
phuong at tlnet.com.vn
Wed Jul 17 14:28:22 UTC 2002
Hi all,
When I compile POSTFIX with uClibc, it can't load library 'libdb-4.0.so' .
'libdb-4.0.so' is a dynamic library of Berkeley_DB.
Ofcourse, I compiled and installed Berkeley_DB successfuly with uClibc before
I compile postfix-1.1.10 package with uClibc.
This is the specific steps of my compiling process with uClibc-0.9.12:
1/ First of all, I compiled and installed Berkeley_DB into /home/phuong/usr
directory.
1/ Secondly, I edit makedefs file :
...
Linux.2*) SYSTYPE=LINUX2
for name in resolv
do
test -e /usr/i386-linux-uclibc/lib/lib$name.a -o -e
/usr/i386-linux-uclibc/lib/lib$name.so \
-o -e /home/phuong/usr/lib/lib$name.a -o -e
/home/phuong/usr/lib/lib$name.so \
&& SYSLIBS="$SYSLIBS -l$name"
done
;;
...
(I attach this file here)
2/Thirdly, I type the following command:
make makefiles CCARGS="-DHAS_DB -I/home/phuong/usr/include"
AUXLIBS="-L/home/phuong/usr/lib -ldb-4.0"
3/Fourthly, I compile and cat the compiling process to a log file (make
>make.log ):
Ofcourse, it had generated may errors. But I fixed them. When it finish
compiling process, it generates the following warning (only one warning) to
the screen:
./postconf: can't load library 'libdb-4.0.so'
You know, 'libdb-4.0.so' is located in /home/phuong/usr/lib (of Berkeley_DB).
When I type:
ldd libdb-4.0.so
it generates:
libc.so.0 => /usr/i386-linux-uclibc/lib/libc.so.0
I do not know why it can not load libdb-4.0.so dynamic library!!!
I attach here 2 files: makedefs and Makefile.
Please help me fix this problem.
Thanhs in advance,
Nguyen Binh Phuong
Sunyard-VN Company
Phone: 9701566
Email: phuong at tlnet.com.vn
Homepage: http://members.tlnet.com.vn/~phuong/
More information about the uClibc
mailing list