This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problems with shared libg2c library


The linker uses the static copy of libg2c, located in the directory 
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/. Maybe the order of the
-L directives should be changed by swapping -L/usr/local/lib with
-L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1? 

Thank you,

Peter Schmid

g77 -v whetstoned.f -Wl,-M
g77 version 3.1 20011003 (experimental) (Fortran Frontend version 0.5.27 20011003 (experimental))
Driving: g77 -v whetstoned.f -Wl,-M -lfrtbegin -lg2c -lm
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
Configured with: ../gcc/configure --enable-shared --enable-threads=posix --enable-languages=c,c++,f77,objc --disable-nls --enable-clocale=gnu
Thread model: posix
gcc version 3.1 20011003 (experimental)
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/f771 whetstoned.f -quiet -dumpbase whetstoned.f -version -o /tmp/cck5BhKG.s
GNU F77 version 3.1 20011003 (experimental) (i686-pc-linux-gnu)
	compiled by GNU C version 3.1 20011003 (experimental).
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../../i686-pc-linux-gnu/bin/as -V -Qy -o /tmp/ccfo2hNP.o /tmp/cck5BhKG.s
GNU assembler version 2.11.90.0.23 (i686-pc-linux-gnu) using BFD version 2.11.90.0.23
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/collect2 -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/crtbegin.o -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1 -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../../i686-pc-linux-gnu/lib -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../.. /tmp/ccfo2hNP.o -M -lfrtbegin -lg2c -lm -lgcc -lc -lgcc /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/crtend.o /usr/lib/crtn.o
Archive member included       because of file (symbol)

/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/libfrtbegin.a(frtbegin.o)
                              /usr/lib/crt1.o (main)
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/libg2c.a(close.o)
                              /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/libfrtbegin.a(frtbegin.o) (f_exit)
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/libg2c.a(dolio.o)
                              /tmp/ccfo2hNP.o (do_lio)
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/libg2c.a(endfile.o)
                              /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/libg2c.a(close.o) (t_runc)
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/libg2c.a(err.o)
                              /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/libg2c.a(close.o) (f__fatal)
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/libg2c.a(fmt.o)
                              /tmp/ccfo2hNP.o (do_fio)
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/libg2c.a(lread.o)
                              /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/libg2c.a(dolio.o) (f__lioproc)
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/libg2c.a(open.o)
                              /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/libg2c.a(err.o) (f__r_mode)
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/libg2c.a(rsfe.o)
                              /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/libg2c.a(lread.o) (xrd_SL)
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/libg2c.a(sfe.o)
                              /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/libg2c.a(rsfe.o) (c_sfe)
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/libg2c.a(util.o)
                              /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/libg2c.a(open.o) (g_char)
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/libg2c.a(wsfe.o)
                              /tmp/ccfo2hNP.o (s_wsfe)



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]