Bug#897827: openni2: ftbfs with GCC-8

Matthias Klose doko at debian.org
Fri May 4 13:23:00 BST 2018


Package: src:openni2
Version: 2.2.0.33+dfsg-10
Severity: normal
Tags: sid buster
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-8

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

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

The full build log can be found at:
http://aws-logs.debian.net/2018/05/01/gcc8/openni2_2.2.0.33+dfsg-10_unstable_gcc8.log.gz
The last lines of the build log are at the end of this report.

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

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-8/porting_to.html

[...]
rm -rf -- Source/Documentation/html/
rm -rf -- Source/Documentation/Temp/
rm -rf -- Source/Documentation/java/
rm -rf -- Bin/Intermediate
rm -rf -- Bin/*-Release
rm -rf -- ThirdParty/PSCommon/XnLib/Bin/*-Release
rm -rf -- ThirdParty/PSCommon/XnLib/Bin/Intermediate
rm -rf -- Source/Documentation/doxygen_sqlite3.db
make[1]: Leaving directory '/<<BUILDDIR>>/openni2-2.2.0.33+dfsg'
   dh_clean -O--buildsystem=makefile
 debian/rules build-arch
dh build-arch --buildsystem=makefile
   dh_update_autotools_config -a -O--buildsystem=makefile
   dh_autoreconf -a -O--buildsystem=makefile
   dh_auto_configure -a -O--buildsystem=makefile
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<BUILDDIR>>/openni2-2.2.0.33+dfsg'
make
make[2]: Entering directory '/<<BUILDDIR>>/openni2-2.2.0.33+dfsg'
make -C ThirdParty/PSCommon/XnLib/Source
make[3]: Entering directory '/<<BUILDDIR>>/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source'
mkdir -p ../Bin/Intermediate/x64-Release/libXnLib.a
g++ -MD -MP -MT "./../Bin/Intermediate/x64-Release/libXnLib.a/XnErrorLogger.d ../Bin/Intermediate/x64-Release/libXnLib.a/XnErrorLogger.o" -c -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/openni2-2.2.0.33+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -DNDEBUG -I../Include  -fPIC -fvisibility=hidden -Werror -o ../Bin/Intermediate/x64-Release/libXnLib.a/XnErrorLogger.o XnErrorLogger.cpp
g++ -MD -MP -MT "./../Bin/Intermediate/x64-Release/libXnLib.a/XnFPSCalculator.d ../Bin/Intermediate/x64-Release/libXnLib.a/XnFPSCalculator.o" -c -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/openni2-2.2.0.33+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -DNDEBUG -I../Include  -fPIC -fvisibility=hidden -Werror -o ../Bin/Intermediate/x64-Release/libXnLib.a/XnFPSCalculator.o XnFPSCalculator.cpp
g++ -MD -MP -MT "./../Bin/Intermediate/x64-Release/libXnLib.a/XnLogFileWriter.d ../Bin/Intermediate/x64-Release/libXnLib.a/XnLogFileWriter.o" -c -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/openni2-2.2.0.33+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -DNDEBUG -I../Include  -fPIC -fvisibility=hidden -Werror -o ../Bin/Intermediate/x64-Release/libXnLib.a/XnLogFileWriter.o XnLogFileWriter.cpp
g++ -MD -MP -MT "./../Bin/Intermediate/x64-Release/libXnLib.a/XnThreads.d ../Bin/Intermediate/x64-Release/libXnLib.a/XnThreads.o" -c -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/openni2-2.2.0.33+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -DNDEBUG -I../Include  -fPIC -fvisibility=hidden -Werror -o ../Bin/Intermediate/x64-Release/libXnLib.a/XnThreads.o XnThreads.cpp
g++ -MD -MP -MT "./../Bin/Intermediate/x64-Release/libXnLib.a/XnUSB.d ../Bin/Intermediate/x64-Release/libXnLib.a/XnUSB.o" -c -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/openni2-2.2.0.33+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -DNDEBUG -I../Include  -fPIC -fvisibility=hidden -Werror -o ../Bin/Intermediate/x64-Release/libXnLib.a/XnUSB.o XnUSB.cpp
g++ -MD -MP -MT "./../Bin/Intermediate/x64-Release/libXnLib.a/XnDump.d ../Bin/Intermediate/x64-Release/libXnLib.a/XnDump.o" -c -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/openni2-2.2.0.33+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -DNDEBUG -I../Include  -fPIC -fvisibility=hidden -Werror -o ../Bin/Intermediate/x64-Release/libXnLib.a/XnDump.o XnDump.cpp
g++ -MD -MP -MT "./../Bin/Intermediate/x64-Release/libXnLib.a/XnLogConsoleWriter.d ../Bin/Intermediate/x64-Release/libXnLib.a/XnLogConsoleWriter.o" -c -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/openni2-2.2.0.33+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -DNDEBUG -I../Include  -fPIC -fvisibility=hidden -Werror -o ../Bin/Intermediate/x64-Release/libXnLib.a/XnLogConsoleWriter.o XnLogConsoleWriter.cpp
g++ -MD -MP -MT "./../Bin/Intermediate/x64-Release/libXnLib.a/XnLib.d ../Bin/Intermediate/x64-Release/libXnLib.a/XnLib.o" -c -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/openni2-2.2.0.33+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -DNDEBUG -I../Include  -fPIC -fvisibility=hidden -Werror -o ../Bin/Intermediate/x64-Release/libXnLib.a/XnLib.o XnLib.cpp
g++ -MD -MP -MT "./../Bin/Intermediate/x64-Release/libXnLib.a/XnVector3D.d ../Bin/Intermediate/x64-Release/libXnLib.a/XnVector3D.o" -c -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/openni2-2.2.0.33+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -DNDEBUG -I../Include  -fPIC -fvisibility=hidden -Werror -o ../Bin/Intermediate/x64-Release/libXnLib.a/XnVector3D.o XnVector3D.cpp
g++ -MD -MP -MT "./../Bin/Intermediate/x64-Release/libXnLib.a/XnDumpFileWriter.d ../Bin/Intermediate/x64-Release/libXnLib.a/XnDumpFileWriter.o" -c -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/openni2-2.2.0.33+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -DNDEBUG -I../Include  -fPIC -fvisibility=hidden -Werror -o ../Bin/Intermediate/x64-Release/libXnLib.a/XnDumpFileWriter.o XnDumpFileWriter.cpp
g++ -MD -MP -MT "./../Bin/Intermediate/x64-Release/libXnLib.a/XnSytmmetricMatrix3x3.d ../Bin/Intermediate/x64-Release/libXnLib.a/XnSytmmetricMatrix3x3.o" -c -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/openni2-2.2.0.33+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -DNDEBUG -I../Include  -fPIC -fvisibility=hidden -Werror -o ../Bin/Intermediate/x64-Release/libXnLib.a/XnSytmmetricMatrix3x3.o XnSytmmetricMatrix3x3.cpp
g++ -MD -MP -MT "./../Bin/Intermediate/x64-Release/libXnLib.a/XnLog.d ../Bin/Intermediate/x64-Release/libXnLib.a/XnLog.o" -c -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/openni2-2.2.0.33+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -DNDEBUG -I../Include  -fPIC -fvisibility=hidden -Werror -o ../Bin/Intermediate/x64-Release/libXnLib.a/XnLog.o XnLog.cpp
g++ -MD -MP -MT "./../Bin/Intermediate/x64-Release/libXnLib.a/XnOS.d ../Bin/Intermediate/x64-Release/libXnLib.a/XnOS.o" -c -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/openni2-2.2.0.33+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -DNDEBUG -I../Include  -fPIC -fvisibility=hidden -Werror -o ../Bin/Intermediate/x64-Release/libXnLib.a/XnOS.o XnOS.cpp
g++ -MD -MP -MT "./../Bin/Intermediate/x64-Release/libXnLib.a/XnStatus.d ../Bin/Intermediate/x64-Release/libXnLib.a/XnStatus.o" -c -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/openni2-2.2.0.33+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -DNDEBUG -I../Include  -fPIC -fvisibility=hidden -Werror -o ../Bin/Intermediate/x64-Release/libXnLib.a/XnStatus.o XnStatus.cpp
g++ -MD -MP -MT "./../Bin/Intermediate/x64-Release/libXnLib.a/XnProfiling.d ../Bin/Intermediate/x64-Release/libXnLib.a/XnProfiling.o" -c -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/openni2-2.2.0.33+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -DNDEBUG -I../Include  -fPIC -fvisibility=hidden -Werror -o ../Bin/Intermediate/x64-Release/libXnLib.a/XnProfiling.o XnProfiling.cpp
XnProfiling.cpp: In function 'XnStatus xnProfilingSectionStart(const char*, XnBool, XnProfilingHandle*)':
XnProfiling.cpp:220:11: error: 'char* strncpy(char*, const char*, size_t)' specified bound 256 equals destination size [-Werror=stringop-truncation]
    strncpy(pSection->csName + nChar, csSectionName, MAX_SECTION_NAME);
    ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[3]: *** [../../BuildSystem/CommonCppMakefile:130: ../Bin/Intermediate/x64-Release/libXnLib.a/XnProfiling.o] Error 1
make[3]: Leaving directory '/<<BUILDDIR>>/openni2-2.2.0.33+dfsg/ThirdParty/PSCommon/XnLib/Source'
make[2]: *** [Makefile:121: ThirdParty/PSCommon/XnLib/Source] Error 2
make[2]: Leaving directory '/<<BUILDDIR>>/openni2-2.2.0.33+dfsg'
make[1]: *** [debian/rules:7: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<BUILDDIR>>/openni2-2.2.0.33+dfsg'
make: *** [debian/rules:4: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2



More information about the pkg-multimedia-maintainers mailing list