- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- How to resolve "Can't find library or mismatched ...
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
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
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
10-25-2007 01:35 PM
10-25-2007 01:35 PM
How to resolve "Can't find library or mismatched ABI for –lclntsh"
When I compiled a pro*c program,It happens errors:
.......
ld: Can't find library or mismatched ABI for –lclntsh
.......
My makefile includes "-L$(ORACLE_HOME)/lib -lclntsh".
Then,I checked the file "libclntsh.so" is in the $ORACLE_HOME/lib/ path ,and "LD_LIBRARY_PATH" includes the “$ORACLE_HOME/lib”path.
MY Program s Environment:
machine : ia64 hp server rx4640
OS info:
sysname = HP-UX
release = B.11.23
gcc version 4.0.4
And now I don't know how to resolve this problem.I hope somebody can help me.
Thanks!
- Tags:
- ABI mismatch
- ProC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2007 03:08 PM
10-25-2007 03:08 PM
Re: How to resolve "Can't find library or mismatched ABI for –lclntsh"
It might help to see the whole link command
from the "make" file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2007 05:51 PM
10-25-2007 05:51 PM
Re: How to resolve "Can't find library or mismatched ABI for –lclntsh"
>Steven: file $ORACLE_HOME/lib/libclntsh.so
You may need to insert hpux32 before the lib?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2007 07:33 PM
10-25-2007 07:33 PM
Re: How to resolve "Can't find library or mismatched ABI for –lclntsh"
MAKEEXE= g++ -v â Wall -L$(ORACLE_HOME)/rdbms/lib -L$(ORACLE_HOME)/lib -lclntsh
Analyse: $(PUB_OBJS) $(CONFIG_PARA_OBJS) $(APP_OBJS)
$(MAKEEXE) â o Analyse $(PUB_OBJS) $(CONFIG_PARA_OBJS) $(APP_OBJS)
>to Dennis Handly
Before I ask for helping ,I tried to add â lib/hpux32 â in the â LD_LIBRARY_PATHâ ,and file â libclntsh.soâ is in this path,the error still happenes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2007 07:52 PM
10-25-2007 07:52 PM
Re: How to resolve "Can't find library or mismatched ABI for –lclntsh"
The linker doesn't look at LD_LIBRARY_PATH. It looks at -L or LPATH.
- Tags:
- LPATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2007 12:49 AM
10-26-2007 12:49 AM
Re: How to resolve "Can't find library or mismatched ABI for –lclntsh"
That was intended as a suggestion to run that
command. (And post the output.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2007 02:28 PM
10-29-2007 02:28 PM
Re: How to resolve "Can't find library or mismatched ABI for –lclntsh"
When I copied the "libclntsh.so" from the path "$ORACLE_HOME/lib" to the path "/lib/hpux32",then define "-L/lib/hpux32" in my makefile,then everything is ok.
But I tried to delete "libclntsh.so" from "/lib/hpux32",then define "-L$ORACLE_HOME/lib" in my makefile,error still happened!
Can somebody tell me why this happen?
Thanks,my friends!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2007 02:42 PM
10-29-2007 02:42 PM
Re: How to resolve "Can't find library or mismatched ABI for –lclntsh"
So, stick with what works.
>But I tried to delete libclntsh.so from /lib/hpux32, then define -L$ORACLE_HOME/lib in my makefile, error still happened!
>Can somebody tell me why this happen?
I would have to see what your linker options are. There may be other dependent shlibs that want that old path.