From: Chris D. <pak...@gm...> - 2010-09-30 20:56:32
|
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 <tk...@gm...> 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 <mi...@st...> > requires = python libldap.so.2 > > --------------------------- > > On Thu, Sep 30, 2010 at 2:23 PM, Chris Dukes <pak...@gm...> 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 <tk...@gm...> 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 <mi...@st...> > >> 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 > >> Pyt...@li... > >> https://lists.sourceforge.net/lists/listinfo/python-ldap-dev > >> > > > > > |