- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: AnsiC/C++ compiler error 11i v2
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2009 01:21 AM
тАО06-12-2009 01:21 AM
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,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2009 01:27 AM
тАО06-12-2009 01:27 AM
Re: AnsiC/C++ compiler error 11i v2
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
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2009 03:11 AM
тАО06-12-2009 03:11 AM
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)."..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2009 03:32 AM
тАО06-12-2009 03:32 AM
Re: AnsiC/C++ compiler error 11i v2
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2009 05:07 AM
тАО06-12-2009 05:07 AM
SolutionThis 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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2009 07:50 AM
тАО06-12-2009 07:50 AM
Re: AnsiC/C++ compiler error 11i v2
Thanks James,
It seems that your comment convinced the dba to reinstall oracle and now is throwing some errors with some .h files.
Cheers,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2009 09:27 AM
тАО06-12-2009 09:27 AM
Re: AnsiC/C++ compiler error 11i v2
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?