errors linking library in g77
Bernard Yoo
yellowdog-general@lists.terrasoftsolutions.com
Fri Apr 19 10:39:03 2002
I'm using Yellow Dog Linux 2.0 on G4/2x800 PowerMacs.
I've been trying to use g77 to compile one of my programs. It
does fine in compiling the source files but produces various
errors when trying to link in a library.
Both the programs and the library were compiled with
no compiler options (no optimization).
I've also compiled the same program with the same library
using the same compiler successfully on Red Hat Linux 7.2
on an AMD Athlon.
Here are the errors I'm getting on YDL:
/usr/lib/gcc-lib/ppc-yellowdog-linux/2.95.3/libg2c.a(open.o): In function
`f_open':
/dist/ybuild/build/gcc/BUILD/gcc-2.95.3/libf2c/libI77/open.c:213: the use of
`tempnam' is dangerous, better use `mkstemp'
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x20): relocation truncated to fit: R_PPC_REL24
__libc_start_main@@GLIBC_2.0
/usr/lib/crti.o: In function `call_gmon_start':
/usr/lib/crti.o(.text+0x14): relocation truncated to fit: R_PPC_LOCAL24PC
_GLOBAL_OFFSET_TABLE_
/usr/lib/gcc-lib/ppc-yellowdog-linux/2.95.3/crtbegin.o: In function
`__do_global_dtors_aux':
/usr/lib/gcc-lib/ppc-yellowdog-linux/2.95.3/crtbegin.o(.text+0x78): relocation
truncated to fit: R_PPC_REL24 __deregister_frame_info@@GLIBC_2.0
/usr/lib/gcc-lib/ppc-yellowdog-linux/2.95.3/crtbegin.o: In function
`frame_dummy':
/usr/lib/gcc-lib/ppc-yellowdog-linux/2.95.3/crtbegin.o(.text+0xe4): relocation
truncated to fit: R_PPC_REL24 __register_frame_info@@GLIBC_2.0
cmputac.o: In function `cmputac_':
[lots of similar error messages omitted]
/dist/ybuild/build/gcc/BUILD/gcc-2.95.3/libf2c/libI77/uio.c:45: relocation
truncated to fit: R_PPC_REL24 fread@@GLIBC_2.0
/dist/ybuild/build/gcc/BUILD/gcc-2.95.3/libf2c/libI77/uio.c:47: relocation
truncated to fit: R_PPC_REL24 __errno_location@@GLIBC_2.0
/dist/ybuild/build/gcc/BUILD/gcc-2.95.3/libf2c/libI77/uio.c:49: relocation
truncated to fit: R_PPC_REL24 memset@@GLIBC_2.0
/dist/ybuild/build/gcc/BUILD/gcc-2.95.3/libf2c/libI77/uio.c:57: relocation
truncated to fit: R_PPC_REL24 fwrite@@GLIBC_2.0
collect2: ld returned 1 exit status
make: *** [revisit] Error 1
I have no idea what the "rolacation truncated..." error is nor how
to fix it.
Can anybody help me with this?
TIA.
Bernie