PHP 4.3.1, Solaris 8/Sparc, Sablotron 0.96, OpenLDAP 2.0.6.

I'm trying to add support for LDAP to my PHP installation,
but when I add --with-ldap=/opt/openldap, the version check
for Sablotron fails. Without the LDAP switch, Sablotron
works just fine.

  ./configure  --enable-trans-sid 
               --enable-yp 
               --enable-ftp 
               --enable-calendar 
               --enable-memory-limit 
               -disable-debug 
               --enable-safe-mode 
               --with-mysql 
               --enable-track-vars 
               --enable-magic-quotes 
               --disable-short-tags 
               --prefix=/opt/apache1.3/php 
               --with-config-file-path=/opt/apache1.3/conf 
               --with-apxs=/opt/apache1.3/bin/apxs 
               --enable-xml --with-expat-dir=/usr/local 
               --enable-xslt 
               --with-xslt-sablot=/usr/local 
               --with-ldap=/opt/openldap

  [snip]
  checking for Sablotron version... configure: error:
  Sablotron version 0.96 or greater required.

And from config.log:

  configure:73893: checking for Sablotron version
  configure:73918: gcc -o conftest -g -O2  
    -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=280 
    -DMOD_SSL=208109 -DMOD_PERL -DUSE_PERL_SSI 
    -DEAPI -DUSE_EXPAT -I/usr/local/include  
    -R/usr/ucblib -L/usr/ucblib 
    -R/local/gnu/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.5/2.95.2 
    -L/local/gnu/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.5/2.95.2 
    -R/opt/openldap/lib -L/opt/openldap/lib 
    -R/usr/local/lib -L/usr/local/lib 
    conftest.c -lexpat -lldap -llber -lcrypt -lresolv -lm
    -ldl -lnsl -lsocket  -lgcc -lcrypt 1>&5

  Undefined                       first referenced
   symbol                             in file
  SSL_library_init                    /opt/openldap/lib/libldap.so
  ERR_error_string                    /opt/openldap/lib/libldap.so
  [snip]

I suspect that this happens because /opt/openldap/lib is
included before /usr/local/lib (where Sablotron lives). Is
this correct? And if so, is there any way to accomplish
that?

Thanks for any help.

-- 
Regards,
Stian Grytoyr


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to