|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4832 Undefined symbol "_mail_string" -> apache startup failure
Submitted: 2000-06-05 23:48 UTC Modified: 2002-04-03 08:37 UTC
From: cjones at v-wave dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.1.2 OS: OpenBSD
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.
Block user comment
Status: Assign to:
Bug Type:
From: cjones at v-wave dot com
New email:
PHP Version: OS:


 [2000-06-05 23:48 UTC] cjones at v-wave dot com
        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/ relocation must refer 
|     to global symbol at 0xfab
| ld: .libs/libphp4.lax/ relocation must refer 
| to global symbol at 0xf4f
| ld: .libs/libphp4.lax/ 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/ Undefined symbol "_mail_string" in 
|     httpd:/usr/lib/apache/modules/
| /usr/sbin/apachectl restart: httpd could not be started
| [root@impulse conf]#

        I then configured PHP4 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.  I have successfully had PHP3 run on the box with the same apache.

        Has anyone run into this before?  Does anyone know any way to solve it?



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-08 22:41 UTC]
Please verify that it?s still happening using the latest version of PHP (release 4.0.1pl2 or CVS).
 [2000-08-17 00:39 UTC] cjones at v-wave dot com
It continues in 4.0.1pl2.  I'm going to test the PHP4 port for OpenBSD done by Jakob Schlyter (available at, and will advise as necessary.  From traffic on the OpenBSD lists, it appears as if 4.0.2 mostly works (with a few compilation warnings).
 [2000-08-29 11:46 UTC] cjones at v-wave dot com
The OpenBSD port mentioned above compiles with some text relocation warnings, but runs fine.
 [2000-08-31 11:42 UTC]
Some openbsd-guru could possibly check out that
port (
and maybe make the needed modifications into php4-cvs??

 [2000-11-08 19:42 UTC]
Could you please try latest snapshot from
to check whether it fixes this ?

 [2000-12-07 11:16 UTC]
No feedback.
 [2002-02-26 23:59 UTC] emeltser at hotmail dot com
Just pulled the stable source (4.1.1), and compiled it under openbsd2.9. Used the following options:
./configure - ./configure --with-apxs=/usr/sbin/apxs --with-config-file-path=/var/www/conf --enable-calendar
--enable-bcmath --enable-trans-sid --with-yp --with-pcre-regex --enable-ftp --with-xml
--with-openssl --with-zlib --enable-sysvsem 
--enable-sysvshm --without-curl --without-gdbm --with-gettext --with-imap=/usr/local --with-imap-ssl=/usr/local --without-ldap
--with-mhash --without-mm --without-recode --without-snmp
 --without-gd --without-pdflib --disable-dbase --disable-filepro --without-mysql --with-pgsql=/usr/local/lib --without-iodbc
 --prefix=/usr/local --sysconfdir=/etc

,, then compiled, while recieving the compilation warning mentioned before. 'make install'd it fine, and upon restarting apache recieved the _mail_string error mentioned above. 
Please check it out. 

 [2002-02-27 00:15 UTC] cjones at v-wave dot com
I'm not using PHP 4.0.0 or OpenBSD 2.9 anymore.  The patched version in the OpenBSD ports system works, and that's good enough for me.
 [2002-04-02 20:12 UTC] markscarbrough at hotmail dot com
I get this same error with OpenBSD 3.0 and PHP 4.1.2. I am trying to upgrade to the newer php because of the upload security hole, otherwise I'd just stick with the OpenBSD port. If anyone cracks this I'd love to hear about it.
 [2002-04-02 20:48 UTC]
Reopen due to user report
 [2002-04-03 08:36 UTC]
Changed the reporter email address. (original person was satisfied with the ported version)

Also, please add your configure line and also the version
of the c-client library on your system.

 [2002-04-03 08:37 UTC]
Seems like it's not possible to change the submitter email.
So closing this one. Please open new bug report.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 26 03:01:31 2024 UTC