PHP 4.0 Bug #2622: ldap (openldap)

From: Date: Wed, 27 Oct 1999 16:44:50 +0000
Subject: PHP 4.0 Bug #2622: ldap (openldap)
Groups: php.dev 
Request: Send a blank email to php-dev+get-11952@lists.php.net to get a copy of this message
From: jchiantera@venesign.com Operating system: FreeBSD 3.1 PHP version: 4.0 Beta 2 PHP Bug Type: Compile Failure Bug description: ldap (openldap) /usr/prod/php-4.0b2 # make Making all in libzend Making all in ext Making all in apache Making all in db Making all in ldap gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libzend -I../../TSRM -I/usr/prod /apa che_1.3.9/src/include -I/usr/prod/apache_1.3.9/src/os/unix -I/usr/local/inc lude -I/usr/local/pgsql/include -I../.. -I../../libzend -g -O2 -g -O2 -c ldap.c ldap.c:70: `php3_ldap_close' undeclared here (not in a function) ldap.c:70: initializer element for `ldap_functions[1].handler' is not constant *** Error code 1 Stop. *** Error code 1 Stop. *** Error code 1 Stop. ----------------------------------------------------------------- add this line to ext/ldap/php3_ldap.h after line 55 PHP_FUNCTION(ldap_close); to correct the error ============================================================== if you are using ldap (openldap) kerberos and des need include -lkrb -ldes to LIBS in configure script S.O. ---- FreeBSD www.venesign.com 3.1-RELEASE FreeBSD 3.1-RELEASE #2: Sun May 23 12:34:18 VET 1999 root@central.venesign.com:/usr/src/sys/compile/VSCA i386 openldap1.2.7 postgresql 6.5.2 Configuration ------------- ./configure --with-ldap --with-pgsql make ---- Making all in libzend Making all in ext Making all in db Making all in ldap Making all in pcre Making all in pcrelib Making all in pgsql Making all in session Making all in standard gcc -g -O2 -g -O2 -I. -I. -I./libzend -I./TSRM -I./libzend -I./TSRM -I/u sr/local/include -I/usr/local/pgsql/include -g -o php -R/usr/local/lib -R/usr/local/pgsql/lib -rdynamic -L./libzend main.o internal_functions.o snprintf.o php3_sprintf.o configuration-parser.o configuration-scanner.o request_info.o safe_mode.o fopen-wrappers.o php3_realpath.o alloca.o output.o php_ini.o SAPI.o cgi_main.o rfc1867.o dlist.o -Llibzend -lzend -Lext -lphpext -L/usr/prod/php-4.0b2/ext/pcre/pcrel ib -lpcre -L/usr/prod/php-4.0b2/regex -lregex -lldap -llber -L/usr/local/li b -L/usr/local/pgsql/lib -lpq -lpam -lm -lcrypt -lkrb -ldes *** Error code 1 Stop. ext/libphpext.a(ldap_ldap.o): In function `_close_ldap_link': /usr/prod/php-4.0b2/ext/ldap/ldap.c(.text+0x8): undefined reference to `php3_ldap_close' /usr/prod/php-4.0b2/ext/ldap/ldap.c(.text+0xd): undefined reference to `PHP3_TLS_THREAD_FREE' /usr/prod/php-4.0b2/ext/ldap/ldap.c(.data+0x10): undefined reference to `php3_ldap_close' Ing. Jose Chiantera jchiantera@venesign.com http://www.venesign.com/~josech

« previous php.dev (#11952) next »