php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12531 undefined symbol: mxdriver
Submitted: 2001-08-02 07:42 UTC Modified: 2001-08-11 12:13 UTC
From: curtis at maurand dot com Assigned:
Status: Closed Package: IMAP related
PHP Version: 4.0.6 OS: RedHat 7.1
Private report: No CVE-ID: None
 [2001-08-02 07:42 UTC] curtis at maurand dot com
When compiling PHP with imap support, I always get the same error when starting apache. 

When I run configure using the following directives: 
--with-mysql=/usr \
--with-apxs=/usr/local/apache/bin/apxs 
--with-imap=/usr/local/apache/imap
--with-gd=/usr

I have copied all of the include files to /usr/local/apache/imap/include and the libs the corresponding lib directory.  I've grepped both the headers and the libraries for mxdriver and its in there.

If I remove imap support apache will run fine.  Since headers and libraries are kept in /usr/lib and /usr/include on RedHat.  I find all of the libraries there.  

I downloaded and installed the latest imap-2000c, imap-2000c-devel and imap-2000c-src rpms.  I've downloaded and compiled my own apache binaries.

I re-compiled apache with all the new headers installed.  WTF, over?

I'm not the only one to have this problem and I've been working on this problem off and on for a couple of weeks and using the self help features here, but now I'm totally frustrated and this blasted thing will still not work with imap support and I need imap support.  Its not supposed to be this hard.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-02 08:52 UTC] curtis at maurand dot com
I just tried a new wrinkle.  I used the following:

--with-mysql=/usr
--with-imap=/usr
--with-apache=/home/curtis/apache/apache_1.3.20

Still no joy.


 [2001-08-02 12:28 UTC] sniper@php.net
I just tried this with RH 7.1:

1. Installed imap-* rpms from RedHat distribution
2. Installed apache 1.3.20 with DSO support
3. Got the 4.0.6 sources and did these steps:

# tar zxfv php-4.0.6.tar.gz
# cd php-4.0.6
# ./configure \
--prefix=/www/apache \
--with-apxs=/www/apache/bin/apxs \ --with-mysql=/usr/local/mysql \
--with-zlib \
--with-imap \
--with-imap-ssl=/usr \
--with-kerberos \
--with-openssl

# make ; make install
# /www/apache/bin/apachectl start

And no problems at all..so my next question is:

WHERE did you get those imap-rpms from??

--Jani

 [2001-08-02 15:13 UTC] curtis at maurand dot com
I got them from:

ftp://sunsite.unc.edu/pub/distributions/redhat/updates/7.1/en/os/i386

the src rpm comes from

ftp://sunsite.unc.edu/pub/distributions/redhat/updates/7.1/en/os/SRPMS

However, when you don't call out a directory for imap during configure, PHP
will use its own extensions.  It doesn't matter.  any imap support and I get
undefigned symbol: mxdriver.

I've downloaded the source tarball from UW and I've compiled it.   I have
not had a chance to run a make clean and reconfigured from the PHP directory
yet.  Its still not supposed to be this hard.


 [2001-08-02 15:22 UTC] curtis at maurand dot com
I got them from:

ftp://sunsite.unc.edu/pub/distributions/redhat/updates/7.1/en/os/i386

the src rpm comes from

ftp://sunsite.unc.edu/pub/distributions/redhat/updates/7.1/en/os/SRPMS

However, when you don't call out a directory for imap during configure, PHP
will use its own extensions.  It doesn't matter.  any imap support and I get
undefigned symbol: mxdriver.

I've downloaded the source tarball from UW and I've compiled it.   I have
not had a chance to run a make clean and reconfigured from the PHP directory
yet.  Its still not supposed to be this hard.


 [2001-08-02 16:14 UTC] andy@php.net
what errors exactly are you getting?
 [2001-08-02 16:48 UTC] sniper@php.net
I'm still unable to reproduce this, even with the
EXACT same rpms you are using. 

--Jani

 [2001-08-02 21:57 UTC] curtis at maurand dot com
uname -a produces the following:
Linux pisces.maurand.com 2.4.2-2 #1 Sun Apr 8 19:37:14 EDT 2001 i586 unknown

Syntax error on line 201 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/
libexec/libphp4.so: undefined symbol: mxdriver
/usr/local/apache/bin/apachectl start: httpd could not be started

 [2001-08-02 22:07 UTC] curtis at maurand dot com
 A little further information.  This was a stock RedHat 7.0 install that I upgraded to 7.1.  I've tried compiling PHP against the stock redhat distribution of apache and now the 1.3.20 source that i downloaded.  

Apache compiled fine and it runs with PHP4 compiled without imap support.

I've installed most of the updates that are available at your favorite mirror site including glibc updates.  

The hardware is a K6II-233 IDE drive system with a 3Com 3c905 and 128MB of RAM.  Its a workhorse machine and just gets it done.  Its been very stable and hasn't burped while I've been playing around with all of this.  I've also got the server running on Port 8000.  That said, I had the same problem with the stock apache and it runs on port 80.

Hope this is helpful.  If you need more details, ask.



 [2001-08-02 22:14 UTC] curtis at maurand dot com
One more thing.  The RedHat php-imap package works.  However, it does not have gd support which is the first thing that I'm after even before I work on the webmail project that needs to get done.
 [2001-08-11 12:13 UTC] sniper@php.net
This is fixed in CVS.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 13:01:30 2024 UTC