Configure PHP 5.2.8 on AIX 5.3 With LDAP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am having problems configuring PHP 5.2.8 with ldap on a AIX 5.3 ldap 
server.  I have also downloaded openldap to try to configure PHP.   LDAP 
is installed in /opt/IBM/ldap/V6.0 and openldap in /opt/freeware. 
PATH=/opt/freeware/bin:/usr/local/apache/build/libtool:/usr/bin:/etc:/usr/sbin:/usr/ucb:/sbin:/usr/java14/jre/bin:/usr/java14/bin 
 
Configure statement is:  ./configure 
--with-apxs2=/usr/local/apache/bin/apxs --without-pear 
--with-ldap=/opt/freeware --disable-xmlwriter  --disable-simplexml 
--disable-libxml --disable-xml --disable-dom --enable-cli 

Configure Error: 
      configure:53825: gcc -o conftest -I/usr/include -g -O2 
-I/opt/freeware/include -L/usr/lib  -L/opt/freeware/lib -L/o
pt/freeware/lib conftest.c -lldap -llber -liconv -lm   1>&5
ld: 0711-736 ERROR: Input file /usr/lib/libldap.a:
        XCOFF64 object files are not allowed in 32-bit mode. 

/usr/lib/libldap.a is a symbolic link to the ldap libraries 
/opt/IBM/ldap/V6.0/lib64/libidsldap.a.   Why is it looking in /usr/lib 
when I specified --with-ldap=/opt/freeware . 

If I change configure to:  ./configure 
--with-apxs2=/usr/local/apache/bin/apxs --without-pear 
--with-ldap=/opt/freeware/lib32 --disable-xmlwriter  --disable-simplexml 
--disable-libxml --disable-xml --disable-dom --enable-cli 

Configure Error:
  configure: error: Cannot find ldap.h

Tried this configure with same error: Cannot find ldap.h 
INCLUDE=/opt/freeware/include ./configure 
--with-apxs2=/usr/local/apache/bin/apxs --without-pear 
--with-ldap=/opt/freeware/lib32 --disable-xmlwriter --disable-xmlreader 
--disable-simplexml --disable-libxml --disable-xml --disable-dom 
--enable-cli


 ldap.h exists in : 

/opt/freeware/include/ldap.h
/opt/freeware/lib64/ldap.h
/opt/freeware/ldap.h
/opt/IBM/ldap/V6.0/include/ldap.h
/opt/IBM/ldap/V6.0/lib64/ldap.h
/usr/include/ldap.h
/usr/ldap/include/ldap.h

Where do I point --with-ldap to?   Thanks so much for your help. 

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux