#24141 [Fbk->Opn]: Massive configure script failures when LDAP is linked against kerberos.
ID: 24141
User updated by: robbat2 at gentoo dot org
Reported By: robbat2 at gentoo dot org
-Status: Feedback
+Status: Open
Bug Type: Compile Failure
Operating System: Gentoo Linux
PHP Version: 4.3.2
New Comment:
Hi Derick, a response.
As for the part of not finding the libkrb4.so.2, it turned out that the
user unmerged it without heed to that was linked against it.
However I still that that the configure script should have failed MUCH
earlier to make this failure easier to catch and not result in totally
erroroneus error messages.
Previous Comments:
------------------------------------------------------------------------
[2003-06-12 03:01:25] derick@php.net
Where is "libkrb4.so.2" on your system, and is it in the paths
described in /etc/ld.so.conf ? And did you run ldconfig after
installing that ldap?
------------------------------------------------------------------------
[2003-06-12 01:49:07] robbat2 at gentoo dot org
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 this bug report at http://bugs.php.net/?id=24141&edit=1
Thread (4 messages)