Operating System - HP-UX
1833776 Members
2377 Online
110063 Solutions
New Discussion

mismatch ABI for -lgcc on 11.23

 
Donny Jekels
Respected Contributor

mismatch ABI for -lgcc on 11.23

I am trying to compile a few apps, openssh, byacc and wu-ftp on Itanium2 running 11.23.

I get the same error on all apps.

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

any assistance will be greatly appeiaited.
peace
Donny
"Vision, is the art of seeing the invisible"
6 REPLIES 6
Mehdi_1
Regular Advisor

Re: mismatch ABI for -lgcc on 11.23

Hi Donny

I 've already done most of them for 11.23, why don't you download depot??
Also What version of gcc are you using??

Although the binaries are for 11.22, but it should work fine on 11.23.

Please let me know if you have any problem with them.


gcc:
http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-3.3.1/

openssh:
http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/openssh-3.7.1p2/

byacc:
http://hpux.connect.org.uk/hppd/hpux/Languages/byacc-20001120/



Mehdi
Donny Jekels
Respected Contributor

Re: mismatch ABI for -lgcc on 11.23

Mehdi,

Hmmm. not a fan of any precompiled depots - no offense to those who spent hours compiling it and putting it together.

anyway for the brave ones out there who run into the same problem.

Here is the resolution:

1) download abiscanner from HP Developers Resource Center.

2) export LDFLAGS=" -L/usr/local/lib/gcc-lib/ia64-hp-hpux11.23/3.0/hpux64/ -L/usr/lib/hpux64 -L/usr/local/lib/hpux "

3) make sure you recompile gawk at 64bits

4) export CFLAGS=" -mlp64 "

then life is golden.

enjoy a sceaming fast sshd, which is not the case with the lame depot....

while you're at it do byacc and wu-ftp recompile them at 64 bits too, and any other favorite tool, telnet, find, grep, sed, tar, gzip, enjoy the power of the new chip and the 64 bit OS.

peace
Donny
"Vision, is the art of seeing the invisible"
Mehdi_1
Regular Advisor

Re: mismatch ABI for -lgcc on 11.23

Donny

No offense is been taken. It is the matter of personal opinion. If you need to install your software only on few handfull of machines, maybe compiling it from the source is a good option,But If you have to install it on hundreds of machine, that doesn't seem to be a good solution.

As matter of interest.Where did you get your gcc from? Have you compiled it yourself? I can't recall that version of gcc (3.0) had the HPUXIA64 support in it.

Also as far as I know there is no "/usr/local/lib/hpux" on 11.23 platforms ( at least not on our machine). They are either "/usr/local/lib/hpux32" or "/usr/local/lib/hpux64" depnding which one you want to use.

Mehdi
Donny Jekels
Respected Contributor

Re: mismatch ABI for -lgcc on 11.23

thats exactly why I compile the software myself. build it on one box, configure it, test it then tar it up. and untar it on over a thousand boxes - see the beauty. if it breaks you know where to go and fix it.

get gcc 3.0 for ipf here.

http://public.planetmirror.com/pub/hpux/Gnu/gccipf-3.0/

it compiles at 32bit, but export CFLAGS=" -mlp64 " to build 64 bit apps.

next week when things quite down I wil compile gcc 3.0 at 64 bits.

peace
"Vision, is the art of seeing the invisible"
Mehdi_1
Regular Advisor

Re: mismatch ABI for -lgcc on 11.23

OoooH, you are a brave man. That gcc (gccipf) has some bugs. I sugest if you want to put the time and efford to compile it from the source, get the latest source (gcc.3.2.2) from Gnu ftp site:

ftp://ftp.gnu.org/gnu/gcc/

The gccipf from the HP site is base on snapshot (as far as I can remember).

The support for HPUXIA64 has been added to gcc source code. In fact gcc compiles easier on IA64 than PA-RISC platforms.

Since, you like to do it from the source, Do you think you can do the latest emacs on 11.23 and send me the patch???

Mehdi
Donny Jekels
Respected Contributor

Re: mismatch ABI for -lgcc on 11.23

I will add emacs to my list of tools to compile.

send email to donny@jekels.com
"Vision, is the art of seeing the invisible"