php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10617 DSO won't load
Submitted: 2001-05-02 15:38 UTC Modified: 2001-05-07 18:50 UTC
From: loosecannon at 411 dot com Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.0.5 OS: Solaris 2.6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: loosecannon at 411 dot com
New email:
PHP Version: OS:

 

 [2001-05-02 15:38 UTC] loosecannon at 411 dot com
I configured PHP with the following:

./configure --with-apxs=/www/server/apache/bin/apxs --with-yaz=/www/src/yaz-1.6  --with-sybase=/usr/local/sybase/client --with-xml --enable-ftp --with-gd=/www/src/gd1.2 --disable-pear --with-dbase --enable-libgcc --enable-freetype-4bit-antialias-hack  --with-pdflib=/www/src/pdflib-3.03 --with-tiff-dir=/www/src/tiif-v3.4 --with-png-dir=/www/src/libpng-1.0.9 --enable-sockets --with-zlib-dir=/www/src/zlib-1.1.3 --enable-versioning --enable-libgcc

and all goes well through the make process. However when I got to restart Apache (1.3.09) I get the following error:

Syntax error on line 233 of /www/server/apache/conf/httpd.conf:
Cannot load /www/server/apache/libexec/libphp4.so into server: ld.so.1: /www/server/apache
/bin/httpd: fatal: relocation error: file /www/server/apache/libexec/libphp4.so: symbol hstrerror: referenced symbol not found

When I do an ldd for the libphp4.so I get the following:

ldd libphp4.so
        libpam.so.1 =>   /usr/lib/libpam.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libsybdb.so =>   /usr/lib/libsybdb.so
        libresolv.so.2 =>        /usr/lib/libresolv.so.2
        libm.so.1 =>     /usr/lib/libm.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-06 12:13 UTC] sniper@php.net
Does this happen also with the latest CVS?
Try a snapshot from http://snaps.php.net/

--Jani

 [2001-05-07 18:00 UTC] loosecannon at 411 dot com
I think the problem might be with the PDFlib support. The message I posted earlier did not include the jpeg library support. I ran config again with the following:

./configure --with-apxs=/www/server/apache/bin/apxs --with
-yaz=/www/src/yaz-1.6 --with-sybase=/usr/local/sybase/client --with-xml --enable-ftp --wit
h-gd=/www/src/gd1.2 --disable-pear --with-dbase --enable-libgcc --enable-freetype-4bit-ant
ialias-hack --with-pdflib=/www/src/pdflib-3.03 --with-jpeg-dir=/www/src/jpeg-6b --with-tif
f-dir=/www/src/tiif-v3.4 --with-png-dir=/www/src/libpng-1.0.9 --enable-sockets --with-zlib
-dir=/www/src/zlib-1.1.3 --enable-versioning --enable-libgcc


and then when I went to do a make I got the following:

/bin/sh /www/src/php-4.0.5/libtool --silent --mode=link gcc  -I. -I/www/src/php-4.0.5/ -I/
www/src/php-4.0.5/main -I/www/src/php-4.0.5 -I/www/server/apache/include -I/www/src/php-4.
0.5/Zend -I/www/src/gd1.2 -I/www/src/php-4.0.5/ext/mysql/libmysql -I/usr/local/sybase/clie
nt/include -I/www/src/php-4.0.5/ext/xml/expat/xmltok -I/www/src/php-4.0.5/ext/xml/expat/xm
lparse -I/www/src/yaz-1.6/include -I/www/src/php-4.0.5/TSRM  -D_POSIX_PTHREAD_SEMANTICS -D
SOLARIS2=260 -DMOD_SSL=204102 -DEAPI -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2
   -o libphp4.la -rpath /www/src/php-4.0.5/libs -export-symbols /www/src/php-4.0.5/sapi/ap
ache/php.sym -avoid-version -L/usr/ucblib -L/usr/local/gcc/egcs-1.1.2/lib/gcc-lib/sparc-su
n-solaris2.6/egcs-2.91.66 -L/www/src/jpeg-6b/lib -L/www/src/gd1.2 -L/usr/local/sybase/clie
nt/lib -L/www/src/yaz-1.6/lib  -R /usr/ucblib -R /usr/local/gcc/egcs-1.1.2/lib/gcc-lib/spa
rc-sun-solaris2.6/egcs-2.91.66 -R /www/src/jpeg-6b/lib -R /www/src/gd1.2 -R /usr/local/syb
ase/client/lib -R /www/src/yaz-1.6/lib stub.lo  Zend/libZend.la  sapi/apache/libsapi.la  m
ain/libmain.la  regex/libregex.la  ext/dbase/libdbase.la ext/ftp/libftp.la ext/gd/libgd.la
 ext/mysql/libmysql.la ext/pcre/libpcre.la ext/posix/libposix.la ext/session/libsession.la
 ext/sockets/libsockets.la ext/standard/libstandard.la ext/sybase/libsybase.la ext/xml/lib
xml.la ext/yaz/libyaz.la  TSRM/libtsrm.la -ldl -lnsl -lsocket -lyaz -lsybdb -lgd -ljpeg -l
resolv -lresolv -lm -ldl -lcrypt -lnsl -lsocket -lsocket -lgcc -L/www/src/jpeg-6b/lib -ljp
eg
ld: fatal: library -ljpeg: not found
ld: fatal: library -ljpeg: not found
ld: fatal: library -ljpeg: not found
ld: fatal: library -ljpeg: not found
ld: fatal: File processing errors. No output written to .libs/libphp4.so
*** Error code 1
make: Fatal error: Command failed for target `libphp4.la'
Current working directory /www/src/php-4.0.5
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
 [2001-05-07 18:50 UTC] sniper@php.net
You obviously haven't read the instructions.
Do NOT use source paths in --with-xxxx=[path] but the INSTALL base path. Like this:

jpeg libs are in /www/jpeg/lib => --with-jpeg-dir=/www/jpeg

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 13:01:28 2024 UTC