Re: Error while building

2008-08-07 Thread Michael Ströder
Sig wrote:
> Matej Vela a écrit :
>> Sig <[EMAIL PROTECTED]> writes:
>>> I can't build python-ldap-2.3.5. What should I do ?
>> Looks like you're missing libldap2-dev.  Please run
>>
>> # apt-get install build-essential libldap2-dev libsasl2-dev python-dev
> [..]
> Too bad all these dev libs are required for installing python-ldap from 
> the cheeseshop. Or maybe these requirements should be clearly indicated 
> on the python-ldap package page ?

The build prerequisites are mentioned in the python-ldap docs:
http://python-ldap.sourceforge.net/doc/html/installing.html#prerequisites

Note that apt-get is specific for Debian-based Linux distributions. The 
python-ldap docs have to be generic. I'd accept distribution-specific 
sections for the installation docs though.

Ciao, Michael.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev


Re: Error while building

2008-08-06 Thread Ryan Lovett
On Thu, Aug 07, 2008 at 12:03:29AM +0200, Sig wrote:
> Matej Vela a écrit :
> > Sig <[EMAIL PROTECTED]> writes:
> >> I can't build python-ldap-2.3.5. What should I do ?
> > Looks like you're missing libldap2-dev.  Please run
> > 
> > # apt-get install build-essential libldap2-dev libsasl2-dev python-dev
> 
> It helped, thanks ! I also had to add libssl-dev (before that I was 
> getting another message saying that lssl could not be found).
> 
> Now it works OK.
> 
> Too bad all these dev libs are required for installing python-ldap from 
> the cheeseshop. Or maybe these requirements should be clearly indicated 
> on the python-ldap package page ?
> 
> Anyway, thanks for your help and reactivity !

In the future you can try

# apt-get build-dep python-ldap

apt-get.8: "build-dep causes apt-get to install/remove packages in an
attempt to satisfy the build dependencies for a source package."

Ryan

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev


Re: Error while building

2008-08-06 Thread Sig
Matej Vela a écrit :
> Sig <[EMAIL PROTECTED]> writes:
>> I can't build python-ldap-2.3.5. What should I do ?
> Looks like you're missing libldap2-dev.  Please run
> 
> # apt-get install build-essential libldap2-dev libsasl2-dev python-dev

It helped, thanks ! I also had to add libssl-dev (before that I was 
getting another message saying that lssl could not be found).

Now it works OK.

Too bad all these dev libs are required for installing python-ldap from 
the cheeseshop. Or maybe these requirements should be clearly indicated 
on the python-ldap package page ?

Anyway, thanks for your help and reactivity !

-- Sig

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev


Re: Error while building

2008-08-06 Thread Matej Vela
Sig <[EMAIL PROTECTED]> writes:

> I can't build python-ldap-2.3.5. What should I do ?
>
> My steps:
> - downloaded the 2.3.5 tarball from sourceforge
> - tar xvzf ...
> - python setup.py build
> - The error and output messages are attached to this email.
>
> My setup:
> - Python 2.5.2
> - libldap-2.4-2 (ubuntu package version = 2.4.9-0ubuntu0.8.04.1, same
> for slapd)
> - Ubuntu hardy
>
> Tell me if you need any other piece of info.

Looks like you're missing libldap2-dev.  Please run

# apt-get install build-essential libldap2-dev libsasl2-dev python-dev

[...]
> By the way #2 : there is no web archive of this list ?

See .

Cheers,

Matej

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev


Error while building

2008-08-06 Thread Sig

I can't build python-ldap-2.3.5. What should I do ?

My steps:
- downloaded the 2.3.5 tarball from sourceforge
- tar xvzf ...
- python setup.py build
- The error and output messages are attached to this email.

My setup:
- Python 2.5.2
- libldap-2.4-2 (ubuntu package version = 2.4.9-0ubuntu0.8.04.1, same 
for slapd)

- Ubuntu hardy

Tell me if you need any other piece of info.

By the way, I first met this problem when trying to refresh a Plone 
buildout (PloneUserFolder has a python-ldap dependency). Which lead me 
to this post on a blog :


http://boz.tumblr.com/post/43534569/error-couldnt-install-python-ldap-2-3-5

But I am not happy enough with the workaround suggested there.

By the way #2 : there is no web archive of this list ?

Thanks.

-- Sig
$ python ./setup.py build
extra_compile_args: 
extra_objects: 
include_dirs: /usr/local/openldap-2.3/include /usr/include/sasl
library_dirs: /usr/local/openldap-2.3/lib
libs: ldap_r lber sasl2 ssl crypto
running build
running build_py
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
running egg_info
writing requirements to Lib/python_ldap.egg-info/requires.txt
writing Lib/python_ldap.egg-info/PKG-INFO
writing top-level names to Lib/python_ldap.egg-info/top_level.txt
writing dependency_links to Lib/python_ldap.egg-info/dependency_links.txt
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
reading manifest file 'Lib/python_ldap.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'Makefile'
warning: no files found matching 'Modules/LICENSE'
writing manifest file 'Lib/python_ldap.egg-info/SOURCES.txt'
running build_ext
building '_ldap' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -DHAVE_LIBLDAP_R -DHAVE_SASL -DHAVE_TLS 
-DLDAPMODULE_VERSION=2.3.5 -IModules -I/usr/local/openldap-2.3/include 
-I/usr/include/sasl -I/usr/include/python2.5 -c Modules/LDAPObject.c -o 
build/temp.linux-i686-2.5/Modules/LDAPObject.o
Dans le fichier inclus à partir de Modules/LDAPObject.c:9:
Modules/errors.h:8:18: erreur: lber.h : Aucun fichier ou dossier de ce type
Modules/errors.h:9:18: erreur: ldap.h : Aucun fichier ou dossier de ce type
In file included from Modules/LDAPObject.c:9:
Modules/errors.h:12: erreur: expected «)» before «*» token
Dans le fichier inclus à partir de Modules/LDAPObject.c:11:
Modules/LDAPObject.h:12:2: erreur: #error Current python-ldap requires OpenLDAP 
2.x
In file included from Modules/LDAPObject.c:11:
Modules/LDAPObject.h:23: erreur: expected specifier-qualifier-list before 
«LDAP»
Modules/LDAPObject.h:31: erreur: expected «)» before «*» token
In file included from Modules/LDAPObject.c:12:
Modules/ldapcontrol.h:11: erreur: expected «)» before «*» token
Modules/ldapcontrol.h:12: erreur: expected «=», «,», «;», «asm» or 
«__attribute__» before «*» token
Modules/ldapcontrol.h:13: erreur: expected «)» before «*» token
In file included from Modules/LDAPObject.c:13:
Modules/message.h:11: erreur: expected «)» before «*» token
Modules/LDAPObject.c:17:18: erreur: sasl.h : Aucun fichier ou dossier de ce type
Modules/LDAPObject.c:25: erreur: expected «)» before «*» token
Modules/LDAPObject.c: Dans la fonction «dealloc» :
Modules/LDAPObject.c:41: erreur: «LDAPObject» has no member named «ldap»
Modules/LDAPObject.c:42: erreur: «LDAPObject» has no member named «valid»
Modules/LDAPObject.c:43: erreur: «LDAPObject» has no member named «_save»
Modules/LDAPObject.c:43: erreur: «LDAPObject» has no member named «_save»
Modules/LDAPObject.c:44: attention : déclaration implicite de la fonction « 
«ldap_unbind_ext» »
Modules/LDAPObject.c:44: erreur: «LDAPObject» has no member named «ldap»
Modules/LDAPObject.c:45: erreur: «LDAPObject» has no member named «_save»
Modules/LDAPObject.c:45: erreur: «LDAPObject» has no member named «_save»
Modules/LDAPObject.c:46: erreur: «LDAPObject» has no member named «valid»
Modules/LDAPObject.c:48: erreur: «LDAPObject» has no member named «ldap»
Modules/LDAPObject.c: Dans la fonction «not_valid» :
Modules/LDAPObject.c:64: erreur: «LDAPObject» has no member named «valid»
Modules/LDAPObject.c: Hors de toute fonction :
Modules/LDAPObject.c:75: erreur: expected «)» before «*» token
Modules/LDAPObject.c:102: erreur: expected «=», «,», «;», «asm» or 
«__attribute__» before «*» token
Modules/LDAPObject.c:193: erreur: expected «)» before «*» token
Modules/LDAPObject.c:205: erreur: expected «=», «,», «;», «asm» or 
«__attribute__» before «*» token
Modules/LDAPObject.c: Dans la fonction «l_ldap_unbind_ext» :
Modules/LDAPObject.c:331: erreur: «LDAPControl» undeclared (first use in this 
function)
Modules/LDAPObject.c:331: erreur: