Bug #1145: Ypu cannot compile with --with-ldap using the Solaris7 bundled ldap-libs/header

From: Date: Sat, 13 Feb 1999 23:06:50 +0000
Subject: Bug #1145: Ypu cannot compile with --with-ldap using the Solaris7 bundled ldap-libs/header
Groups: php.dev 
Request: Send a blank email to php-dev+get-4078@lists.php.net to get a copy of this message
From: rk@netuse.de Operating system: Solaris 7 (sparc) PHP version: 3.0.6 PHP Bug Type: Compile Failure Bug description: Ypu cannot compile with --with-ldap using the Solaris7 bundled ldap-libs/header Solaris 7 (SunOS 5.7) comes with ldap-libs (libldap.so) and the needed headers (ldap.h, lber.h) in /usr/lib and /usr/include. So using --with-ldap should work fine. BUT: $ gcc --version egcs-2.91.57 $ make gcc -g -O2 -O2 -I. -I. -I/opt/mysql/include/mysql -I/usr/local/ldap/include -I/home/rk/sendmail/imap-4.5.BETA/c-client/include/ -c functions/ldap.c -o functions/ldap.o functions/ldap.c: In function `php3_ldap_bind': functions/ldap.c:534: dereferencing pointer to incomplete type functions/ldap.c: In function `php3_ldap_do_search': functions/ldap.c:650: dereferencing pointer to incomplete type functions/ldap.c: In function `php3_ldap_get_values': functions/ldap.c:1027: dereferencing pointer to incomplete type *** Error code 1 make: Fatal error: Command failed for target `functions/ldap.o' I also do not have a /usr/local/ldap/include ! Somehow the error looks like the one you get, if you try to compile sendmail-8.9.1 with MAPLDAP support. In sendmail 8.9.2 things in the maps.c (sendmail tree) have changed, so that this works now. As far as I understand that has to do with the right settings of sone #define values. You may diff those two trees ? -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4078) next »