Fw: crash in PyImport_Import (Unsigned Mail)

geert.van.muylem at aachen.utimaco.de geert.van.muylem at aachen.utimaco.de
Mon Dec 18 12:29:44 CET 2006


Hi,

Here is part of my makefile:

VERSION = Python-2.5

VERSION_LDAP = python-ldap-2.2.1

compile: .python .python-ldap

python:        makefile.python .glibc $(VERSION).Setup.local
                $(EXTRACT_PACKAGE) && \
                        $(CP) ../$(VERSION).Setup.local 
Modules/Setup.local && \
                        ./configure --prefix=/usr --enable-shared=no && \
                        make && \
                        make install 
                cp $(VERSION)/libpython2.5.a /usr/lib/libpython.a
                (cd /usr/include; $(LN) -sf python2.5 python )
                touch .python 


.python-ldap: makefile.python .python .sasl .glibc .openldap 
python-ldap.setup.cfg
        (rm -rf $(VERSION_LDAP)  ||  /bin/true)  && \
        tar xjf $(ARCHIVE_PACKAGES)/$(VERSION_LDAP).tar.bz2  && \
        cd $(VERSION_LDAP) && \
                $(CP) ../python-ldap.setup.cfg setup.cfg && \
                python setup.py build && \
                python setup.py install
        rm -rf $(VERSION_LDAP)
        touch .python-ldap


And my setup.cfg

# Example for setup.cfg
# You have to edit this file to reflect your system configuation
# $Id: setup.cfg.suse-linux,v 1.1 2003/08/20 10:04:34 stroeder Exp $

[_ldap]
# Section for compiling the C extension module
# for wrapping OpenLDAP 2 libs

library_dirs = /usr/lib/ /usr/lib/sasl2/
include_dirs = /usr/include/sasl/ /usr/include/sasl2/
extra_compile_args =
extra_objects =

# Example for full-featured SuSE build:
# Support for StartTLS/LDAPS, SASL bind and reentrant libldap_r.
# This needs recent OpenLDAP 2.0.26+ or 2.1.3+ built with
#./configure --with-cyrus-sasl --with-tls
libs = python ldap_r lber sasl2 ssl crypto resolv dl db m util pthread

[install]
# Installation options
compile = 1
optimize = 1

Everything is done in a chroot-ed environment...when building python-ldap, 
it uses
the newly installed python includes....
The test application is linked against the static version libpython.a

Thanks,
Geert




Michael Ströder <michael at stroeder.com> 
Sent by: python-ldap-dev-bounces at lists.sourceforge.net
12/18/2006 11:40 AM

To
geert.van.muylem at aachen.utimaco.de
cc
python-ldap-dev at lists.sourceforge.net
Subject
Re: Fw: crash in PyImport_Import (Unsigned Mail)






geert.van.muylem at aachen.utimaco.de wrote:
>
> -> Python and python-ldap are recompiled for my environment
> (python generates the static library....)

Did you tweak the file setup.cfg?
Can you please elaborate on how static linking is to be done?
How is the embedded Python built?

Ciao, Michael.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share 
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20061218/f926b1ce/attachment.html>


More information about the python-ldap mailing list