php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15207 Failure to compile with LDAP support
Submitted: 2002-01-24 12:24 UTC Modified: 2002-07-26 11:15 UTC
From: lhecking at nmrc dot ie Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.1.1 OS: Solaris 7
Private report: No CVE-ID: None
 [2002-01-24 12:24 UTC] lhecking at nmrc dot ie
Both php 4.1.0 and 4.1.1 fail to compile with LDAP support.
The same configuration compiles (and works) just fine when
I configure without "--with-ldap".

$ ./configure --enable-safe-mode --enable-track-vars \
 --enable-memory-limit=yes --enable-sysvsem \
 --enable-sysvshm --enable-versioning --with-apxs2=${apxs}\
 --with-openssl --with-xml --with-zlib \
 --with-config-file-path=${conf} \
 --with-freetype-dir=/usr/local \
 --with-gd=/usr/local/src/gd-1.8.4 
 --with-gettext=/usr/local \
 --with-imap=/usr/local/src/imap-2000c \
 --with-jpeg-dir=/usr/local \
 --with-ldap=/usr/local --with-mysql=/usr/local \
 --with-png-dir=/usr/local --with-xpm-dir=/usr/local
...
$ make
...
make[3]: Entering directory
 /usr/local/src/php-4.1.1/ext/standard'
/bin/sh /usr/local/src/php-4.1.1/libtool --silent --mode=compile /usr/local/src/php-4.1.1/meta_ccld  -I. -I/usr/local/src/php-4.1.1/ext/standard -I/usr/local/src/php-4.1.1/main -I/usr/local/src/php-4.1.1 -I/usr/local/include -I/usr/local/src/php-4.1.1/Zend -I/usr/local/ssl/include -I/usr/local/include -I/usr/local/include/freetype2/freetype -I/usr/local/src/gd-1.8.4/ -I/usr/local/gnu/include 
-I/WWWserv/src/imap-2000c/c-client -I/usr/local/ldap/include -I/usr/local/mysql/include/mysql -I/usr/local/src/php-4.1.1/ext/xml/expat  -I/usr/local/include -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/local/src/php-4.1.1/TSRM -g -O2 -pthreads -DZTS -prefer-pic  -c dl.c
dl.c:212: conflicting types for `php_dl'
dl.h:26: previous declaration of `php_dl'
make[3]: *** [dl.lo] Error 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-13 16:30 UTC] sniper@php.net
Please try this snapshot:

http://snaps.php.net/php4-latest.tar.gz

 [2002-06-14 07:31 UTC] lhecking at nmrc dot ie
Doesn't even configure. With the same options, I get

...
checking for GNU gettext support... yes
checking for bindtextdomain in -lintl... yes
checking for ngettext in -lintl... yes
checking for dngettext in -lintl... yes
checking for dcngettext in -lintl... yes
checking for bind_textdomain_codeset in -lintl... yes
checking for GNU MP support... no
checking for hwapi support... no
checking for Hyperwave support... no
checking for ICAP support... no
checking for iconv support... no
checking for IMAP support... yes
checking for pam_start in -lpam... yes
checking for crypt in -lcrypt... (cached) yes
configure: error: This c-client library is build with SSL support. 
      
      Add --with-imap-ssl<=DIR> to your configure line. Check config.log for details.
$ 

 but I'm almost certain that imap (uw-imap 2000c) is built
 without SSL support: 

$ make -n gso
make build EXTRACFLAGS='' EXTRALDFLAGS='' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' SPECIALAUTHENTICATORS='' PASSWDTYPE=std EXTRASPECIALS='' OS=gso
$

 i.e. SPECIALAUTHENTICATORS is not set to ssl.

The last entry in config.log is:
configure:33376: gcc -o conftest -g -O2 -I/usr/local/include -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=270 -DMOD_SSL=208108 -DEAPI -DEAPI_MM -DUSE_EXPAT -L/usr/local/lib -R/usr/local/lib -R/usr/ucblib -L/usr/ucblib -R/usr/local/lib -L/usr/local/lib -R/usr/local/src/gd-1.8.4/ -L/usr/local/src/gd-1.8.4/ -R/usr/local/gnu/lib
-L/usr/local/gnu/lib -R/usr/local/src/imap-2000c/c-client -L/usr/local/src/imap-2000c/c-client conftest.c -lcrypt -lpam -lintl -lgd -lfreetype -lX11 -lXpm -lpng
 -lz -ljpeg -lz -lcrypt -lssl -lcrypto -lresolv -lresolv -lm -ldl -lsocket  -lsocket -lcrypt -L/usr/local/src/imap-2000c/c-client -lc-client 1>&5
Undefined                       first referenced
 symbol                             in file
gethostbyname                       /usr/local/src/imap-2000c/c-client/libc-client.a(osdep.o)  (symbol belongs to implicit dependency usr/lib/libnsl.so.1)
gethostbyaddr                       /usr/local/src/imap-2000c/c-client/libc-client.a(osdep.o)  (symbol belongs to implicit dependency usr/lib/libnsl.so.1)
inet_addr                           /usr/local/src/imap-2000c/c-client/libc-client.a(osdep.o)  (symbol belongs to implicit dependency usr/lib/libnsl.so.1)
inet_ntoa                           /usr/local/src/imap-2000c/c-client/libc-client.a(osdep.o)  (symbol belongs to implicit dependency usr/lib/libnsl.so.1)
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 33351 "configure"
#include "confdefs.h"

      void mm_log(void){}
      void mm_dlog(void){}
      void mm_flags(void){}
      void mm_fatal(void){}
      void mm_critical(void){}
      void mm_nocritical(void){}
      void mm_notify(void){}
      void mm_login(void){}
      void mm_diskerror(void){}
      void mm_status(void){}
      void mm_lsub(void){}
      void mm_list(void){}
      void mm_exists(void){}
      void mm_searched(void){}
      void mm_expunged(void){}
      char mail_open();
      int main() {
        mail_open(0,"",0);
        return 0;
      }
 [2002-06-15 20:15 UTC] sniper@php.net
This configure fails since it doesn't add -lnsl (libnsl) for
some reason in the configure line.

Can you check the config log for the test of 'gethostname' ?
(if it succeeds, the libnsl will not be included)


 [2002-07-17 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2002-07-26 11:13 UTC] lhecking at nmrc dot ie
It seems that the problem is gone with php 4.2.2.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 27 06:00:03 2025 UTC