|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41965 configure fails on AIX with LDAP
Submitted: 2007-07-11 17:07 UTC Modified: 2007-07-11 21:22 UTC
From: tprohaska2 at honeywell dot com Assigned:
Status: Closed Package: LDAP related
PHP Version: 5.2.3 OS: AIX 5.1
Private report: No CVE-ID: None
 [2007-07-11 17:07 UTC] tprohaska2 at honeywell dot com
gcc 4.0 / AIX 5.1 / 
When running configure with the LDAP option it fails on not being able to find ssl3 and sslap50.

I have determined that there is no corresponding libssl3.a and libssldap50.a libraries although I have the completed LDAPCSDK (5.11) loaded. The libraries and files do exist however.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-07-11 18:42 UTC]
Those libraries are enough. What was the configure line you used?
And in what path are those libraries in? And what exact error do you get? Is there anything in config.log about the error?
 [2007-07-11 19:00 UTC] tprohaska2 at honeywell dot com
./configure --with-apxs2=/usr/local/apache2/bin/apxs --prefix=/usr/local/php5 \
--with-config-file-path=/usr/local/apache2/conf --without-mysql --with-pear=/usr
/local/pear \
--enable-so --with-oci8=/8u314oracle/8.1.7 --enable-ftp --with-ldap=/home/exxxxxx/ldapcsdk

configure: error: LDAP build check failed. Please check config.log for more infomation.

FROM config.log:
ld: 0706-006 Cannot find or open library file: -l ssl3
        ld:open(): No such file or directory
ld: 0706-006 Cannot find or open library file: -l ssldap50
        ld:open(): No such file or directory
collect2: ld returned 255 exit status

FILES in /home/exxxxxx/ldapcsdk/lib:
--------------------------------------------------------------------    libiutil50.a      libprldap50.a  liblber50.a    libldap50.a      libplc4.a      libldif50.a      libplds4.a    libnspr4.a


Debug efforts:
I sliced out the offending part of the configure and boiled it down to an error indicating ssl3 and ssldap50 are not found. I noticed that there is no ".a" version of these files. When I intentionally rename one of the other libraries thus eliminating the ".a" file I get an error message for that file as well. In other words, if I remove the libprldap50.a file I get the same not found error even though there is a file. When I restore the libperldap50.a file the error message goes away for that library. Again, there is no libssl3.a file or a libssldap50.a file. So it would appear that I either need the libssl3.a and libssldap50.a files OR I need the configure to use the ".so" files.
 [2007-07-11 20:08 UTC]
What if you rename all those .so to .a? (which is actually the extension used for shared objects on AIX)
 [2007-07-11 21:22 UTC] tprohaska2 at honeywell dot com
OK looks like I'm past this issue now. You can't simply rename ".so" files to ".a". However I have learned that you can create a archive ".a" file from a ".so" file:

ar rcs libssl3.a

Here is the link that provided the info:

This did the trick and I am now moving on to the next challenge.
 [2007-07-11 21:22 UTC] tprohaska2 at honeywell dot com
Closed per previous comment.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 22 00:01:28 2024 UTC