[Pkg-xfce-devel] Bug#811608: FTBFS with GCC 6: nonnull argument compared to NULL

Martin Michlmayr tbm at hpe.com
Wed Jan 20 00:15:36 UTC 2016


Package: lightdm
Version: 1.16.6-1
Severity: important
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-nonnull

This package fails to build with GCC 6.  GCC 6 has not been released
yet, but it's expected that GCC 6 will become the default compiler for
stretch.

Note that only the first error is reported; there might be more.  You
can find a snapshot of GCC 6 in experimental.  To build with GCC 6,
you can set CC=gcc-6 CXX=g++-6 explicitly.

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> /bin/bash ../../libtool  --tag=CC   --mode=link gcc -Wall                  -Wstrict-prototypes                  -Wnested-externs                  -Werror=missing-prototypes                  -Werror=implicit-function-declaration                  -Werror=pointer-arith                  -Werror=init-self                  -Werror=format-security                  -Werror=format=2                  -Werror=missing-include-dirs -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security  -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,-O1 -o unity-system-compositor unity_system_compositor-unity-system-compositor.o unity_system_compositor-status.o -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lgio-2.0 -lgobject-2.0 -l
> glib-2.0 
> libsystem.c: In function 'getpwnam':
> libsystem.c:859:14: error: nonnull argument 'name' compared to NULL [-Werror=nonnull]
>      if (name == NULL)
>               ^~
> 
> libsystem.c: In function 'pam_start':
> libsystem.c:993:22: error: nonnull argument 'service_name' compared to NULL [-Werror=nonnull]
>      if (service_name == NULL || conversation == NULL || pamh == NULL)
>                       ^~
> 
> libsystem.c:993:46: error: nonnull argument 'conversation' compared to NULL [-Werror=nonnull]
>      if (service_name == NULL || conversation == NULL || pamh == NULL)
>                                               ^~
> 
> libsystem.c:993:62: error: nonnull argument 'pamh' compared to NULL [-Werror=nonnull]
>      if (service_name == NULL || conversation == NULL || pamh == NULL)
>                                                               ^~
> 
> libsystem.c: In function 'pam_authenticate':
> libsystem.c:1038:14: error: nonnull argument 'pamh' compared to NULL [-Werror=nonnull]
>      if (pamh == NULL)
>               ^~
> 
> libsystem.c: In function 'pam_putenv':
> libsystem.c:1297:14: error: nonnull argument 'pamh' compared to NULL [-Werror=nonnull]
>      if (pamh == NULL || name_value == NULL)
>               ^~
> 
> libsystem.c:1297:36: error: nonnull argument 'name_value' compared to NULL [-Werror=nonnull]
>      if (pamh == NULL || name_value == NULL)
>                                     ^~
> 
> libsystem.c: In function 'pam_getenv':
> libsystem.c:1331:14: error: nonnull argument 'pamh' compared to NULL [-Werror=nonnull]
>      if (pamh == NULL || name == NULL)
>               ^~
> 
> libsystem.c:1331:30: error: nonnull argument 'name' compared to NULL [-Werror=nonnull]
>      if (pamh == NULL || name == NULL)
>                               ^~
> 
> libsystem.c: In function 'pam_getenvlist':
> libsystem.c:1348:14: error: nonnull argument 'pamh' compared to NULL [-Werror=nonnull]
>      if (pamh == NULL)
>               ^~
> 
> libsystem.c: In function 'pam_set_item':
> libsystem.c:1357:14: error: nonnull argument 'pamh' compared to NULL [-Werror=nonnull]
>      if (pamh == NULL || item == NULL)
>               ^~
> 
> libsystem.c: In function 'pam_get_item':
> libsystem.c:1376:14: error: nonnull argument 'pamh' compared to NULL [-Werror=nonnull]
>      if (pamh == NULL || item == NULL)
>               ^~
> 
> libsystem.c: In function 'pam_open_session':
> libsystem.c:1420:14: error: nonnull argument 'pamh' compared to NULL [-Werror=nonnull]
>      if (pamh == NULL)
>               ^~
> 
> /bin/bash ../../libtool  --tag=CC   --mode=link gcc -Wall                  -Wstrict-prototypes                  -Wnested-externs                  -Werror=missing-prototypes                  -Werror=implicit-function-declaration                  -Werror=pointer-arith                  -Werror=init-self                  -Werror=format-security                  -Werror=format=2                  -Werror=missing-include-dirs -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security  -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,-O1 -o test-script-hook test_script_hook-test-script-hook.o test_script_hook-status.o -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 
> /bin/bash ../../libtool  --tag=CC   --mode=link gcc -Wall                  -Wstrict-prototypes                  -Wnested-externs                  -Werror=missing-prototypes                  -Werror=implicit-function-declaration                  -Werror=pointer-arith                  -Werror=init-self                  -Werror=format-security                  -Werror=format=2                  -Werror=missing-include-dirs -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security  -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,-O1 -o guest-account guest_account-guest-account.o guest_account-status.o -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 
> /bin/bash ../../libtool  --tag=CC   --mode=link gcc -Wall                  -Wstrict-prototypes                  -Wnested-externs                  -Werror=missing-prototypes                  -Werror=implicit-function-declaration                  -Werror=pointer-arith                  -Werror=init-self                  -Werror=format-security                  -Werror=format=2                  -Werror=missing-include-dirs -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security  -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,-O1 -o initctl initctl-initctl.o initctl-status.o -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 
> libsystem.c: In function 'pam_close_session':
> libsystem.c:1480:14: error: nonnull argument 'pamh' compared to NULL [-Werror=nonnull]
>      if (pamh == NULL)
>               ^~
> 
> libsystem.c: In function 'pam_acct_mgmt':
> libsystem.c:1503:14: error: nonnull argument 'pamh' compared to NULL [-Werror=nonnull]
>      if (pamh == NULL)
>               ^~
> 
> libsystem.c: In function 'pam_chauthtok':
> libsystem.c:1543:14: error: nonnull argument 'pamh' compared to NULL [-Werror=nonnull]
>      if (pamh == NULL)
>               ^~
> 
> libsystem.c: In function 'pam_setcred':
> libsystem.c:1597:14: error: nonnull argument 'pamh' compared to NULL [-Werror=nonnull]
>      if (pamh == NULL)
>               ^~
> 
> /bin/bash ../../libtool  --tag=CC   --mode=link gcc -Wall                  -Wstrict-prototypes                  -Wnested-externs                  -Werror=missing-prototypes                  -Werror=implicit-function-declaration                  -Werror=pointer-arith                  -Werror=init-self                  -Werror=format-security                  -Werror=format=2                  -Werror=missing-include-dirs -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security  -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,-O1 -o vnc-client vnc_client-vnc-client.o vnc_client-status.o -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 
> /bin/bash ../../libtool  --tag=CC   --mode=link gcc -Wall                  -Wstrict-prototypes                  -Wnested-externs                  -Werror=missing-prototypes                  -Werror=implicit-function-declaration                  -Werror=pointer-arith                  -Werror=init-self                  -Werror=format-security                  -Werror=format=2                  -Werror=missing-include-dirs -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security  -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,-O1 -o test-session test_session-test-session.o test_session-status.o -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lxcb 
> libsystem.c: In function 'pam_end':
> libsystem.c:1667:14: error: nonnull argument 'pamh' compared to NULL [-Werror=nonnull]
>      if (pamh == NULL)
>               ^~
> 

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise



More information about the Pkg-xfce-devel mailing list