php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9396 unable to compile php 4.0.4pl1 with ldap (IBM LDAP SDK 3.1)
Submitted: 2001-02-22 04:40 UTC Modified: 2001-06-04 00:12 UTC
From: olivier dot lhomme at beaufour-ipsen dot com Assigned:
Status: Closed Package: LDAP related
PHP Version: 4.0.4pl1 OS: Solaris 2.6
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: olivier dot lhomme at beaufour-ipsen dot com
New email:
PHP Version: OS:

 

 [2001-02-22 04:40 UTC] olivier dot lhomme at beaufour-ipsen dot com
I am unable to compile php 4.0.4pl1 for apache 1.3.12 (IBM HTTP Server in fact !) with the following options:

./configure
 --without-mysql
--with-apxs=/opt/IBMHTTPD/bin/apxs
--with-ldap=/opt/IBMldapc

The ldap sdk is IBM directory SDK v3.1.1.5.
I tried also with php403pl1 + SDK LDAP IBM and I have got the same error.

I tried for a test with Netscape LDAP SDK 4.1 and it works ! (with php403pl1 and php404pl1)


Here is the error :
........
/bin/sh /usr/local/php/php-4.0.4pl1/libtool --silent --mode=compile gcc  -I. -I/
usr/local/php/php-4.0.4pl1/ext/ldap -I/usr/local/php/php-4.0.4pl1/main -I/usr/lo
cal/php/php-4.0.4pl1 -I/opt/IBMHTTPD/include -I/usr/local/php/php-4.0.4pl1/Zend
-I/opt/IBMldapc/include -I/usr/local/php/php-4.0.4pl1/ext/xml/expat/xmltok -I/us
r/local/php/php-4.0.4pl1/ext/xml/expat/xmlparse -I/usr/local/php/php-4.0.4pl1/TS
RM  -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=260 -DUSE_EXPAT -DXML_BYTE_ORDER=21 -g
 -O2  -c ldap.c
ldap.c: In function `_get_lderrno':
ldap.c:477: dereferencing pointer to incomplete type
ldap.c: In function `php_ldap_do_search':
ldap.c:657: dereferencing pointer to incomplete type
ldap.c:666: dereferencing pointer to incomplete type
ldap.c:675: dereferencing pointer to incomplete type
*** Error code 1
make: Fatal error: Command failed for target `ldap.lo'
Current working directory /usr/local/php/php-4.0.4pl1/ext/ldap
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/local/php/php-4.0.4pl1/ext/ldap
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/local/php/php-4.0.4pl1/ext
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'

Is the pb due to IBM LDAP SDK or PHP ?

Olivier.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-04 00:12 UTC] sniper@php.net
The IBM ldap clientlibs are not supported and most likely
won't be supported as there are already so many libs
that you can use. Adding yet another one will only
make the code unreadable and more prone to bugs.

--Jani

 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Oct 07 21:03:44 2022 UTC