[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#701308: libpam-unix2: ftbfs with GCC-4.8



Package: src:libpam-unix2
Version: 1:2.4.1-6
Severity: important
Tags: sid jessie
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-4.8

The package fails to build in a test rebuild on at least amd64 with
gcc-4.8/g++-4.8, but succeeds to build with gcc-4.7/g++-4.7. The
severity of this report may be raised before the jessie release.

  read-files.c:344:35: error: expected expression before 'static'

The full build log can be found at:
http://people.debian.org/~doko/logs-20130217/gcc48/libpam-unix2_2.4.1-6_unstable_gcc48.log
The last lines of the build log are at the end of this report.

To build with GCC 4.8, either set CC=gcc-4.8 CXX=g++-4.8 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t experimental install g++ g++-4.7 g++-4.8 libc6-dev

The test rebuild was done with eglibc-2.17 and GCC-4.8, so some issues
might be caused by the updated glibc.

[...]
   __libc_lock_define_initialized (static, lock)
   ^
read-files.c:344:35: error: expected expression before 'static'
   __libc_lock_define_initialized (static, lock)
                                   ^
read-files.c:345:3: error: expected ';' before 'enum'
   enum nss_status status;
   ^
read-files.c:348:3: warning: implicit declaration of function '__libc_lock_lock' [-Wimplicit-function-declaration]
   __libc_lock_lock (lock);
   ^
read-files.c:348:21: error: 'lock' undeclared (first use in this function)
   __libc_lock_lock (lock);
                     ^
read-files.c:348:21: note: each undeclared identifier is reported only once for each function it appears in
read-files.c:350:3: error: 'status' undeclared (first use in this function)
   status = internal_setent (&stream, "/shadow");
   ^
read-files.c:364:3: warning: implicit declaration of function '__libc_lock_unlock' [-Wimplicit-function-declaration]
   __libc_lock_unlock (lock);
   ^
read-files.c: In function 'files_getpwnam_r':
read-files.c:374:35: error: expected expression before 'static'
   __libc_lock_define_initialized (static, lock)
                                   ^
read-files.c:375:3: error: expected ';' before 'enum'
   enum nss_status status;
   ^
read-files.c:378:21: error: 'lock' undeclared (first use in this function)
   __libc_lock_lock (lock);
                     ^
read-files.c:380:3: error: 'status' undeclared (first use in this function)
   status = internal_setent (&stream, "/passwd");
   ^
read-files.c: In function 'files_getspnam_r':
read-files.c:367:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
read-files.c: In function 'files_getpwnam_r':
read-files.c:397:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
make[3]: *** [read-files.o] Error 1
make[3]: Leaving directory `/«PKGBUILDDIR»/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/«PKGBUILDDIR»'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/«PKGBUILDDIR»'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2


Reply to: