Operating System - HP-UX
1832932 Members
3065 Online
110048 Solutions
New Discussion

Re: Issues faced while compiling C++ programs.

 
Sanjay Mundergi
New Member

Issues faced while compiling C++ programs.

I am trying to compile a set of C++ programs. The attached makefile has the details.

I am getting
"Can't find library or mismatched ABI for -lCsup"

Please help.
6 REPLIES 6
Govind_3
Regular Advisor

Re: Issues faced while compiling C++ programs.

Make sure to include /usr/lib in your path for libc to be used ( I am 100% sure this should solve it) and if this doesnt solve it, try to load the patch PHSS_30967.
-Cheers
Govind
Govind_3
Regular Advisor

Re: Issues faced while compiling C++ programs.

BTW which OS are you compiling ur progs on?
Sanjay Mundergi
New Member

Re: Issues faced while compiling C++ programs.

I am compiling on HP Unix machine(HP HP-UX 11.23 for Itanium 11.23) . For this perticular application we are using Rogue Wave components.

I tried to apply your suggesstion, but i am getting

"ld: Mismatched ABI (not an ELF file) for -lCsup"

Do I have to download the patch. PHSS_30967.


Let me know.

Thanks
Sanjay



Govind_3
Regular Advisor

Re: Issues faced while compiling C++ programs.

Surely sounds like a Linker problem. I would suggest you to load PHSS_30967 and see if it solves it. But before that just a LAME question, are you sure you included "/usr/lib/" in the path in the make file? If you are very sure you did it right and it still doesnt work mayb u should then load the patch.
-Goodluck
Govind
Sanjay Mundergi
New Member

Re: Issues faced while compiling C++ programs.

Govind,

This is what I get when run the make command.

aCC +DD64 -D_HPUX_SOURCE +Olit=none +W887 +w +W229 +W331 +W361 +W392 +W431 +W655 +W684 +W818 +W819 +W849 +W889 -D_POSIX_C_SOURCE=199506L -mt -AA -O -Wl,+s +nostl -L/home/smunderg/RogueWave/SourcePro/Ed7/lib -o CAS_payproc_server CAS_payment_process_match.o CAS_payment_process_apply.o CAS_process.o CAS_payproc_server_s.o CAS_payproc_server.o /home/smunderg/RogueWave/SourcePro/Ed7/lib/rwctl12s.o -L/usr/lib/ -L/home/smunderg/RogueWave/SourcePro/Ed7/lib/ -L/tools/sybase/OCS-12_0/lib -L/tools/entera/tcp/lib
ld: Mismatched ABI (not an ELF file) for -lCsup

Please let me know if you find anything fishy...

Thanks
Sanjay
ranganath ramachandra
Esteemed Contributor

Re: Issues faced while compiling C++ programs.

take the "-L/usr/lib" out of the link line, this is the problem.

you are on an itanium box so you are building IPF binaries. /usr/lib contains only PA32 stuff. IPF libraries are under /usr/lib/hpux32 and /usr/lib/hpux64. under /usr/lib/pa20_64 you have PA64 libraries

you should never have these directories in any of your library lookup paths (which you specify through '-L', LPATH, SHLIB_PATH or LD_LIBRARY_PATH) - you should only include any additional directories where libraries are to be taken from.

the linker and loader will decide where under /usr/lib they have to look, depending on what binaries you are building.
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo