php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43427 PHP 5.2.3 don't compile with --with-ldap option
Submitted: 2007-11-27 15:05 UTC Modified: 2007-11-29 12:48 UTC
From: srfrogster at gmail dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.2.5 OS: Solaris 10
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: srfrogster at gmail dot com
New email:
PHP Version: OS:

 

 [2007-11-27 15:05 UTC] srfrogster at gmail dot com
Description:
------------
Hello phpeople,

I'm having problems while compiling PHP-5.2.3 with ldap support. Here is my configure line:
./configure --prefix=/usr/local/php-5.2.3 --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-apxs2=/usr/local/apache2/bin/apxs --with-ldap=/usr --with-openssl=/usr/local/ssl --with-curl=/usr/local --with-gd=/usr/local --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-xpm-dir=/usr/local --with-freetype-dir=/usr/local --with-ldap-sasl=/usr/local

And it stops when:
checking for LDAP support... yes
checking for LDAP Cyrus SASL support... /usr/local
checking for 3 arg ldap_set_rebind_proc... yes
checking for ldap_parse_result... no
checking for ldap_parse_reference... no
checking for ldap_start_tls_s... no
checking for sasl_version in -lldap... no
configure: error: LDAP SASL check failed. Please check config.log for more information.

Also, I have trying to compile php-5.2.5 with the same configure line, and it fails in the same step, showing the same output message.

Checking the "config.log" file, it shows many undefined symbols, almost all of them, first referenced in libnspr4.so.

And just above this list of undefined symbols, it shows:

ld: warning: file /export/home/SOFTWARE/LDAP_SDK/lib//libnspr4.so: section .stabstr: malformed string
 table, initial or final byte
ld: warning: global symbol `_GLOBAL_OFFSET_TABLE_' has non-global binding:
        (file /export/home/SOFTWARE/LDAP_SDK/lib//libnss3.so value=LOCL);
ld: warning: file /export/home/SOFTWARE/LDAP_SDK/lib//libssl3.so: section .stabstr: malformed string 
table, initial or final byte
ld: warning: global symbol `_GLOBAL_OFFSET_TABLE_' has non-global binding:
        (file /export/home/SOFTWARE/LDAP_SDK/lib//libssl3.so value=LOCL);
ld: warning: file libdl.so.2: required by /export/home/SOFTWARE/LDAP_SDK/lib//libnspr4.so, not found
ld: warning: file libpthread.so.0: required by /export/home/SOFTWARE/LDAP_SDK/lib//libnspr4.so, not f
ound
ld: warning: file libc.so.6: required by /export/home/SOFTWARE/LDAP_SDK/lib//libnspr4.so, not found

I have been trying to get these libraries from outside in order to compile again php, but I haven't found them available for Solaris 10.

Can you help me with this?
Thanks in advance


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-28 12:48 UTC] jani@php.net
You're trying to enable SASL support but using Solaris LDAP SDK? That doesn't work, this works only with OpenLDAP so get that and try again.
(IIRC, you need to compile openldap with sasl support too..)

 [2007-11-28 16:05 UTC] srfrogster at gmail dot com
I have trying to remove the "--with-ldap-sasl" option, but it still crashes and shows the same message. However, when I remove "--with-ldap" option, it compiles and builds correctly.

I figure out it may be an issue belonging to ldap installation or something related (I use iplanet-ldap-sdk), because when I try to start the apache server with ldap compatibility, it fails and shows a message which tells that it can't find neither libc.so.6, libpthread.so.0 nor libdl.so.2. 

Anyway, I'm not sure at all about this, so is it possible to keep opened till I check deeply my theory?

Thanks
 [2007-11-29 00:59 UTC] jani@php.net
Did you try without loading PHP? Or was that Apache+ldap thing without it?
 [2007-11-29 12:48 UTC] srfrogster at gmail dot com
I try php without ldap and it worked well.

The issue was an ldap installation problem, but now it's solved, and php compiles and builds ok.

Thanks anyway.
I close the bug
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jan 11 13:01:30 2025 UTC