From:             robbat2 at gentoo dot org
Operating system: Gentoo Linux
PHP version:      4.3.2
PHP Bug Type:     Compile Failure
Bug description:  Massive configure script failures when LDAP is linked against 
kerberos.

Description:
------------
On a system that has OpenLDAP installed, and dynamically linked against
kerberos, the configure script starts massively failing after adding in
-lldap.

When that starts, it gives incorrect errors until it hits some check that
causes the configure script to bail out.

This results in a VERY incorrect error message being given by the
configure script.

This is similar to bug item #4133, but only a workaround was provided for
that bug, and not a proper fix.

I think in this case, putting the kerberos checks together with the ldap
stuff might solve the problem, but I'm not a configure guru.

Expected result:
----------------
Two things:
Firstly, there needs to be some form of checks against the libraries that
are added to the LIBS list so that the system catches ALL of the extra
libraries they are linked against.

Secondly, the configure script SHOULD fail sooner after errors, and give
more intelligable answers.
It should have failed right after the initial error that linking against
LDAP gave.

Actual result:
--------------
You can see the entire config.log file and more details at our bugzilla:
http://bugs.gentoo.org/show_bug.cgi?id=22635

snippet from config.log when it first fails:
---- CUT ----
configure:41615: gcc -o conftest -O2 -mcpu=i686 -pipe  -L/usr/lib 
conftest.c -lldap -llber -lcrypt -lpam -lxsltbreakpoint -lxml2 -lxslt -lz
-lndbm -lgdbm -lcurl -lcrack -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl
-lnsl  -lcurl -lz -lssl -lcrypto -ldl -lz -lxml2 -lz -lm 1>&5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../../i686-pc-linux-gnu/bin/ld:
warning: libkrb4.so.2, needed by /usr/lib/libldap.so, not found (try using
-rpath or -rpath-link)
configure:41587: checking for ldap_start_tls_s
configure:41615: gcc -o conftest -O2 -mcpu=i686 -pipe  -L/usr/lib 
conftest.c -lldap -llber -lcrypt -lpam -lxsltbreakpoint -lxml2 -lxslt -lz
-lndbm -lgdbm -lcurl -lcrack -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl
-lnsl  -lcurl -lz -lssl -lcrypto -ldl -lz -lxml2 -lz -lm 1>&5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../../i686-pc-linux-gnu/bin/ld:
warning: libkrb4.so.2, needed by /usr/lib/libldap.so, not found (try using
-rpath or -rpath-link)
configure:41645: checking whether to enable multibyte string support
---- CUT ----

Here is where it finally fails and gives up:
---- CUT ----
configure:75358: checking for Sablotron version
configure:75383: gcc -o conftest -O2 -mcpu=i686 -pipe  -I/usr/include
-L/usr/lib  conftest.c -lcrypt -lpspell -lpq -lpdf -lz -ltiff -lpng -ljpeg
-lmysqlclient -lmhash -lmcrypt -lltdl -lldap -llber -lcrypt -lpam
-lxsltbreakpoint -lxml2 -lxslt -lz -lndbm -lgdbm -lcurl -lcrack -lbz2 -lz
-lssl -lcrypto -lresolv -lm -ldl -lnsl  -lcurl -lz -lssl -lcrypto -ldl -lz
-lxml2 -lz -lm -lodbc -lnetsnmp -lcrypto -lm -lcrypt 1>&5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../../i686-pc-linux-gnu/bin/ld:
warning: libkrb4.so.2, needed by /usr/lib/libldap.so, not found (try using
-rpath or -rpath-link)
configure: failed program was:
#line 75365 "configure"
#include "confdefs.h"

#include <stdlib.h>
#include <sablot.h>

int main ()
{
double version;
version = atof(SAB_VERSION);

if (version >= 0.96) {
exit(0);
}
exit(255);
}
---- CUT ----

The error that the above failure throws. Totally incorrect about the
problem of course.
---- CUT ----
checking for Sablotron version... configure: error: Sablotron version 0.96
or
greater required.
---- CUT ----

-- 
Edit bug report at http://bugs.php.net/?id=24141&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24141&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24141&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24141&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24141&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24141&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24141&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24141&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24141&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24141&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24141&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24141&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24141&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24141&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24141&r=gnused

Reply via email to