PHP 4.0 Bug #2665: referenced symbol not found
| From: | jclark at xnet dot com | Date: | Thu, 04 Nov 1999 21:30:33 +0000 |
| Subject: | PHP 4.0 Bug #2665: referenced symbol not found | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-12120@lists.php.net to get a copy of this message | ||
From: jclark@xnet.com
Operating system: Solaris 2.7
PHP version: 4.0 Latest CVS (04/11/1999)
PHP Bug Type: Dynamic loading related
Bug description: referenced symbol not found
/bin/sh ./libtool --silent --mode=link gcc -g -O2 -g -O2 -o libphp4.la -rpath
/opt/httpd/src/temp/php4/libs -export-symbols ./php.sym -avoid-version -R /opt/httpd/lib -R
/opt/httpd/lib/mysql main.lo internal_functions.lo snprintf.lo php3_sprintf.lo
configuration-parser.lo configuration-scanner.lo request_info.lo safe_mode.lo fopen-wrappers.lo
php3_realpath.lo alloca.lo php_ini.lo SAPI.lo rfc1867.lo dlist.lo php_content_types.lo strlcpy.lo
strlcat.lo mergesort.lo libzend/libzend.la sapi/apache/libphpsapi_apache.la
regex/libregex.la ext/apache/libphpext_apache.la ext/db/libphpext_db.la
ext/dba/libphpext_dba.la ext/dbase/libphpext_dbase.la ext/filepro/libphpext_filepro.la
ext/ftp/libphpext_ftp.la ext/gd/libphpext_gd.la ext/imap/libphpext_imap.la
ext/ldap/libphpext_ldap.la ext/mcrypt/libphpext_mcrypt.la ext/mhash/libphpext_mhash.la
ext/mysql/libphpext_mysql.la ext/pcre/libphpext_pcre.la ext/pdf/libphpext_pdf.la
ext/session/libphpext_session.la ext/snmp/libphpext_snmp.la ext/standard/libphpext_standard.la
ext/sysvsem/libphpext_sysvsem.la ext/sysvshm/libphpext_sysvshm.la ext/xml/libphpext_xml.la
ext/zlib/libphpext_zlib.la -ldl -lm -lresolv -lnsl -lsocket -lcrypt -lgdbm
-L/opt/httpd/lib -lgdbm -lc -ldb -lgd -lttf -lc-client -lldap -llber -lmcrypt -lmhash
-L/opt/httpd/lib/mysql -lmysqlclient -L/opt/httpd/lib -ljpeg -L/opt/httpd/lib -ltiff
-L/opt/httpd/lib -lpdf -lmm -lsnmp -lkstat -lpam -lz
*** Warning: This library needs some functionality provided by -lc-client.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** Warning: This library needs some functionality provided by -ljpeg.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
make[2]: Entering directory `/opt/httpd/src/temp/php4'
make[2]: Nothing to be done for `install-exec-am'.
/bin/sh ./mkinstalldirs /opt/httpd/src/temp/php4/libs
/bin/sh ./libtool --silent --mode=install ./install-sh -c libphp4.la
/opt/httpd/src/temp/php4/libs/libphp4.la
----------------------------------------------------------------------
Libraries have been installed in:
/opt/httpd/src/temp/php4/libs
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- use the `-RLIBDIR' linker flag
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/opt/httpd/sbin/apxs -i -a -n php4 libs/libphp4.so
cp libs/libphp4.so /opt/httpd/libexec/libphp4.so
chmod 755 /opt/httpd/libexec/libphp4.so
[activating module `php4' in /opt/httpd/etc/httpd.conf]
make[2]: Leaving directory `/opt/httpd/src/temp/php4'
make[1]: Leaving directory `/opt/httpd/src/temp/php4'
[monsoon:web] ~/src/temp/php4> /opt/httpd/sbin/apachectl restart
/opt/httpd/sbin/apachectl restart: httpd not running, trying to start
Syntax error on line 250 of /opt/httpd/etc/httpd.conf:
Cannot load /opt/httpd/libexec/libphp4.so into server: ld.so.1: /opt/httpd/sbin/httpd: fatal:
relocation error: file /opt/httpd/lib/libmcrypt-2.2.so.2: symbol __eprintf: referenced symbol not
found
/opt/httpd/sbin/apachectl restart: httpd could not be started
It appears that I'm having problems linking libtiff and libmcrypt. If I do an ldd -r on
libmcrypt and libtiff I get the same messages (even after a fresh compile of each library).