[PHP-DEV] Bug #12494 Updated: ./configure: "-lc-client" not in EXTRA_LIBS From: brendanb <email protected>
Date: 08/03/01

ID: 12494
User updated by: brendanb <email protected>
Reported By: brendanb <email protected>
Old Status: Feedback
Status: Open
Bug Type: IMAP related
Operating System: Linux
PHP Version: 4.0.6
New Comment:

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.

Previous Comments:
------------------------------------------------------------------------

[2001-07-31 19:54:12] sniper <email protected>

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-07-31 15:05:59] brendanb <email protected>

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

------------------------------------------------------------------------

Edit this bug report at http://bugs.php.net/?id=12494&edit=1

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>