System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

AnsiC/C++ compiler error 11i v2

SOLVED
Go to solution
Oscar Garcia
Regular Advisor

AnsiC/C++ compiler error 11i v2

Hi Guys,

We are having a bit of a problem when compiling. I have installed an evaluation ansiC compiler to develop some code for Oracle. This is what it looks like:
# swlist -l product |grep -i compiler
C-ANSI-C B.11.23.15.EVAL HP C/ANSI C Compiler
COMPLIBS B.11.23 Compiler Support Librarys

When my colleagues try to compile this is what they get:
[t][u@h:w]$ make
/bin/cc -g -v -L. -L/opt/app/oracle/product/11.1.0/lib -o absqmgr absqmgr.o \
-L../libs -lQmgr -lCommon -lncurses `pth-config --libdir`/libpth.a -L/opt/app/oracle/product/11.1.0/lib /opt/app/oracle/product/11.1.0/lib/libclntst11.a `cat /opt/app/oracle/product/11.1.0/lib/sysliblist` -lm
cc: informational note 404: NLSPATH is /opt/ansic/lib/nls/msg/%L/%N.cat:/opt/ansic/lib/nls/msg/C/%N.cat:
cc: informational note 404: INCLUDIR is INCLUDIR=/usr/include
cc: informational note 404: LPATH is /usr/lib:/opt/langtools/lib:
/usr/ccs/bin/ld /opt/langtools/lib/crt0.o -L. -L/opt/app/oracle/product/11.1.0/lib -o absqmgr absqmgr.o -L../libs -lQmgr -lCommon -lncurses /usr/local/lib/libpth.a -L/opt/app/oracle/product/11.1.0/lib /opt/app/oracle/product/11.1.0/lib/libc
lntst11.a -l:libcl.sl -l:librt.sl -lpthread -l:libnss_dns.1 -l:libdld.sl -l:libnsl.sl -lm -u main +noobjdebug -lc /opt/langtools/lib/end.o
cc: informational note 413: Entering Link editor.
/usr/ccs/bin/ld: /opt/app/oracle/product/11.1.0/lib/libclntst11.a: Not a valid library (invalid magic number). Possibly a 64-bit PA archive library (Mismatched ABI).
make: *** [absqmgr] Error 1

My suspicion is that the evaluation version is not up to the job. I have purchased also a license for the compiler but I do not have the media so I am writing to HP to see what is the way forward, to generate the license.

Thanks in advance for any comments & suggestions,
6 REPLIES
Steven E. Protter
Exalted Contributor

Re: AnsiC/C++ compiler error 11i v2

Shalom,

This looks like bad code to me.

You do need to get your permanent license and the best path for that is your local HP rep.

But, I'm thinking that this is bad application code and maybe some issues with SHLIB_PATH environment.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Stanimir
Trusted Contributor

Re: AnsiC/C++ compiler error 11i v2


Hi

Please inform:
1.What is your OS on the mashine,where you
try to compile?
2. What installation you use for
compilation?
Seems like you are mismach platforms.

"../usr/ccs/bin/ld: /opt/app/oracle/product/11.1.0/lib/libclntst11.a: Not a valid library (invalid magic number). Possibly a 64-bit PA archive library (Mismatched ABI)."..





Oscar Garcia
Regular Advisor

Re: AnsiC/C++ compiler error 11i v2

Thanks guys for you input.
I was on the phone with the HP rep and I hope he comes up with a solution.

About the OS is B.11.23 U 9000/800 1530756547 unlimited-user license
About the installation source, I am pretty sure I used 64 bits...

Anyway, this code has been compiled before on 11i v1 and it has not been modified. So we thought it will just run without pain...
James R. Ferguson
Acclaimed Contributor
Solution

Re: AnsiC/C++ compiler error 11i v2

Hi Oscar:

This has nothing to do with "bit-rot". That is, the evaluation copy of the compiler isn't at fault.

As noted, it's the linker that is complaining:

"../usr/ccs/bin/ld: /opt/app/oracle/product/11.1.0/lib/libclntst11.a: Not a valid library (invalid magic number). Possibly a 64-bit PA archive library (Mismatched ABI)."..

You can't mix 32-bit and 64-bit objects at link time.

Regards!

...JRF...
Oscar Garcia
Regular Advisor

Re: AnsiC/C++ compiler error 11i v2

Hi Oscar:

Thanks James,

It seems that your comment convinced the dba to reinstall oracle and now is throwing some errors with some .h files.

Cheers,
Dennis Handly
Acclaimed Contributor

Re: AnsiC/C++ compiler error 11i v2

>We are having a bit of a problem when compiling.

It looks like a linker error, as JRF said.
Did you want to create a 64 bit app and compile with +DD64?

>I do not have the media so I am writing to HP to see what is the way forward, to generate the license.

If you don't have the media, a license won't help.

>now is throwing some errors with some .h files.

What are those?