1752806 Members
6468 Online
108789 Solutions
New Discussion юеВ

Apache/php/GD

 
Thomas Savino
New Member

Apache/php/GD

I have been trying to get php/gd to work but I getting errors tried up grading,downgrading but I can not seem to get this to work and compiling a new system in not a option. I have been working on this on and off for a month.

hpuxwsApache -> B.2.0.58.01
hpuxwsTomcat -> A.5.5.20.00
hpuxwsWebmin -> A.1.070.02
ixMySQL -> A.08.00-5.0.2
expat -> 2.0.1
fontconfig -> 2.5.0
freetype -> 2.3.5
gettext -> 0.17
jpeg -> 6b
lesstif -> 0.95.0
libiconv -> 1.12
libpng -> 1.2.24
t1lib -> 5.1.0
xpm -> 3.4k
zlib -> 1.2.3

Apache error:

PHP Warning: PHP Startup: Unable to load dynamic library '/opt/hpws/apache/php/lib/php/extensions/gd.sl' - Can't find path for shared library: libt1.sl.4 in Unknown on line 0
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# chatr /opt/hpws/apache/php/lib/php/extensions/gd.sl
chatr(warning): dl_header_ext.size != sizeof(dl_header_ext). Please update your version of the chatr tool.
/opt/hpws/apache/php/lib/php/extensions/gd.sl:
shared library
shared library dynamic path search:
SHLIB_PATH enabled second
embedded path enabled first /usr/local/lib
internal name:
gd.sl
shared library list:
dynamic /usr/local/lib/libt1.sl.4
dynamic /usr/local/lib/libfreetype.sl.9
dynamic /usr/local/lib/libXpm.sl
dynamic /usr/local/lib/libpng.sl.2
dynamic /usr/local/lib/libz.sl
dynamic /usr/local/lib/libjpeg.sl
dynamic /usr/lib/libc.2
shared vtable support disabled
static branch prediction disabled
executable from stack: D (default)
kernel assisted branch prediction enabled
lazy swap allocation disabled
text segment locking disabled
data segment locking disabled
third quadrant private data space disabled
fourth quadrant private data space disabled
third quadrant global data space disabled
data page size: D (default)
instruction page size: D (default)
nulptr references enabled


# ldd -s -v /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.sl
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
5 REPLIES 5
Ivan Krastev
Honored Contributor

Re: Apache/php/GD

See point 6. PHP Extensions have the following requirements

here - http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXWSATW218


There are lots of external sources for each PHP module.

regards,
ivan
Dennis Handly
Acclaimed Contributor

Re: Apache/php/GD

You say you have "t1lib -> 5.1.0" but is libt1.sl.4 in /usr/local/lib/?

You are also missing libpng.sl.2.
Thomas Savino
New Member

Re: Apache/php/GD

Why does HP not put these into there product? Its like selling a car with no tires. Where I work we do not have a compiler to add these to the php5 so I am stuck with a crippled web server.
Dennis Handly
Acclaimed Contributor

Re: Apache/php/GD

>Why does HP not put these into their product?

Have you provided HP this feedback?

>Where I work we do not have a compiler to add these to the php5

Aren't there places to just download the binaries? If not, provide that feedback.

Note: There is an evaluation compiler you can download, if you can't use gcc.

Olivier Masse
Honored Contributor

Re: Apache/php/GD

Oh man, I've just been through this issue this afternoon with gd.sl and spent quite some time looking into this.

Since our httpd is in 64-bit mode (to satisfy oci8 which uses a 64-bit Oracle client), I think I will have to recompile almost ten shared librairies in 64-bit, working around the quirks required to compile them correctly on ia64-hpux.

On Linux or one of the BSDs, I'd be up and running in minutes. Now I'm looking at a lot of work ahead of me to fix that. That sucks.

I just logged a complaint through the ITRC and expect others to do the same. Either include a gd.sl that works out of the box, or don't include it at all.

Olivier.