AIX 6.1 install trouble.
pakraticus at gmail.com
Thu Sep 30 22:56:21 CEST 2010
I'm now going to assume that you don't actually know anything about linkers
or shared libraries, nor about reading error messages to gain more detail
The -Wl,-bnoquiet came from actually reading your error output and seeing
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
collect2: ld returned 8 exit status
Since you rolled your own libldap_r, I have zero idea which libraries it was
Look through that gcc output and look for your ldap library.
You'll see a line like
(ld): lib /usr/local/lib/libldap_r.a
Now see what is in that .a file
ar t that_dot_a_file
Now extract the shared object from that .a file
ar x that_dot_a_file that_object_file
Now see what libraries that shared object was linked against.
And you're going to see something vaguely like
Of interest, libcrypto.a. You don't have 'crypto' in your libs stanza in
setup.cfg (It's in the default one), so it would fail with the libldap_r.a
that I have on my system.
If you built cyrus-sasl and put it into /usr/local/lib, it'll later complain
due to a lack of sasl2 in the libs as well.
On Thu, Sep 30, 2010 at 3:38 PM, Tom Baxter <tkb608 at gmail.com> wrote:
> Thank you both for the quick reply. I changed my setup.cfg to
> include openssl see below. I also verified that the IBM openssl
> package was installed. Attached is the output from the single gcc
> lslpp -L | grep ssl
> openssl.base 0.9.8.1100 C F Open Secure Socket Layer
> openssl.man.en_US 0.9.8.1100 C F Open Secure Socket Layer
> extra_objects =
> extra_compile_args =
> libs = ldap_r lber ssl
> library_dirs = /usr/local/lib /usr/lib
> include_dirs = /usr/local/include /usr/include/openssl
> tag_build =
> tag_date = 0
> tag_svn_revision = 0
> compile = 1
> optimize = 1
> doc_files = CHANGES README INSTALL TODO Demo/
> provides = python-ldap
> release = 0
> packager = Michael Stroeder <michael at stroeder.com>
> requires = python libldap.so.2
> On Thu, Sep 30, 2010 at 2:23 PM, Chris Dukes <pakraticus at gmail.com> wrote:
> > Manually rerun that last 'gcc' with a -Wl,-bnoquiet added to see the
> > of the objects depending on SSL symbols.
> > I suspect that your ldap library is linked against OpenSSL. I recommend
> > installing either IBM's LPP of OpenSSL, or the RPM from www.perzl.org
> > Here is the spec file I used to build python-ldap 2.3.10 back in March on
> > AIX 5.3.
> > http://zeniv.linux.org.uk/~pakrat/python-ldap-2.3.10-1.fc13aix53.spec<http://zeniv.linux.org.uk/%7Epakrat/python-ldap-2.3.10-1.fc13aix53.spec>
> > This was added to the contents of the source RPM for python-ldap taken
> > Fedora 13.
> > This was done with Visual Age 'C' and 'C++' 10.1.0.0
> > I provided build requirements, including python, from
> > http://www.perzl.org/aix/
> > Unfortunately, I did not build the OpenLDAP RPM I used and cannot provide
> > you the binary RPM.
> > You can try using the openldap spec file from
> > ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/SPECS/
> > in combination with the source and patches from current Fedora as a
> > point for building OpenLDAP.
> > On Thu, Sep 30, 2010 at 1:19 PM, Tom Baxter <tkb608 at gmail.com> wrote:
> >> Hello, I am having trouble install python-ldap on an AIX 6.1 host. I
> >> have compiled the openldap libraries and am trying to install without
> >> extras like SSL/crypt. Below is my setup.cfg, attached is the out put
> >> "python setup.py build".
> >> Any guidance would be greatly appreciated.
> >> Thanks, Tom Baxter
> >> ---------------
> >> [_ldap]
> >> extra_objects =
> >> extra_compile_args =
> >> libs = ldap_r lber
> >> library_dirs = /usr/local/lib
> >> include_dirs = /usr/local/include
> >> [egg_info]
> >> tag_build =
> >> tag_date = 0
> >> tag_svn_revision = 0
> >> [install]
> >> compile = 1
> >> optimize = 1
> >> [bdist_rpm]
> >> doc_files = CHANGES README INSTALL TODO Demo/
> >> provides = python-ldap
> >> release = 0
> >> packager = Michael Stroeder <michael at stroeder.com>
> >> requires = python libldap.so.2
> >> Start uncovering the many advantages of virtual appliances
> >> and start using them to simplify application deployment and
> >> accelerate your shift to cloud computing.
> >> http://p.sf.net/sfu/novell-sfdev2dev
> >> _______________________________________________
> >> Python-LDAP-dev mailing list
> >> Python-LDAP-dev at lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the python-ldap