Bug#667334: pwlib: ftbfs with GCC-4.7

Matthias Klose doko at debian.org
Tue Apr 3 23:11:49 UTC 2012


Package: pwlib
Version: 1.10.10-3.1
Severity: important
Tags: sid wheezy
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-4.7

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

array.h:635:9: error: 'SetAt' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]

The full build log can be found at:
http://people.debian.org/~lucas/logs/2012/03/29-clang-gcc47/unstable-gcc47/pwlib_1.10.10-3.1_unstable-gcc47.log
The last lines of the build log are at the end of this report.

Some hints on fixing these issues can be found at
http://gcc.gnu.org/gcc-4.7/porting_to.html

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

[...]
#  CFLAGS += -DPTRACING=1
#  1. shared, with ptrace but opt: DEBUG=0 P_SHAREDLIB=1 OBJDIR_SUFFIX=r optshared
#  2. static, with ptrace but opt: DEBUG=0 P_SHAREDLIB=0 OBJDIR_SUFFIX=r optnoshared
# put CFLAGS to build with PTRACING code
/usr/bin/make PWLIBDIR=/«PKGBUILDDIR» CFLAGS="-g -DPTRACING=1" optshared
make[1]: Entering directory `/«PKGBUILDDIR»'
/usr/bin/make P_SHAREDLIB=1 opt
make[2]: Entering directory `/«PKGBUILDDIR»'
set -e; /usr/bin/make -C src/ptlib/unix opt; /usr/bin/make -C plugins opt;
make[3]: Entering directory `/«PKGBUILDDIR»/src/ptlib/unix'
g++ -D_REENTRANT -Wall -DP_64BIT -fPIC -DPIC -I/«PKGBUILDDIR»/include -M assert.cxx >> /«PKGBUILDDIR»/lib/obj_linux_x86_64_r/*.dep
make[3]: Leaving directory `/«PKGBUILDDIR»/src/ptlib/unix'
make[3]: Entering directory `/«PKGBUILDDIR»/src/ptlib/unix'
g++ -D_REENTRANT -Wall  -DP_64BIT -fPIC -DPIC -I/«PKGBUILDDIR»/include -O2 -g -DPTRACING=1  -c ../../ptclib/psasl.cxx -o /«PKGBUILDDIR»/lib/obj_linux_x86_64_r/psasl.o
g++ -D_REENTRANT -Wall  -DP_64BIT -fPIC -DPIC -I/«PKGBUILDDIR»/include -O2 -g -DPTRACING=1  -c ../../ptclib/pldap.cxx -o /«PKGBUILDDIR»/lib/obj_linux_x86_64_r/pldap.o
g++ -D_REENTRANT -Wall  -DP_64BIT -fPIC -DPIC -I/«PKGBUILDDIR»/include -O2 -g -DPTRACING=1  -c ../../ptclib/pils.cxx -o /«PKGBUILDDIR»/lib/obj_linux_x86_64_r/pils.o
In file included from /«PKGBUILDDIR»/include/ptlib/contain.h:800:0,
                 from /«PKGBUILDDIR»/include/ptlib.h:158,
                 from ../../ptclib/pils.cxx:49:
/«PKGBUILDDIR»/include/ptlib/array.h: In instantiation of 'void PScalarArray<T>::ReadElementFrom(std::istream&, PINDEX) [with T = short unsigned int; std::istream = std::basic_istream<char>; PINDEX = int]':
../../ptclib/pils.cxx:160:1:   required from here
/«PKGBUILDDIR»/include/ptlib/array.h:635:9: error: 'SetAt' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
/«PKGBUILDDIR»/include/ptlib/array.h:635:9: note: declarations in dependent base 'PBaseArray<short unsigned int>' are not found by unqualified lookup
/«PKGBUILDDIR»/include/ptlib/array.h:635:9: note: use 'this->SetAt' instead
make[3]: *** [/«PKGBUILDDIR»/lib/obj_linux_x86_64_r/pils.o] Error 1
make[3]: Leaving directory `/«PKGBUILDDIR»/src/ptlib/unix'
make[2]: *** [opt] Error 2
make[1]: *** [optshared] Error 2
make: *** [build-arch-stamp] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2





More information about the Pkg-voip-maintainers mailing list