Hi,
I am getting the following error on trying to link in a mixed fortran/C code. This code builds with 5.0 but gives this hidden symbol ‘stat’ message with 6.0.
The link line as displayed by pgf90 -v shows the following error
/usr/bin/ld /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/gcc/x86_64-redhat-linux/3.4.5/32/crtbegin.o /usr/pgi61/linux86/6. 1/lib/f90main.o -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/pgi61/linux86/6.1/lib/pgi.ld sub1.o -o utility.x -L/usr/pgi61/linux86/6.1/lib -L/usr/lib -L/usr/lib/gcc/x86_64-redhat-linux/3.4.5/32 -rpath /usr/pgi61/linux86/6.1/lib -lpgmm1 -lpgmm2 -lpgf90 -lpgf90_rpm1 -lp gf902 -lpgf90rtl -lpgftnrtl -lpgsse1 -lpgsse2 -lc -lnspgc -lpgc -lm -lgcc -lc -lgcc /usr/lib/gcc/x86_64-redhat-linux/3.4.5/32/crtend.o /usr/lib/crtn.o
/usr/bin/ld: utility.x: hidden symbol `stat’ in /usr/lib/libc_nonshared.a(stat.oS) is referenced by DSO
/usr/bin/ld: final link failed: Nonrepresentable section on output
pgf90-Fatal-linker completed with exit code 1
I am using
pgf90 6.1-4 32-bit target on x86-64 Linux
and have the following gcc packages installed
libgcc-3.4.5-1
compat-libgcc-296-2.96-132.7.2
gcc-3.4.5-2
libgcc-3.4.5-2
gcc-g77-3.4.5-2
Any help would be greatly appreciated.
Thanks,
Waris