[prev in list] [next in list] [prev in thread] [next in thread]
List: python-ldap-dev
Subject: Re: AIX 6.1 install trouble.
From: Chris Dukes <pakraticus () gmail ! com>
Date: 2010-09-30 20:56:21
Message-ID: AANLkTimcYFPejbt2jR=NVKHZpcPhd-0FGOpt8G0eRv6O () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Tom,
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
debugging.
The -Wl,-bnoquiet came from actually reading your error output and seeing
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status
Since you rolled your own libldap_r, I have zero idea which libraries it was
linked against.
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.
ldd that_object_file
And you're going to see something vaguely like
/usr/lib/libs.a(shr.o)
/usr/lib/libpthread.a(shr_xpg5.o)
/opt/freeware/lib/liblber.a(liblber-2.4.so.2)
/opt/freeware/lib/libssl.a(libssl.so.0.9.8)
/opt/freeware/lib/libcrypto.a(libcrypto.so.0.9.8)
/unix
/usr/lib/libcrypt.a(shr.o)
/usr/lib/libc.a(shr.o)
/usr/lib/libpthreads.a(shr_comm.o)
/usr/lib/libc.a(shr_64.o)
/usr/lib/libpthreads.a(shr_xpg5_64.o)
/usr/lib/libcrypt.a(shr_64.o)
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@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
> call.
>
> 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
>
> --------------------------------
>
> [_ldap]
> 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
>
> [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@stroeder.com>
> requires = python libldap.so.2
>
> ---------------------------
>
> On Thu, Sep 30, 2010 at 2:23 PM, Chris Dukes <pakraticus@gmail.com> wrote:
> > Manually rerun that last 'gcc' with a -Wl,-bnoquiet added to see the
> source
> > 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
> from
> > 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
> starting
> > point for building OpenLDAP.
> >
> >
> > On Thu, Sep 30, 2010 at 1:19 PM, Tom Baxter <tkb608@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
> any
> > > extras like SSL/crypt. Below is my setup.cfg, attached is the out put
> from
> > > "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@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@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
> > >
> >
> >
>
[Attachment #5 (text/html)]
Tom, <br><br>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 debugging.<br><br>The -Wl,-bnoquiet came from actually reading your error \
output and seeing<br>
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more \
information.<br>collect2: ld returned 8 exit status<br><br>Since you rolled your own \
libldap_r, I have zero idea which libraries it was linked against.<br> <br>Look \
through that gcc output and look for your ldap library.<br>You'll see a line \
like<br>(ld): lib /usr/local/lib/libldap_r.a<br><br>Now see what is in that .a \
file<br>ar t that_dot_a_file<br><br>Now extract the shared object from that .a \
file<br> ar x that_dot_a_file that_object_file<br><br>Now see what libraries that \
shared object was linked against.<br>ldd that_object_file<br><br>And you're going \
to see something vaguely like<br> /usr/lib/libs.a(shr.o)<br> \
/usr/lib/libpthread.a(shr_xpg5.o)<br> \
/opt/freeware/lib/liblber.a(liblber-2.4.so.2)<br> \
/opt/freeware/lib/libssl.a(libssl.so.0.9.8)<br> \
/opt/freeware/lib/libcrypto.a(libcrypto.so.0.9.8)<br> /unix<br> \
/usr/lib/libcrypt.a(shr.o)<br> /usr/lib/libc.a(shr.o)<br> \
/usr/lib/libpthreads.a(shr_comm.o)<br> /usr/lib/libc.a(shr_64.o)<br> \
/usr/lib/libpthreads.a(shr_xpg5_64.o)<br> /usr/lib/libcrypt.a(shr_64.o)<br><br>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.<br> <br>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.<br><br><br><div \
class="gmail_quote">On Thu, Sep 30, 2010 at 3:38 PM, Tom Baxter <span \
dir="ltr"><<a href="mailto:tkb608@gmail.com">tkb608@gmail.com</a>></span> \
wrote:<br> <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; \
border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> Thank you both for \
the quick reply. I changed my setup.cfg to<br> include openssl see below. I also \
verified that the IBM openssl<br> package was installed. Attached is the output from \
the single gcc<br> call.<br>
<br>
lslpp -L | grep ssl<br>
openssl.base 0.9.8.1100 C F Open Secure Socket Layer<br>
openssl.man.en_US 0.9.8.1100 C F Open Secure Socket Layer<br>
<br>
--------------------------------<br>
<div class="im"><br>
[_ldap]<br>
extra_objects =<br>
extra_compile_args =<br>
</div>libs = ldap_r lber ssl<br>
library_dirs = /usr/local/lib /usr/lib<br>
include_dirs = /usr/local/include /usr/include/openssl<br>
<div class="im"><br>
[egg_info]<br>
tag_build =<br>
tag_date = 0<br>
tag_svn_revision = 0<br>
<br>
[install]<br>
compile = 1<br>
optimize = 1<br>
<br>
[bdist_rpm]<br>
doc_files = CHANGES README INSTALL TODO Demo/<br>
provides = python-ldap<br>
release = 0<br>
packager = Michael Stroeder <<a \
href="mailto:michael@stroeder.com">michael@stroeder.com</a>><br> requires = python \
libldap.so.2<br> <br>
---------------------------<br>
<br>
</div><div><div></div><div class="h5">On Thu, Sep 30, 2010 at 2:23 PM, Chris Dukes \
<<a href="mailto:pakraticus@gmail.com">pakraticus@gmail.com</a>> wrote:<br> \
> Manually rerun that last 'gcc' with a -Wl,-bnoquiet added to see the \
source<br> > of the objects depending on SSL symbols.<br>
> I suspect that your ldap library is linked against OpenSSL. I recommend<br>
> installing either IBM's LPP of OpenSSL, or the RPM from <a \
href="http://www.perzl.org" target="_blank">www.perzl.org</a><br> ><br>
> Here is the spec file I used to build python-ldap 2.3.10 back in March on<br>
> AIX 5.3.<br>
> <a href="http://zeniv.linux.org.uk/%7Epakrat/python-ldap-2.3.10-1.fc13aix53.spec" \
target="_blank">http://zeniv.linux.org.uk/~pakrat/python-ldap-2.3.10-1.fc13aix53.spec</a><br>
> This was added to the contents of the source RPM for python-ldap taken from<br>
> Fedora 13.<br>
> This was done with Visual Age 'C' and 'C++' 10.1.0.0<br>
> I provided build requirements, including python, from<br>
> <a href="http://www.perzl.org/aix/" \
target="_blank">http://www.perzl.org/aix/</a><br> > Unfortunately, I did not build \
the OpenLDAP RPM I used and cannot provide<br> > you the binary RPM.<br>
> You can try using the openldap spec file from<br>
> <a href="ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/SPECS/" \
target="_blank">ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/SPECS/</a><br> \
> in combination with the source and patches from current Fedora as a starting<br> \
> point for building OpenLDAP.<br> ><br>
><br>
> On Thu, Sep 30, 2010 at 1:19 PM, Tom Baxter <<a \
href="mailto:tkb608@gmail.com">tkb608@gmail.com</a>> wrote:<br> >><br>
>> Hello, I am having trouble install python-ldap on an AIX 6.1 host. I<br>
>> have compiled the openldap libraries and am trying to install without \
any<br> >> extras like SSL/crypt. Below is my setup.cfg, attached is the out \
put from<br> >> "python setup.py build".<br>
>> Any guidance would be greatly appreciated.<br>
>><br>
>> Thanks, Tom Baxter<br>
>><br>
>> ---------------<br>
>> [_ldap]<br>
>> extra_objects =<br>
>> extra_compile_args =<br>
>> libs = ldap_r lber<br>
>> library_dirs = /usr/local/lib<br>
>> include_dirs = /usr/local/include<br>
>><br>
>> [egg_info]<br>
>> tag_build =<br>
>> tag_date = 0<br>
>> tag_svn_revision = 0<br>
>><br>
>> [install]<br>
>> compile = 1<br>
>> optimize = 1<br>
>><br>
>> [bdist_rpm]<br>
>> doc_files = CHANGES README INSTALL TODO Demo/<br>
>> provides = python-ldap<br>
>> release = 0<br>
>> packager = Michael Stroeder <<a \
href="mailto:michael@stroeder.com">michael@stroeder.com</a>><br> >> requires \
= python libldap.so.2<br> >><br>
>><br>
>><br>
>> ------------------------------------------------------------------------------<br>
>> Start uncovering the many advantages of virtual appliances<br>
>> and start using them to simplify application deployment and<br>
>> accelerate your shift to cloud computing.<br>
>> <a href="http://p.sf.net/sfu/novell-sfdev2dev" \
target="_blank">http://p.sf.net/sfu/novell-sfdev2dev</a><br> >> \
_______________________________________________<br> >> Python-LDAP-dev mailing \
list<br> >> <a \
href="mailto:Python-LDAP-dev@lists.sourceforge.net">Python-LDAP-dev@lists.sourceforge.net</a><br>
>> <a href="https://lists.sourceforge.net/lists/listinfo/python-ldap-dev" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/python-ldap-dev</a><br> \
>><br> ><br>
><br>
</div></div></blockquote></div><br>
------------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic