1752800 Members
5435 Online
108789 Solutions
New Discussion юеВ

zlib.sl --> libz.sl

 
SOLVED
Go to solution
jcmcdevitt
Occasional Advisor

zlib.sl --> libz.sl

Why can't the system find libz.sl? I can see the file and it is in the path:

# echo $SHLIB_PATH
/usr/vsaunix/HP-UX/cmnagent/lib

# ll /usr/vsaunix/HP-UX/cmnagent/lib/libz.sl
-r-x------ 3 root sys 82161 Nov 17 2006 /usr/vsaunix/HP-UX/cmnagent/lib/libz.sl

# ldd -s -v /opt/hpws/apache/php/lib/php/extensions/zlib.sl

find library=libz.sl; required by /opt/hpws/apache/php/lib/php/extensions/zlib.sl
search path=/usr/vsaunix/HP-UX/cmnagent/lib (SHLIB_PATH)
trying path=/usr/vsaunix/HP-UX/cmnagent/lib/libz.sl
search path=/hpapache/apinteg/apinteg_hpws_2.18_1123_ia64/CLO/Components/MOD_PHP5/OpenSourceLibs/ia64_64/lib (RUNPATH)
trying path=/hpapache/apinteg/apinteg_hpws_2.18_1123_ia64/CLO/Components/MOD_PHP5/OpenSourceLibs/ia64_64/lib/libz.sl
search path=/usr/lib/hpux64 (default)
trying path=/usr/lib/hpux64/libz.sl
Unable to find library 'libz.sl'.


# chatr /opt/hpws/apache/php/lib/php/extensions/zlib.sl
/opt/hpws/apache/php/lib/php/extensions/zlib.sl:
64-bit ELF shared library
shared library dynamic path search:
LD_LIBRARY_PATH enabled first
SHLIB_PATH enabled second
embedded path enabled third /hpapache/apinteg/apinteg_hpws_2.18_1123_ia64/CLO/Components/MOD_PHP5/OpenSourceLibs/ia64_64/lib
internal name:
zlib.so
shared library list:
libz.sl
libc.so.1
shared library mapped private disabled
shared vtable support disabled
explicit unloading enabled
linkage table protection disabled
segments:
index type address flags size
6 text 4000000000000000 z---c- D (default)
7 data 6000000000000000 ---m-- D (default)
kernel assisted branch prediction enabled
lazy swap allocation for dynamic segments disabled
nulptr dereferences trap disabled
address space model: default
caliper dynamic instrumentation disabled
#



4 REPLIES 4
Shinji Teragaito_1
Respected Contributor

Re: zlib.sl --> libz.sl

You should confirm if your libz.sl is a 64-bit binary because PHP extention zlib.sl
requires 64-bit, not 32-bit.

If your libz.sl is 64-bit, you should add
/usr/vsaunix/HP-UX/cmnagent/lib to SHLIB_PATH defined in apachectl.
Dennis Handly
Acclaimed Contributor
Solution

Re: zlib.sl --> libz.sl

>Shinji: You should confirm if your libz.sl is a 64-bit

Right. That's why shlibs should be put into directories with the HP-UX convention:
lib/hpux32/ and lib/hpux64/.
jcmcdevitt
Occasional Advisor

Re: zlib.sl --> libz.sl

Thank you. That seems to be the issue. I wish HP would have bundled the libs with the PHP install.
Shinji Teragaito_1
Respected Contributor

Re: zlib.sl --> libz.sl

> That seems to be the issue. I wish HP would have bundled the
> libs with the PHP install.

If you can accept to upgrade your HP-UX Apache-based Web
Server, the issue has been resolved yet.

- HP-UX Apache-based Web Server v.2.20 (Apache 2.0.59 base) or later
- HP-UX Apache-based Web Server v.3.0 (Apache 2.2.8 base) or later

You don't have to install some OSS libraries PHP extentions
depend. Because PHP extentions are linked with archive
library/libraries they require respectively. For example,
zlib.sl is linked with libz.a.

Hope this helps you.