Operating System - HP-UX
1847177 Members
5692 Online
110263 Solutions
New Discussion

Can't find library or mismatched ABI for -lgcc

 
Jin-Ho Song
Occasional Advisor

Can't find library or mismatched ABI for -lgcc

I've been trying to build xerces2.2 on HP-UX 11i with gcc3.3(configured with HP linker) and got the following errors.

ld: Can't find library or mismatched ABI for -lgcc
Fatal error.
collect2: ld returned 1 exit status

Originally, I tried various kinds of gccs on HP and each version has its own problems primarily because of the differences between HP linker and GNU linker.
At first try, I had the binary version of gcc3.2-prelease(configured with HP linker) from HP site installed, but it made problems like missed(or mismatched) header files, so I got a different one(configured with gnu-ld) at http://www.cmve.net/~merijn/ and it also made errors like when building oracle sample codes.
Finally, I made my own gcc 3.3. from sources and it's configured with HP linker.

When I type in 'gcc -v', it shows the following.

Reading specs from /usr/local/pa20_64/lib/gcc-lib/hppa64-hp-hpux11.11/3.3/specs
Configured with: ../configure --enable-languages=c,c++ --enable-libstdcxx-v3 --prefix=/usr/local/pa20_64 --with-local-pre
fix=/usr/local/pa20_64 --with-gnu-as --with-as=/usr/local/pa20_64/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls --disabl
e-chekcing --disable-shared --host=hppa64-hp-hpux11.11 --target=hppa64-hp-hpux11.11
Thread model: single
gcc version 3.3

I guess the compiler makes all this stuff.
Please help me if anyone has any idea.
Thanks.
newbie for HP-seeker for free-of-charge stuffs.