- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SHLIB_PATH - what do I get?
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
Forums
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
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
02-18-2007 09:07 PM
02-18-2007 09:07 PM
On a new itanium box running 11.23 I'm installing ImageMagick. All packages are taken from the porting archives. When I try a simple conversion (jpg to gif) I get this:
/usr/lib/hpux32/dld.so: Unsatisfied code symbol '__udivsi3' in load module '/usr/local/lib/hpux32/libMagick.so'.
Searching the forums tells me that these symbols are part of libgcc (libgcc.a). With hp-gcc installed and the porting archives libgcc package, I have libgcc.a in the following places:
/usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/hpux64/libgcc.a
/usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/libgcc.a
/usr/local/lib/hpux32/libgcc.a
/opt/hp-gcc-4.1.1/lib/gcc/ia64-hp-hpux11.23/4.1.1/hpux64/libgcc.a
/opt/hp-gcc-4.1.1/lib/gcc/ia64-hp-hpux11.23/4.1.1/libgcc.a
The 64-bit ones are obviously off, but how do I write my SHLIB_PATH to get this working? I just can get this to work, is the only way forward to compile from source? Who's being stupid, me or the box?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2007 09:21 PM
02-18-2007 09:21 PM
Re: SHLIB_PATH - what do I get?
You probably do know how SHLIB_PATH.
Most likely you have bad code from the porting and archive center.
SHLIB_PATH works just like PATH
Omit pathes you don't need from it and it reads from beginning to end right to left until it finds what its looking for.
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
02-18-2007 09:52 PM
02-18-2007 09:52 PM
Re: SHLIB_PATH - what do I get?
This is my SHLIB for Oracle into .profile of user:
export SHLIB_PATH=$PATH:ORACLE_HOME/lib
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2007 10:02 PM
02-18-2007 10:02 PM
Re: SHLIB_PATH - what do I get?
a) Is it possible for a shared library to ignore the SHLIB_PATH?
b) If yes can this behaviour be changed without compiling from source?
To those who replied so far:
- Please define bad code, i.e. is it useless or usable with some tweaks?
- I'm no guru but having your PATH in your SHLIB_PATH cannot help much. I'm close to calling it stupid but I wont...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2007 10:25 PM
02-18-2007 10:25 PM
Re: SHLIB_PATH - what do I get?
i'm not a programmer, but depend from wich user launch the application.
SHLIB_PATH is defined into the .profile.
I think you can try to:
- put absolute path of library into the application code
- put an '#' on the SHLIB_PATH
- create another user without SHLIB_PATH or a different SHLIB_PATH.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2007 11:11 PM
02-18-2007 11:11 PM
Re: SHLIB_PATH - what do I get?
export SHLIB_PATH=$PATH:ORACLE_HOME/lib
in oracle's profile. It isn't exactly a sign of expertise in this particular field of hpux system administration, sorry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2007 11:51 PM
02-18-2007 11:51 PM
Re: SHLIB_PATH - what do I get?
but this isn't Oracle's profile, it is of another user...
and... is configured by HP technichains, not from me.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2007 01:29 AM
02-19-2007 01:29 AM
Re: SHLIB_PATH - what do I get?
man chatr
I think that +s is the likely parameter to use because it enables/disables SHLIB_PATH look-up in the file, without re-compilation.
Check that SHLIB_PATH is listed, at least.
Anyway start off with running
chatr [executable]
and see what the order is, then go from there.
Another option is to try and add those directories onto the end of your SHLIB_PATH, but make sure that you have the right versions of gcc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2007 02:32 PM
02-19-2007 02:32 PM
SolutionIf you get this unsat, you are out of luck and must relink. (But see below.) You most likely can't solve it with SHLIB_PATH. (You should really use LD_LIBRARY_PATH on IPF.)
>but how do I write my SHLIB_PATH to get this working?
You can't. You need to use LPATH at link time.
>I'm installing ImageMagick. All packages are taken from the porting archives.
libMagick.so was linked incorrectly. You may be able to "fix" it by linking your application with -u__udivsi3.
>- Please define bad code, i.e. is it useless or usable with some tweaks?
Not sure. You may be able to use the -u kludge.
>- I'm no guru but having your PATH in your SHLIB_PATH cannot help much. I'm close to calling it stupid but I wont...
It depends, but most likely it is "stupid" since libs should not be in bin directories.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2007 07:46 PM
02-19-2007 07:46 PM
Re: SHLIB_PATH - what do I get?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2007 07:50 PM
02-19-2007 07:50 PM
Re: SHLIB_PATH - what do I get?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2007 03:22 PM
02-20-2007 03:22 PM
Re: SHLIB_PATH - what do I get?
The only trouble with this, did you report they didn't work and offer a solution? That way the next user can benefit.