Dear all,
Thanks a lot for you help. Thanks to Ian I found the .o files
compiled with the -fPIC.
Using those I could build a dynamically linked library that works
fine and it is
accepted both by other packages (the ones I tested) and java.
The executables and statically linked libraries port on the different
implementations of
x86_64 that I have. However, the dynamically linked libraries, which
I build as
gcc -shared -fPIC -o libroc_r.so srcdir/*.o
If built on system 1 are not recognized by system 2, but if they are
built on system 2
they are recognized on system 1 (and 2 of course).... I can't figure
out what the problem could
be. Here are some details.
System 1)######################################################
lpesce@one]~% ld --versionGNU ld version 2.18.50.0.4-2
20080208Copyright 2007 Free Software Foundation, Inc.This program is
free software; you may redistribute it under the terms ofthe GNU
General Public License version 3 or (at your option) a later
version.This program has absolutely no warranty.
[lpesce@one]~% uname -a
Linux one 2.6.18-53.1.13.el5 #1 SMP Tue Feb 12 12:39:34 EST 2008
x86_64 x86_64 x86_64 GNU/Linux
System 2): #####################################################
pesce@two ~ $ ld --version
GNU ld version 2.16.91.0.7 20060317
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the
terms of
the GNU General Public License. This program has absolutely no
warranty.
pesce@two ~ $ uname -a
Linux two 2.6.22.18-server-1mdv #1 SMP Tue Feb 12 17:47:04 CST 2008
x86_64 Dual Core AMD Opteron(tm) Processor 270 GNU/Linux
Thanks a lot and sorry for all these pesky problems.
Lorenzo