php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22421 Problems compiling PHP with LDAP
Submitted: 2003-02-25 15:58 UTC Modified: 2003-02-26 08:32 UTC
Votes:5
Avg. Score:4.4 ± 0.8
Reproduced:4 of 4 (100.0%)
Same Version:2 (50.0%)
Same OS:1 (25.0%)
From: gustavo at radiumsystems dot com dot br Assigned:
Status: Not a bug Package: LDAP related
PHP Version: 4.2.3 OS: Linux Conectiva 8.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: gustavo at radiumsystems dot com dot br
New email:
PHP Version: OS:

 

 [2003-02-25 15:58 UTC] gustavo at radiumsystems dot com dot br
I've compiled PHP like this:

#! /bin/sh
#
# Created by configure

'./configure' \
'--enable-track-vars' \
'--with-mhash=../mhash-0.8.17' \
'--with-mcrypt' \
'--enable-dbase' \
'--with-gdbm' \
'--enable-dba=shared' \
'--enable-sockets' \
'--with-dba' \
'--with-pgsql' \
'--with-apxs=/opt/apache/bin/apxs' \
'--with-png-dir' \
'--with-jpeg-dir' \
'--with-imap=../imap-2002b' \
'--with-java=/usr/local/jdk' \
'--with-ldap=../openldap-2.0.25' \
"$@"

All occurs right when I type make and make install commands.

But when I tried to start apache, this message appers:

[root@incor php-4.2.3]# /opt/apache/bin/apachectl start
Syntax error on line 205 of /opt/apache/conf/httpd.conf:
Cannot load /opt/apache/libexec/libphp4.so into server: /opt/apache/libexec/libphp4.so: undefined symbol: ldap_value_free
/opt/apache/bin/apachectl start: httpd could not be started

I've checked the libphp4.so and it returns:
[root@incor php-4.2.3]# ldd /opt/apache/libexec/libphp4.so
        libdl.so.2 => /lib/libdl.so.2 (0x40167000)
        libimap.so.4 => /usr/lib/libimap.so.4 (0x4016b000)
        libpq.so.2 => /usr/lib/libpq.so.2 (0x40228000)
        libmhash.so.2 => /usr/lib/libmhash.so.2 (0x40239000)
        libmcrypt.so.4 => /usr/lib/libmcrypt.so.4 (0x4025c000)
        libltdl.so.0 => /usr/lib/libltdl.so.0 (0x40262000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x40266000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x40294000)
        libm.so.6 => /lib/libm.so.6 (0x402a7000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x402ca000)
        libc.so.6 => /lib/libc.so.6 (0x402e1000)
        libpam.so.0 => /lib/libpam.so.0 (0x40408000)
        libgssapi_krb5.so.2 => /usr/lib/krb5/libgssapi_krb5.so.2 (0x40410000)
        libkrb5.so.3 => /usr/lib/krb5/libkrb5.so.3 (0x40426000)
        libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x40492000)
        libcom_err.so.3 => /usr/lib/krb5/libcom_err.so.3 (0x4054b000)
        libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x4054e000)
        libltdl.so.3 => /usr/lib/libltdl.so.3 (0x4057c000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
        libk5crypto.so.3 => /usr/lib/krb5/libk5crypto.so.3 (0x40583000)

As you can see the result, it doesn't returned anythig about Ldap libraries, so it probably explains Apache error when I try to start it.

Does anyone know something about this problem?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-26 01:01 UTC] sniper@php.net
You're supposed to search the bug-db BEFORE you submit new reports:

http://www.phpbuilder.com/mail/php-install/2001032/0047.php

 [2003-02-26 01:02 UTC] sniper@php.net
(and you're supposed to pass the --with-ldap the INSTALL prefix of the ldap libs..)

 [2003-02-26 08:05 UTC] gustavo at radiumsystems dot com dot br
The main problem is to know wich file I have to put the directory way in ld.so.conf.

The libraries libldap.so and libldap_r.so have their directory ways listed in ld.so.conf. I run ldconfig command too.

Sorry about it but I didn?t understand your last comment. Can you explain me with more details.
 [2003-02-26 08:32 UTC] sniper@php.net
First of all, this is not any bug. Second, you should use PHP 4.3.1, third, read  the configure --help sometimes.

And last but not least, ask support questions elsewhere.
Thank you.

Hint: I use --with-ldap=/www/openldap
Where /www/openldap is the --prefix path I used when I configured openldap.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 04:01:28 2024 UTC