Dynamic linking problem x86_64 platform

Hi,

linking works if I use the loader directly:

/usr/bin/ld /usr/lib64/crti.o /usr/lib64/gcc/x86_64-mandrake-linux-gnu/3.4.1/crtbeginS.o
-m elf_x86_64 -dynamic-linker
/lib64/ld-linux-x86-64.so.2 build/temp.linux-x86_64-2.3/build/src/splinemodule.o \ build/temp.linux-x86_64-2.3/build/src/fortranobject.o build/temp.linux-x86_64-2.3/prec.o\ build/temp.linux-x86_64-2.3/spline.o\ build/temp.linux-x86_64-2.3/build/src/spline-f2pywrappers2.o
-o build/lib.linux-x86_64-2.3/spline.so -L/opt/pgi/linux86-64/5.2/libso -L/usr/lib64
-L/usr/lib64/gcc/x86_64-mandrake-linux-gnu/3.4.1
-rpath /opt/pgi/linux86-64/5.2/libso -Bdynamic -shared -lpgf90 -lpgf90_rpm1 -lpgf902\ -lpgf90rtl -lpgftnrtl -lc -lpgc -lm -lgcc -lc -lgcc
/usr/lib64/gcc/x86_64-mandrake-linux-gnu/3.4.1/crtendS.o /usr/lib64/crtn.o

doesn’t work for
pgf90 -v -Bdynamic -shared build/temp.linux-x86_64-2.3/build
/src/splinemodule.o build/temp.linux-x86_64-2.3/build/src/fortranobject
.o build/temp.linux-x86_64-2.3/prec.o build/temp.linux-x86_64-2.3/spline
.o build/temp.linux-x86_64-2.3/build/src/spline-f2pywrappers2.o -o
build/lib.linux-x86_64-2.3/spline.so\n\n/usr/bin/ld /usr/lib64/crti
.o /usr/lib64/gcc/x86_64-mandrake-linux-gnu/3.4.1/crtbeginS.o -m elf_x
86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 build/temp.linux-x
86_64-2.3/build/src/splinemodule.o build/temp.linux-x86_64-2.3/build
/src/fortranobject.o build/temp.linux-x86_64-2.3/prec.o build/temp.linux
-x86_64-2.3/spline.o build/temp.linux-x86_64-2.3/build/src/spline-f2pywrapp Sarkari Result Pnr Status Showbox

ers2.o -o build/lib.linux-x86_64-2.3/spline.so -L/opt/pgi/linux86-64
/5.2/lib -L/usr/lib64 -L/usr/lib64/gcc/x86_64-mandrake-linux-gnu/3.4
.1 -rpath /opt/pgi/linux86-64/5.2/lib -Bdynamic -shared -lpgf90 -lpgf
90_rpm1 -lpgf902 -lpgf90rtl -lpgftnrtl -lc -lnspgc -lpgc -lm -lgcc
-lc -lgcc /usr/lib64/gcc/x86_64-mandrake-linux-gnu/3.4.1/crtendS.o
/usr/lib64/crtn.o\n/usr/bin/ld: /opt/pgi/linux86-64/5.2/lib/libpgf

9

Hi saviogomes,

Can you give a bit more detail on what error your seeing?

Also from the output it appears that you’re using PGI 5.2? This version is quite old, released in 2004. I’ll do my best to help once I understand what issue you’re encountering, but given the age of the compiler version, it may be difficult since I don’t have access to a system with an OS from that era.

-Mat