I looked into this further and found that the 'libdb' extracted to the
temp dir will get loaded properly IF the FC5 system 'libdb' is not
found. So it is getting picked up by the 'LD_LIBRARY_PATH' env, but ONLY
if the system lib is missing. How can I get the LD_LIBRARY_PATH env to
be the FIRST place the loader looks for shared libs?
cheers,
Paul
Paul Salazar wrote:
Par Keepers,
I am building an app on a Fedora 4 system and testing on a Fedora 5
system. I am linking in libdb and all works fine on the FC4 sys, but
on the FC5 system I get the following error:
DB_File needs compatible versions of libdb & db.h
you have db.h version 4.3.27 and libdb version 4.3.29
I checked and the FC4 system is using libdb 4.3.27 and the FC5 is
using 4.3.29 which forces me to conclude that my lib from the FC4
system is not being linked into the executable. I am linking in libdb
using the following command:
pp --link=libdb -o out.exe source.pl <cr>
using the -vvv switch I am seeing the lib included in the output:
/usr/bin/pp: ... adding /usr/lib/../../lib/libdb-4.3.so as
shlib/i686-linux/libdb-4.3.so
when i run the app, i looked in '/tmp/cache-lotsofcharsdir/' and found
libdb-4.3.so there, but when i went to
''/tmp/cache-lotsofcharsdir/inc/shlib/i686-linux', libdb-4.3.so was
not there.
Please advise?
regards,
Paul Salazar