Sendmail Compilation and BerkeleyDB.4.1 problem

Special Thanks to following people

Stephen Joyce
Meier Adrian
Marco Breedeveld
Bill R. Williams
Adam Kirby
SteinAxt

The answer was very simple just add in your path

LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.1/lib

Thanks for prompt replys i thought that LD_RUN_PATH was doing the job :(

Regards

Muhammad Talha

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Dear all

i have problem compiling sendmail with BerkeleyDB.4.1 support
Solaris 9 gcc-3.2

my site.config.m4
dnl Milter
APPENDDEF(`conf_sendmail_ENVDEF', `-DMILTER')
APPENDDEF(`conf_libmilter_ENVDEF', `-D_FFR_MILTER_ROOT_UNSAFE')
APPENDDEF(`confLIBDIRS', `-L/usr/local/BerkeleyDB.4.1/lib')
APPENDDEF(`confINCDIRS', `-I/usr/local/BerkeleyDB.4.1/include')
APPENDDEF(`confENVDEF', `-DNEWDB')

when i try to run its gives the follwoing error

makemap hash /etc/mail/access < /etc/mail/access

ld.so.1: makemap: fatal: libdb-4.1.so: open failed: No such file or
directory
Killed

/'usr/local/BerkeleyDB.4.1/lib' in path and as well LD_RUN_PATH

bash-2.05# ldd /usr/sbin/makemap
libdb-4.1.so => (file not found)
libresolv.so.2 => /usr/lib/libresolv.so.2
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/platform/SUNW,Ultra-250/lib/libc_psr.so.1

any one see this kind of problem

Regards

Talha

[1804 byte] By [CodeProf.com] at [2007-12-25 3:00:00]