Operating System - HP-UX
1834825 Members
2568 Online
110070 Solutions
New Discussion

Program doesn´t find existing libraries

 
reis
Advisor

Program doesn´t find existing libraries

Hi,
we got a new version of a program (animator) and we can´t start it, because the program doesn´t find an existing library (libjpeg.sl).
I checked SHLIB_PATH, /usr/local/lib is set.
I checked the executable with chatr and ldd and here is the problem: ldd searches in the right place (/usr/local/lib), but doesn´t find the library. I installed the patch PHSS_30965, but nothing changed. How can I solve this problem ?
Here is the printout of ldd at the "missing" library:

find library=libjpeg.sl; required by /soft/gns/animator/hpux/a3_06_5b2/a3_m_hp_64
search path=/usr/lib:/usr/local/lib:/etc/opt/resmon/lib:/opt/graphics/OpenGL/lib:/opt/graphics/common/lib:/opt/tiff-3.5/lib:/opt/jpeg-6/lib:/opt/libpng/lib:/opt/aalib/lib:/opt/gimp/lib:/opt/glib/lib:/opt/tk-8.2/lib/X11:/opt/xpm/lib/X11:/opt/zlib/lib (LD_LIBRARY_PATH)
trying path=/usr/lib/libjpeg.sl
trying path=/usr/local/lib/libjpeg.sl
trying path=/etc/opt/resmon/lib/libjpeg.sl
trying path=/opt/graphics/OpenGL/lib/libjpeg.sl
trying path=/opt/graphics/common/lib/libjpeg.sl
trying path=/opt/tiff-3.5/lib/libjpeg.sl
trying path=/opt/jpeg-6/lib/libjpeg.sl
trying path=/opt/libpng/lib/libjpeg.sl
trying path=/opt/aalib/lib/libjpeg.sl
trying path=/opt/gimp/lib/libjpeg.sl
trying path=/opt/glib/lib/libjpeg.sl
trying path=/opt/tk-8.2/lib/X11/libjpeg.sl
trying path=/opt/xpm/lib/X11/libjpeg.sl
trying path=/opt/zlib/lib/libjpeg.sl
search path=/usr/lib:/usr/local/lib:/etc/opt/resmon/lib:/opt/graphics/OpenGL/lib:/opt/graphics/common/lib:/opt/tiff-3.5/lib:/opt/jpeg-6/lib:/opt/libpng/lib:/opt/aalib/lib:/opt/gimp/lib:/opt/glib/lib:/opt/tk-8.2/lib/X11:/opt/xpm/lib/X11:/opt/zlib/lib (SHLIB_PATH)
trying path=/usr/lib/libjpeg.sl
trying path=/usr/local/lib/libjpeg.sl
trying path=/etc/opt/resmon/lib/libjpeg.sl
trying path=/opt/graphics/OpenGL/lib/libjpeg.sl
trying path=/opt/graphics/common/lib/libjpeg.sl
trying path=/opt/tiff-3.5/lib/libjpeg.sl
trying path=/opt/jpeg-6/lib/libjpeg.sl
trying path=/opt/libpng/lib/libjpeg.sl
trying path=/opt/aalib/lib/libjpeg.sl
trying path=/opt/gimp/lib/libjpeg.sl
trying path=/opt/glib/lib/libjpeg.sl
trying path=/opt/tk-8.2/lib/X11/libjpeg.sl
trying path=/opt/xpm/lib/X11/libjpeg.sl
trying path=/opt/zlib/lib/libjpeg.sl
search path=../lib/lib_hp/pa20_64:/opt/graphics/OpenGL/lib/pa20_64:/usr/lib/Motif2.1:/usr/local/pa20_64/lib:/usr/lib/pa20_64:/opt/langtools/lib/pa20_64: (RPATH)
trying path=../lib/lib_hp/pa20_64/libjpeg.sl
trying path=/opt/graphics/OpenGL/lib/pa20_64/libjpeg.sl
trying path=/usr/lib/Motif2.1/libjpeg.sl
trying path=/usr/local/pa20_64/lib/libjpeg.sl
trying path=/usr/lib/pa20_64/libjpeg.sl
trying path=/opt/langtools/lib/pa20_64/libjpeg.sl
search path=/lib/pa20_64:/usr/lib/pa20_64 (default)
trying path=/lib/pa20_64/libjpeg.sl
trying path=/usr/lib/pa20_64/libjpeg.sl
Unable to find library 'libjpeg.sl'.
profil
4 REPLIES 4
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Program doesn´t find existing libraries

Does your LD_LIBRARY_PATH has that directory.
Vibhor Kumar Agarwal
H.Merijn Brand (procura
Honored Contributor

Re: Program doesn´t find existing libraries

You say you have *a* libjpeg.sl, but is it of a matching architecture?

I bet that animator is a 64bit applic, and your libjpeg.sl is 32 bit or the other way around

use

# file animator
# file libjpeg.sl

to see if I'm correct.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Stefan Schulz
Honored Contributor

Re: Program doesn´t find existing libraries

Hi,

as the application itselfe has a 64 in the filename i assume its an 64Bit application. So i think the version of the library you have is a 32Bit version.

Try to get a 64Bit version of this library and install it to a path like /usr/lib/pa20_64 to keep all 64Bit libraries together.

You might want to check your library with

# file libjpeg.sl

to check wether or not its a 32Bit version.

Hope this helps

Regards Stefan
No Mouse found. System halted. Press Mousebutton to continue.
reis
Advisor

Re: Program doesn´t find existing libraries

Hi,
thanks to all, you´re right. animator is a 64-bit version (a3_m_hp_64: ELF-64 executable object file - PA-RISC 2.0 (LP64)
) and the library is a 32-bit version (libjpeg.sl: PA-RISC1.1 shared library
). I downloaded the library from http://hpux.cs.utah.edu/hppd/hpux/X11/Graphics/jpeg-6b/, (64-bit version), but I got the same effect.
profil