OpenBSD 2.6, Apache 1.3.12, & PHP4: Relocation and Undefined Symbols

From: Date: Thu, 01 Jun 2000 16:14:48 +0000
Subject: OpenBSD 2.6, Apache 1.3.12, & PHP4: Relocation and Undefined Symbols
Groups: php.general 
Request: Send a blank email to php-general+get-835@lists.php.net to get a copy of this message
I got PHP4 and configured it with the following arguments successfully: | [root@impulse conf]#./configure --with-apxs | --with-config-file-path=/var/www/conf --enable-safe-mode | --enable-track-vars --enable-magic-quotes --enable-bcmath | --enable-calendar --with-db2 --enable-ftp --with-imap --with-java | --with-ldap --with-mcal --with-mhash --with-pgsql --enable-trans-sid | --enable-memory-limit While compiling with LDFLAGS="-ldl" (as suggested by some messages in the OpenBSD-misc archives; I received the following when compiling without -ldl, as well), I received the following: | *** Warning: inter-library dependencies are not known to be supported. | *** All declared inter-library dependencies are being dropped. | *** 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. | ld: .libs/libphp4.lax/libsapi.al/mod_php4.lo: relocation must refer | to global symbol at 0xfab | ld: .libs/libphp4.lax/libsapi.al/mod_php4.lo: relocation must refer | to global symbol at 0xf4f | ld: .libs/libphp4.lax/libsapi.al/mod_php4.lo: relocation must refer | to global symbol at 0xcce | Making all in pear | [root@impulse php-4.0.0]# I then make-install'd without any errors. Upon restarting apache, I received the following error: | [root@impulse conf]#apachectl restart | /usr/sbin/apachectl restart: httpd not running, trying to start | /usr/libexec/ld.so: Undefined symbol "_mail_string" in | httpd:/usr/lib/apache/modules/libphp4.so | /usr/sbin/apachectl restart: httpd could not be started | [root@impulse conf]# I then configured PHP with only --with-apxs, and compiled cleanly, but received the same errors, so I don't think it's a problem in compiling one of the options. Has anyone run into this before? Does anyone know any way to solve it? CJ

« previous php.general (#835) next »