php.net |  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tprohaska2 at honeywell dot com
New email:
PHP Version: OS:

 

 [2007-07-11 17:07 UTC] tprohaska2 at honeywell dot com
Description:
------------
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 libssl3.so and libssldap50.so files do exist however.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-07-11 18:42 UTC] sniper@php.net
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:
--------------------------------------------------------------------
./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



LAST LINE FROM CONFIGURE:
--------------------------------------------------------------------
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:
--------------------------------------------------------------------
libicudata.so    libiutil50.a     libnspr4.so      libprldap50.a
libicudata.so.2  liblber50.a      libnss3.so       libprldap50.so
libicui18n.so    libldap50.a      libplc4.a        libsasl.so
libicui18n.so.2  libldap50.so     libplc4.so       libssl3.so
libicuuc.so      libldif50.a      libplds4.a       libssldap50.so
libicuuc.so.2    libnspr4.a       libplds4.so



LIBPATH='/home/exxxxxx/ldapcsdk'


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 libperldap50.so 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] tony2001@php.net
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 libssl3.so

Here is the link that provided the info:

http://tldp.org/HOWTO/Program-Library-HOWTO/static-libraries.html

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: Fri Mar 29 09:01:28 2024 UTC