php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12494 ./configure: "-lc-client" not in EXTRA_LIBS
Submitted: 2001-07-31 15:05 UTC Modified: 2001-08-11 12:21 UTC
From: brendanb at missiondata dot net Assigned:
Status: Closed Package: IMAP related
PHP Version: 4.0.6 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: brendanb at missiondata dot net
New email:
PHP Version: OS:

 

 [2001-07-31 15:05 UTC] brendanb at missiondata dot net
For some reason, "-lc-client" disappears from $LIBS before it has a chance to get copied onto $EXTRA_LIBS.  As a result, this produces the famous "undefined symbol: mxdriver" error that you've been having problems with in the past.

Yes, I have the library file.  Yes, I've included the --with-imap switch.  Yes, I've spend close to 5 hours on this problem.  And no, I'm not a dumbass.  Despite popular opinion among the PHP developers, this is --NOT-- a user configuration error!  This --IS-- a bug!  There is a problem somewhere in the ./configure program.

Somewhere between the LIBS statement for c-client (line 22880) and the EXTRA_LIBS = LIBS statement (line 55067), the -lc-client statement disappears or (more possibly) the statement was never there in the first place.  However, all of the Kerberos switchs DO exist, such as "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err".

My guess: Either there is a missing c-client case block near line 22679-22786 and/or c-client is not included if the user does NOT use the --with-imap-ssl switch (which is my case).

Being a GNU developer myself, I can understand the need to dismiss most "bugs" as user error, but I can assure you that this is not the case.

Brendan Byrd

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-31 19:54 UTC] sniper@php.net
Could you please add the configure line you used for PHP?
And version of c-client lib and the make line for it.

--Jani


 [2001-08-03 11:08 UTC] brendanb at missiondata dot net
Well, the php configure is:

./configure --with-apxs --with-openssl --with-zlib \
            --with-bz2 --with-db3 --enable-ftp \
            --with-gettext --with-java --with-ldap \
            --with-imap \
              --with-kerberos \
            --with-mysql

The c-client is "imap-2001.BETA.SNAP-0107221451", with a Last Edited entry on c-client.h as: "24 October 2000" (if that matters...).  The make line, as far I remember, was a simple "make", but I've since deleted that source tree for IMAP.

Worth noting that after I hacked the configure file, PHP compiled and installed just fine.  I have a libphp4.so that is working well.
 [2001-08-03 11:20 UTC] sniper@php.net
Could you please try the latest CVS snapshot from http://snaps.php.net/

There have been some fixes which should have fixed this problem too.

--Jani

 [2001-08-11 12:21 UTC] sniper@php.net
Reopen if latest CVS snapshot doesn't work for you.

--Jani

 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed May 25 23:05:45 2022 UTC