- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Cannot recompile C language
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
тАО05-16-2008 01:08 AM
тАО05-16-2008 01:08 AM
Cannot recompile C language
I have a program which could be compiled on PA platform successfully.
Now we need to upgrade the platform and run the program on Itanium platform.
So when I compile it on Itanium it reports the errors that it can't find the library file.
But the library files are actually there and I point the correct directory.
I found that in PA the library files are named like *.sl while in Itanium like *.so
So should I change the source code?
Any advice?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2008 02:51 AM
тАО05-16-2008 02:51 AM
Re: Cannot recompile C language
You also should make sure your have recompiled your shared library for IPF. What does "file lib" show? (You can't use a PA lib.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2008 08:36 PM
тАО05-17-2008 08:36 PM
Re: Cannot recompile C language
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2008 08:38 PM
тАО05-17-2008 08:38 PM
Re: Cannot recompile C language
If some performance impact is acceptable you can try running the program under aries.
There is no need to compile for native IA.
- Tags:
- Aries
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2008 05:31 AM
тАО05-18-2008 05:31 AM
Re: Cannot recompile C language
We can't see "the source code". Perhaps a
psychic would be more helpful.
> Any advice?
Show some actual failing commands, and
provide enough context to reveal what's
happening? (Just a thought.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2008 09:35 PM
тАО05-18-2008 09:35 PM
Re: Cannot recompile C language
Here is the information in detail. Pls check it out for me.It's compiled based on DB2
************************************
cc -Ae -o MClmCScan cclm_main.o -L/opt/IBM/db2/V8.1/lib64 -lm -L/app/ade/lib/moia -lmoiaap i -ldboper -ldb2 -lC
ld: Can't find library or mismatched ABI for -ldb2 Fatal error.
*** Error exit code 1
************************************
Should I add some option to "cc" command?
Tks in advance
- Tags:
- ABI mismatch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2008 11:43 PM
тАО05-18-2008 11:43 PM
Re: Cannot recompile C language
-L/the/path/to/my/library
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2008 12:25 AM
тАО05-19-2008 12:25 AM
Re: Cannot recompile C language
/opt/IBM/db2/V8.1/lib64 is actually where db2 library files reside.
What should I do?
Tks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2008 02:07 AM
тАО05-19-2008 02:07 AM
Re: Cannot recompile C language
Why do you have a -lC? If you meant -lc, remove it.
>ld: Can't find library or mismatched ABI for -ldb2
>Should I add some option to "cc" command?
Where should libdb2.* be found? You need a -L path as Fabien said.
>/opt/IBM/db2/V8.1/lib64 is actually where db2 library files reside.
What does this show:
file /opt/IBM/db2/V8.1/lib64/libdb2* cclm_main.o
Both files must be the same, either 32 or 64 bit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2008 01:23 AM
тАО05-20-2008 01:23 AM
Re: Cannot recompile C language
It seams like cclm_main.o is not a 64 bit file
So I recompiled it and ran "cc" again it worked !
Thank you guys,especially Dennis. You enlightened my mind