Package: python-ldap
Version: 2.3.5-1
User: [EMAIL PROTECTED]
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with the upcoming GCC 4.4.  Version 4.4
has not been released yet but I'm building with a snapshot in order
to find errors and give people an advance warning.

GCC 4.4 will introduce better checks in the preprocessor.  The problem
is pretty obvious: you're using a #elif without any condition when
you really want a #else.

You can reproduce this problem with gcc-snapshot from unstable.

> Automatic build of python-ldap_2.3.5-1 on em64t by sbuild/amd64 0.53
...
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
> -Wstrict-prototypes -g -O2 -g -Wall -O2 -fPIC -DHAVE_TLS -DHAVE_LIBLDAP_R 
> -DHAVE_SASL -DLDAPMODULE_VERSION=2.3.5 -IModules -I/usr/include/sasl 
> -I/usr/include/python2.4 -c Modules/errors.c -o 
> /build/tbm/python-ldap-2.3.5/./build/temp.linux-x86_64-2.4/Modules/errors.o
> Modules/errors.c:21:6: error: #elif with no expression
> error: command 'gcc' failed with exit status 1
> make: *** [python-build-stamp-2.4] Error 1
> dpkg-buildpackage: failure: debian/rules build gave error exit status 2

--- Modules/errors.c~   2008-11-07 15:53:25.000000000 +0000
+++ Modules/errors.c    2008-11-07 15:53:29.000000000 +0000
@@ -18,7 +18,7 @@
 
 #ifdef LDAP_ASSERTION_FAILED
 #define LDAP_ERROR_MAX          LDAP_ASSERTION_FAILED
-#elif
+#else
 #define LDAP_ERROR_MAX          LDAP_OTHER
 #endif
 

-- 
Martin Michlmayr
http://www.cyrius.com/



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to