Package: nss-pam-ldapd
Version: 0.7.0
User: [email protected]
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with GCC 4.4, which has cleaned up some more
C++ headers.  You always have to #include headers directly and cannot
rely for things to be included indirectly.

You can reproduce this problem with gcc-4.4/g++-4.4 from unstable.

> Automatic build of nss-pam-ldapd_0.7.0 on em64t by sbuild/amd64 0.53
...
> make[3]: Entering directory `/build/tbm/nss-pam-ldapd-0.7.0/pam'
> gcc -DHAVE_CONFIG_H -I. -I..  -I..  -fPIC -g -O2 -pedantic -Wall -Wshadow 
> -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes 
> -Wmissing-prototypes -Wnested-externs -Waggregate-return 
> -Wmissing-declarations -Wunused -Wformat=2 -Wswitch-default -Wswitch-enum 
> -Wfloat-equal -Wbad-function-cast -Wunreachable-code -Wredundant-decls 
> -Wextra -Wdeclaration-after-statement -Werror-implicit-function-declaration 
> -c pam.c
> pam.c: In function 'pam_sm_setcred':
> pam.c:323: warning: unused parameter 'pamh'
> pam.c:323: warning: unused parameter 'flags'
> pam.c:323: warning: unused parameter 'argc'
> pam.c:323: warning: unused parameter 'argv'
> pam.c: In function 'pam_warn':
> pam.c:341: warning: cast discards qualifiers from pointer target type
> pam.c: In function 'nslcd_request_sess':
> pam.c:465: warning: unused variable 'bufptr'
> pam.c:465: warning: unused variable 'buflen'
> pam.c:465: warning: unused variable 'buffer'
> pam.c: In function 'pam_sm_session':
> pam.c:490: warning: unused variable 'success'
> pam.c:487: warning: unused variable 'err'
> pam.c: In function 'pam_sm_close_session':
> pam.c:553: warning: ISO C90 forbids mixed declarations and code
> pam.c: In function 'pam_sm_chauthtok':
> pam.c:636: error: implicit declaration of function 'getuid'
> pam.c:636: warning: nested extern declaration of 'getuid'
> pam.c:638: warning: passing argument 5 of 'pam_get_authtok' from incompatible 
> pointer type
> pam.c:155: note: expected 'char **' but argument is of type 'const char **'
> pam.c:641: warning: passing argument 1 of 'memset' discards qualifiers from 
> pointer target type
> /usr/include/string.h:59: note: expected 'void *' but argument is of type 
> 'const char *'
> pam.c:642: warning: passing argument 1 of 'free' discards qualifiers from 
> pointer target type
> /usr/include/stdlib.h:488: note: expected 'void *' but argument is of type 
> 'const char *'
> pam.c:645: warning: passing argument 3 of 'pam_get_item' from incompatible 
> pointer type
> /usr/include/security/_pam_types.h:175: note: expected 'const void **' but 
> argument is of type 'const char **'
> pam.c:662: warning: passing argument 3 of 'pam_get_item' from incompatible 
> pointer type
> /usr/include/security/_pam_types.h:175: note: expected 'const void **' but 
> argument is of type 'const char **'
> pam.c:671: warning: passing argument 3 of 'pam_get_item' from incompatible 
> pointer type
> /usr/include/security/_pam_types.h:175: note: expected 'const void **' but 
> argument is of type 'const char **'
> pam.c:681: warning: passing argument 5 of 'pam_get_authtok' from incompatible 
> pointer type
> pam.c:155: note: expected 'char **' but argument is of type 'const char **'
> pam.c:685: warning: passing argument 1 of 'memset' discards qualifiers from 
> pointer target type
> /usr/include/string.h:59: note: expected 'void *' but argument is of type 
> 'const char *'
> pam.c:686: warning: passing argument 1 of 'free' discards qualifiers from 
> pointer target type
> /usr/include/stdlib.h:488: note: expected 'void *' but argument is of type 
> 'const char *'
> pam.c:687: warning: passing argument 3 of 'pam_get_item' from incompatible 
> pointer type
> /usr/include/security/_pam_types.h:175: note: expected 'const void **' but 
> argument is of type 'const char **'
> pam.c:589: warning: unused variable 'success'
> make[3]: *** [pam.o] Error 1
> make[3]: Leaving directory `/build/tbm/nss-pam-ldapd-0.7.0/pam'
> make[2]: *** [all-recursive] Error 1

-- 
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