Operating System - Linux
1753809 Members
7488 Online
108805 Solutions
New Discussion юеВ

Re: Mismatched ABI (not an ELF file) for -lX11

 
SOLVED
Go to solution
Jose_C_Moraes
Super Advisor

Mismatched ABI (not an ELF file) for -lX11

Hi can someone help me ?

I am getting this error while compiling using the command:

gcc -g -O2 -o xte xte.o debug.o -mpa-risc-2-0 -L /usr/lib/pa20_64 -L /usr/lib/X11R4 -lX11 -lXtst
ld: Mismatched ABI (not an ELF file) for -lX11, found /usr/lib/X11R4/libX11.sl
Fatal error.

I appreciate any help.

Regards
Jose
8 REPLIES 8
James R. Ferguson
Acclaimed Contributor

Re: Mismatched ABI (not an ELF file) for -lX11

Hi Jose:

If you're linking on an Itanium platform, you have a PA-RISC object. This isn't supported by the linker.

Regards!

...JRF...
A. Clay Stephenson
Acclaimed Contributor

Re: Mismatched ABI (not an ELF file) for -lX11

The problem is exactly as described. You are trying to mix 32-bit and 64-bit code in the same link. It must all be one flavor or the other and I rather doubt there is a 64-bit version of X11R4.
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: Mismatched ABI (not an ELF file) for -lX11

Hi (again) Jose:

Another reason is more general. The linker cannot mix 32-bit and 64-bit shared libraries or objects.

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

Re: Mismatched ABI (not an ELF file) for -lX11

If you are generating a 64 bit application, you need to remove -L/usr/lib/X11R4. This is a 32 bit path. libX11.sl should be found in -L/usr/lib/pa20_64

>Clay: I rather doubt there is a 64-bit version of X11R4.

HP supplies them for X11R6 in /usr/lib/X11R6/pa20_64/.
Jose_C_Moraes
Super Advisor

Re: Mismatched ABI (not an ELF file) for -lX11

Txns

The problem is that I need a lib libX11.sl 64 bits and I can├В┬┤t find any even in the pa20_64.

Is there any package I have to install to have the lib ?

Regards
Jose
Dennis Handly
Acclaimed Contributor
Solution

Re: Mismatched ABI (not an ELF file) for -lX11

>The problem is that I need a lib libX11.sl 64 bits and I can't find any even in the pa20_64.

If you don't purchase the HP C/aC++ Developer's bundle, you don't get the symlink.

>Is there any package I have to install to have the lib?

You'll have to download the "HP-UX Developer's Toolkit". See Steven's link in the following thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1149221
Jose_C_Moraes
Super Advisor

Re: Mismatched ABI (not an ELF file) for -lX11

Sorry for the delay.

Thanks Dennis. It did work fine. But my problem still exists.

I am trying to compile and linkedit xautomate, to emulate a user using a GUI in HP-UX.

But it does not work. Does anyone know any package to do the same, as a depot? I tried Porting And Archive Centre For HP-UX, unsuccessfully.

Any hints ?

Regards
Josed
Dennis Handly
Acclaimed Contributor

Re: Mismatched ABI (not an ELF file) for -lX11

>But my problem still exists.

Are you still getting the "mismatched ABI" message?

Did you remove "-L /usr/lib/X11R4" from the link line?

Should I ask why you are creating a 64 bit app?