solaris 2.5 linker problem (egcs, gnu ld)

Christoph Moar christoph.moar@mchp.siemens.de
Thu Oct 15 07:27:00 GMT 1998


Since I was having problems when linking with the newer snapshots,
I installed the latest on solaris 2.5 sparc, before I installed
gnu binutils 2.9.1.0.15

the link (--verbose) line is:

-- snip --
[55]olymp/home/moar/SmartPump >g++ -g -I. -D__SUNOS__ -D__sunos__ -D__sparc__ 
-D__OSVERSION__=5 -DSVR4 -DUserPthread -D_REENTRANT -D__EXTENSIONS__
-D_PTHREADS
-I/sw/local_o/egcs/include -I/home/moar/omniORB_2.5.0/include 
-I/usr/local/include  {objects} 
-o {executable} -L./ -L/sw/local_o/egcs/lib 
-L/home/moar/omniORB_2.5.0/lib/sun4_sosV_5.5 -L/usr/local/lib -lomnithread 
-lpthread -lnsl -lsocket -lposix4 -ldb --verbose
Reading specs from
/sw/local_o/egcs/lib/gcc-lib/sparc-sun-solaris2.5/egcs-2.92.15/specs
gcc version egcs-2.92.15 19981012 (gcc2 ss-980609 experimental)
 /sw/local_o/egcs/lib/gcc-lib/sparc-sun-solaris2.5/egcs-2.92.15/collect2 -V
-Y P,/usr/ccs/lib:/usr/lib -Qy -o ippump
/sw/local_o/egcs/lib/gcc-lib/sparc-sun-solaris2.5/egcs-2.92.15/crt1.o
/sw/local_o/egcs/lib/gcc-lib/sparc-sun-solaris2.5/egcs-2.92.15/crti.o
/usr/ccs/lib/values-Xa.o
/sw/local_o/egcs/lib/gcc-lib/sparc-sun-solaris2.5/egcs-2.92.15/crtbegin.o
-L./ -L/sw/local_o/egcs/lib -L/home/moar/omniORB_2.5.0/lib/sun4_sosV_5.5
-L/usr/local/lib
-L/sw/local_o/egcs/lib/gcc-lib/sparc-sun-solaris2.5/egcs-2.92.15
-L/sw/local_o/egcs/sparc-sun-solaris2.5/lib -L/usr/ccs/bin -L/usr/ccs/lib
-L/sw/local_o/egcs/lib {objects}
 -lomnithread -lpthread -lnsl -lsocket -lposix4 -ldb -lstdc++ -lm -lgcc -lc 
-lgcc /sw/local_o/egcs/lib/gcc-lib/sparc-sun-solaris2.5/egcs-2.92.15/crtend.o 
/sw/local_o/egcs/lib/gcc-lib/sparc-sun-solaris2.5/egcs-2.92.15/crtn.o

/sw/local_o/egcs/lib/gcc-lib/sparc-sun-solaris2.5/egcs-2.92.15/libgcc.a:
could not read symbols: Bad value
GNU ld version 2.9.1 (with BFD 2.9.1.0.15)
  Supported emulations:
   elf32_sparc
collect2: ld returned 1 exit status

-- snap --

I don't get it...

I ./configure'd egcs with
--enable-threads --with-ld=/usr/local/gnu/bin/ld --with-gnu-as --with-gnu-ld


What am I doing wrong???

Best regards,

Christoph Moar.


--
Christoph Moar (christoph.moar@mchp.siemens.de)  Tel. (++49) 89 636-44628
SIEMENS AG Corporate Technology                  Fax. (++49) 89 636-47457
Information and Media Technology
Office Adress:  SIEMENS AG  ZT IK 1,  Otto-Hahn-Ring  6,  D-81739  Munich
Postal Adress:  SIEMENS AG  ZT IK 1,  D-81730 Munich
pgpkey http://pgp5.ai.mit.edu:11371/pks/lookup?op=index&search=0xae81b9cc



More information about the Gcc-bugs mailing list