php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7416 unable to compile php 4.0.3pl1 with ldap
Submitted: 2000-10-23 17:16 UTC Modified: 2000-10-28 15:36 UTC
From: srosenb1 at perspicacity dot org Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.3pl1 OS: solaris 2.6
Private report: No CVE-ID: None
 [2000-10-23 17:16 UTC] srosenb1 at perspicacity dot org
I am unable to compile php 4.0.3pl1 for apache 1.3.14 using with the following options:

./configure
        --with-mysql=/zd/mysql
        --with-config-file-path=/zd/apache/cgi/conf
        --enable-track-vars
        --with-apache=/websys/home/srosenb1/newcgi/apache_1.3.14
        --with-ldap=/websys/home/srosenb1/newcgi/ldapsdk
        --enable-libgcc
        --with-xml

Without the "--with-ldap=...", it compiles just fine, but when I include it, I get the below errors.  The ldap sdk in question is Netscape Directory SDK 3.0.

gcc  -I. -I/websys/home/srosenb1/newcgi/php-4.0.3pl1/ext/ldap -I/websys/home/srosenb1/newcgi/php-4.0.3pl1 -I/websys/home/srosenb1/newcgi/php-4.0.3pl1/main -I/websys/home/srosenb1/newcgi/apache_1.3.14/src/include -I/websys/home/srosenb1/newcgi/apache_1.3.14/src/os/unix -I/websys/home/srosenb1/newcgi/php-4.0.3pl1/Zend -I/websys/home/srosenb1/newcgi/php-4.0.3pl1 -I/websys/home/srosenb1/newcgi/ldapsdk/include -I/zd/mysql/include/mysql -I/websys/home/srosenb1/newcgi/php-4.0.3pl1/ext/xml/expat/xmltok -I/websys/home/srosenb1/newcgi/php-4.0.3pl1/ext/xml/expat/xmlparse -I/websys/home/srosenb1/newcgi/php-4.0.3pl1/TSRM  -D_POSIX_PTHREAD_SEMANTICS -DXML_BYTE_ORDER=21 -g -O2  -c ldap.c && touch ldap.lo
ldap.c: In function `php_ldap_do_search':
ldap.c:618: dereferencing pointer to incomplete type
ldap.c:627: dereferencing pointer to incomplete type
ldap.c:636: dereferencing pointer to incomplete type
*** Error code 1
make: Fatal error: Command failed for target `ldap.lo'
Current working directory /websys/home/srosenb1/newcgi/php-4.0.3pl1/ext/ldap
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /websys/home/srosenb1/newcgi/php-4.0.3pl1/ext/ldap
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /websys/home/srosenb1/newcgi/php-4.0.3pl1/ext
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-28 15:36 UTC] sniper@php.net
This is fixed in CVS now. Thank you for reporting it.

--Jani
 [2003-12-01 16:46 UTC] davej at skechers dot com
I am getting the same broblem using php 4.3.0 

./configure  
--with-apxs=/usr/local/apache/bin/apxs  
--with-config-file-path=/usr/local/apache/conf  
--enable-versioning  
--with-mysql=/usr/local  
--enable-ftp  
--with-gd=/usr/local/gd-2.0.11  
--enable-bcmath  
--disable-debug  
--enable-memory-limit=yes  
--enable-track-vars 
--with-ldap=/usr/

/usr/bin/ld:ext/ldap/ldap.lo: file format not recognized; treating as linker script
/usr/bin/ld:ext/ldap/ldap.lo:2: parse error
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 18:01:31 2024 UTC