Operating System - HP-UX
1832505 Members
4846 Online
110043 Solutions
New Discussion

Re: HPWS 2.0.53 with php and gd support

 
Marko_29
New Member

HPWS 2.0.53 with php and gd support

Hello,

I have a problem with installing libraries on my HP-UX box. The problem is as follows:

I installed hpws 2.0.53 on my HP-UX box and want
to enable php with gd-Support.
In the documentation of hpws 2.0.53 HP advised to install
the following libraries under /usr/local/lib:

Image (gd.sl) :
libjpeg version 6b
libpng version 1.0.11
libxpm version 3.4k
libfreetype version 2.1.2
t1lib version 1.3.1 (should be installed in /usr/local/lib)

So I looked under http://hpux.cs.utah.edu for binary depots, but I only have found higher versions.

I installed these versions:

(hpws 2.0.53 on HP-UX 11.11)

expat-1.95.8-sd-11.22.depot
jpeg-6b-sd-11.00.depot
xpm-3.4k-sd-11.11.depot
freetype-2.1.9-sd-11.11.depot
libiconv-1.9.2-sd-11.22.depot
zlib-1.2.2-sd-11.11.depot
gettext-0.14.1-sd-11.22.depot
libpng-1.2.8-sd-11.11.depot
t1lib-1.3-sd-11.11.depot

-- I am not sure if I take the right depots? --

But installing these higher versions does not work. The apache gave the following error-log:


[Mon Jul 04 14:53:24 2005] [notice] SIGHUP received. Attempting to restart
PHP Warning: Unknown(): Unable to load dynamic library '/opt/hpws/apache/php/lib/php/extensions/gd.sl' - Call to mmap() failed - TEXT /opt/hpws/apache/php/lib/php/extensions/gd.sl in Unknown on line 0
[Mon Jul 04 14:53:24 2005] [notice] Apache/2.0.53 HP-UX_Apache-based_Web_Server (Unix) DAV/2 PHP/4.3.8 configured -- resuming normal operations


ldd gave the following output:

ldd -vrds /opt/hpws/apache/php/lib/php/extensions/gd.sl

find library=/usr/lib/libc.2; required by /opt/hpws/apache/php/lib/php/extensions/gd.sl
search path=/usr/local/lib (RPATH)
trying path=/usr/local/lib/libc.2
trying path=/usr/lib/libc.2 (absolute)
/usr/lib/libc.2 => /usr/lib/libc.2

find library=/usr/lib/libdld.2; required by /usr/lib/libc.2
search path=/usr/local/lib (RPATH)
trying path=/usr/local/lib/libdld.2
trying path=/usr/lib/libdld.2 (absolute)
/usr/lib/libdld.2 => /usr/lib/libdld.2

find library=/usr/lib/libc.2; required by implicit load
search path=/usr/local/lib (RPATH)
trying path=/usr/local/lib/libc.2
trying path=/usr/lib/libc.2 (absolute)
/usr/lib/libc.2 => /usr/lib/libc.2

find library=/usr/local/lib/libjpeg.sl; required by /opt/hpws/apache/php/lib/php/extensions/gd.sl
search path=/usr/local/lib (RPATH)
trying path=/usr/local/lib/libjpeg.0
trying path=/usr/local/lib/libjpeg.0 (absolute)
search path=/usr/local/lib (RPATH)
trying path=/usr/local/lib/libjpeg.sl
/usr/local/lib/libjpeg.sl => /usr/local/lib/libjpeg.sl

find library=/usr/local/lib/libz.sl; required by /opt/hpws/apache/php/lib/php/extensions/gd.sl
search path=/usr/local/lib (RPATH)
trying path=/usr/local/lib/libz.0
trying path=/usr/local/lib/libz.0 (absolute)
search path=/usr/local/lib (RPATH)
trying path=/usr/local/lib/libz.sl
/usr/local/lib/libz.sl => /usr/local/lib/libz.sl

find library=/usr/local/lib/libpng.sl.2; required by /opt/hpws/apache/php/lib/php/extensions/gd.s
l
search path=/usr/local/lib (RPATH)
trying path=/usr/local/lib/libpng.sl.2
trying path=/usr/local/lib/libpng.sl.2 (absolute)
/usr/lib/dld.sl: Can't find path for shared library: libpng.sl.2
/usr/lib/dld.sl: No such file or directory


Kind regards

Marko

2 REPLIES 2
Marko_29
New Member

Re: HPWS 2.0.53 with php and gd support

Hello,

today I start another try but it also fails.

What I have done:

I reinstalled all depots in the following version:

zlib-1.2.2-sd-11.11.depot
xpm-3.4k-sd-11.11.depot
expat-1.95.8-sd-11.11.depot
gettext-0.14.1-sd-11.11.depot
ibiconv-1.9.2-sd-11.11.depot
jpeg-6b-sd-11.11.depot

These depots seem to work with gd.sl. After that I compiled the following libraries
from source:

libpng-1.0.11
freetype-2.1.3 <= 2.1.2 kann man nicht mehr herunterladen
T1Lib-1.3

Now ldd finds all needing libraries by name in the file system.
But unfortunately I still have an entry in the apache error_log:

[Tue Jul 05 13:28:33 2005] [notice] SIGHUP received. Attempting to restart
PHP Warning: Unknown(): Unable to load dynamic library '/opt/hpws/apache/php/lib/php/extensions/gd
.sl' - Call to mmap() failed - TEXT /opt/hpws/apache/php/lib/php/extensions/gd.sl in Unknown on lin
e 0
[Tue Jul 05 13:28:34 2005] [notice] Apache/2.0.53 HP-UX_Apache-based_Web_Server (Unix) DAV/2 PHP/4
.3.8 configured -- resuming normal operations


ldd gave me the following result:

find library=/usr/lib/libc.2; required by /opt/hpws/apache/php/lib/php/extensions/gd.sl
/usr/lib/libc.2 => /usr/lib/libc.2

find library=/usr/lib/libdld.2; required by /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2

find library=/usr/lib/libc.2; required by implicit load
/usr/lib/libc.2 => /usr/lib/libc.2

find library=/usr/local/lib/libjpeg.sl; required by /opt/hpws/apache/php/lib/php/extensions/gd.sl
/usr/local/lib/libjpeg.sl => /usr/local/lib/libjpeg.sl

find library=/usr/local/lib/libz.sl; required by /opt/hpws/apache/php/lib/php/extensions/gd.sl
/usr/local/lib/libz.sl => /usr/local/lib/libz.sl

find library=/usr/local/lib/libpng.sl.2; required by /opt/hpws/apache/php/lib/php/extensions/gd.s
l
/usr/local/lib/libpng.sl.2 => /usr/local/lib/libpng.sl.2

find library=/usr/local/lib/libz.sl; required by /usr/local/lib/libpng.sl.2
/usr/local/lib/libz.sl => /usr/local/lib/libz.sl

find library=/usr/local/lib/libXpm.sl; required by /opt/hpws/apache/php/lib/php/extensions/gd.sl
/usr/local/lib/libXpm.sl => /usr/local/lib/libXpm.sl

find library=/usr/local/lib/libfreetype.sl.9; required by /opt/hpws/apache/php/lib/php/extensions
/gd.sl
/usr/local/lib/libfreetype.sl.9 => /usr/local/lib/libfreetype.sl.9

find library=/usr/lib/libc.2; required by /usr/local/lib/libfreetype.sl.9
/usr/lib/libc.2 => /usr/lib/libc.2

find library=/usr/local/lib/libt1.sl.4; required by /opt/hpws/apache/php/lib/php/extensions/gd.sl
/usr/local/lib/libt1.sl.4 => /usr/local/lib/libt1.sl.4
symbol not found: _end (/usr/lib/libc.2)
symbol not found: _SYSTEM_ID (/usr/lib/libc.2)
symbol not found: _SYSTEM_ID (/usr/lib/libc.2)
symbol not found: floor (/usr/local/lib/libt1.sl.4)
symbol not found: ceil (/usr/local/lib/libt1.sl.4)
symbol not found: floor (/usr/local/lib/libt1.sl.4)
symbol not found: ceil (/usr/local/lib/libt1.sl.4)
symbol not found: empty_string (/opt/hpws/apache/php/lib/php/extensions/gd.sl)
symbol not found: php_sig_png (/opt/hpws/apache/php/lib/php/extensions/gd.sl)
symbol not found: php_stream_stdio_ops (/opt/hpws/apache/php/lib/php/extensions/gd.sl) .............


Thank you for helping

Marko
Madhu Kangara
Frequent Advisor

Re: HPWS 2.0.53 with php and gd support

1) Install depot t1lib-1.3-hppa-11.11.depot.
2) install new libpng library from source
I downloaded libpng-1.0.18
and compiled using following steps
a) ./configure LDFLAGS=-L/usr/local/lib

(I had already installed zlib )

make
make install

2) create symbolic links in /usr/local/lib
cd /usr/local/lib
ln -s libt1.sl libt1.sl.4
ln -s libfreetype.sl libfreetype.sl.9
ln -s /usr/local/lib/X11/libXpm.sl libXpm.sl
ln -s libpng.sl.3.0 libpng.sl.2


Stop and Start Apache. Test jpgraph library to see if all test scripts are working