[Date Prev][Date Next] [Chronological] [Thread] [Top]

Library issue on AIX 5.2



Title: Library issue on AIX 5.2

Hi

I just compiled OpenLDAP 2.2.17 on AIX 5.2 with ML03. There is no issue to compile it. However, when I execute ldapsearch, I got the following:

root@aixha1:/opt/openldap-2.2.17/bin # ./ldapsearch
exec(): 0509-036 Cannot load program ./ldapsearch because of the following errors:
        0509-150   Dependent module ../../libraries/libldap/.libs/libldap.a(libldap-   2.2.so.7) could not be loaded.
        0509-022 Cannot load module ../../libraries/libldap/.libs/libldap.a(libldap-2.2.so.7).
        0509-026 System error: A file or directory in the path name does not exist.


Those lib files are in /opt/openldap-2.2.17/lib but it is looking at the wrong place.

Could someone tell me how to compile these lib files INTO the binaries so it does not look for them at all?

I have no issue on Linux and Solaris compile, the problem is only on AIX 5.1 and AIX 5.2.

I have tried both GNU ld, ar and gcc. I also have tried the AIX's ld, ar, and gcc. All gave me the same problem.

Also have tried many settings on LDFLAGS and CFLAGS.

Any help is very appreciated.

Thanks

Eric