[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&#39;m now going to assume that you don&#39;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&#39;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&#39;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&#39;t have &#39;crypto&#39; in your libs stanza in \
setup.cfg (It&#39;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&#39;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">&lt;<a href="mailto:tkb608@gmail.com">tkb608@gmail.com</a>&gt;</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 &lt;<a \
href="mailto:michael@stroeder.com">michael@stroeder.com</a>&gt;<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 \
&lt;<a href="mailto:pakraticus@gmail.com">pakraticus@gmail.com</a>&gt; wrote:<br> \
&gt; Manually rerun that last &#39;gcc&#39; with a -Wl,-bnoquiet added to see the \
source<br> &gt; of the objects depending on SSL symbols.<br>
&gt; I suspect that your ldap library is linked against OpenSSL.  I recommend<br>
&gt; installing either IBM&#39;s LPP of OpenSSL, or the RPM from <a \
href="http://www.perzl.org" target="_blank">www.perzl.org</a><br> &gt;<br>
&gt; Here is the spec file I used to build python-ldap 2.3.10 back in March on<br>
&gt; AIX 5.3.<br>
&gt; <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>
 &gt; This was added to the contents of the source RPM for python-ldap taken from<br>
&gt; Fedora 13.<br>
&gt; This was done with Visual Age &#39;C&#39; and &#39;C++&#39; 10.1.0.0<br>
&gt; I provided build requirements, including python, from<br>
&gt; <a href="http://www.perzl.org/aix/" \
target="_blank">http://www.perzl.org/aix/</a><br> &gt; Unfortunately, I did not build \
the OpenLDAP RPM I used and cannot provide<br> &gt; you the binary RPM.<br>
&gt; You can try using the openldap spec file from<br>
&gt; <a href="ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/SPECS/" \
target="_blank">ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/SPECS/</a><br> \
&gt; in combination with the source and patches from current Fedora as a starting<br> \
&gt; point for building OpenLDAP.<br> &gt;<br>
&gt;<br>
&gt; On Thu, Sep 30, 2010 at 1:19 PM, Tom Baxter &lt;<a \
href="mailto:tkb608@gmail.com">tkb608@gmail.com</a>&gt; wrote:<br> &gt;&gt;<br>
&gt;&gt;   Hello, I am having trouble install python-ldap on an AIX 6.1 host. I<br>
&gt;&gt; have compiled the openldap libraries and am trying to install without \
any<br> &gt;&gt; extras like SSL/crypt. Below is my setup.cfg, attached is the out \
put from<br> &gt;&gt; &quot;python setup.py build&quot;.<br>
&gt;&gt;   Any guidance would be greatly appreciated.<br>
&gt;&gt;<br>
&gt;&gt;   Thanks, Tom Baxter<br>
&gt;&gt;<br>
&gt;&gt; ---------------<br>
&gt;&gt; [_ldap]<br>
&gt;&gt; extra_objects =<br>
&gt;&gt; extra_compile_args =<br>
&gt;&gt; libs = ldap_r lber<br>
&gt;&gt; library_dirs = /usr/local/lib<br>
&gt;&gt; include_dirs = /usr/local/include<br>
&gt;&gt;<br>
&gt;&gt; [egg_info]<br>
&gt;&gt; tag_build =<br>
&gt;&gt; tag_date = 0<br>
&gt;&gt; tag_svn_revision = 0<br>
&gt;&gt;<br>
&gt;&gt; [install]<br>
&gt;&gt; compile = 1<br>
&gt;&gt; optimize = 1<br>
&gt;&gt;<br>
&gt;&gt; [bdist_rpm]<br>
&gt;&gt; doc_files = CHANGES README INSTALL TODO Demo/<br>
&gt;&gt; provides = python-ldap<br>
&gt;&gt; release = 0<br>
&gt;&gt; packager = Michael Stroeder &lt;<a \
href="mailto:michael@stroeder.com">michael@stroeder.com</a>&gt;<br> &gt;&gt; requires \
= python libldap.so.2<br> &gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------------------------------------------------------<br>
 &gt;&gt; Start uncovering the many advantages of virtual appliances<br>
&gt;&gt; and start using them to simplify application deployment and<br>
&gt;&gt; accelerate your shift to cloud computing.<br>
&gt;&gt; <a href="http://p.sf.net/sfu/novell-sfdev2dev" \
target="_blank">http://p.sf.net/sfu/novell-sfdev2dev</a><br> &gt;&gt; \
_______________________________________________<br> &gt;&gt; Python-LDAP-dev mailing \
list<br> &gt;&gt; <a \
href="mailto:Python-LDAP-dev@lists.sourceforge.net">Python-LDAP-dev@lists.sourceforge.net</a><br>
 &gt;&gt; <a href="https://lists.sourceforge.net/lists/listinfo/python-ldap-dev" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/python-ldap-dev</a><br> \
&gt;&gt;<br> &gt;<br>
&gt;<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