Bug#526213: FTBFS with GCC 4.4: missing #include

Martin Michlmayr tbm at cyrius.com
Wed Apr 29 21:26:37 UTC 2009


Package: qutecom
Version: 2.2~rc3.dfsg1-5
User: debian-gcc at lists.debian.org
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-snapshot from unstable or
gcc-4.4 from experimental.

> Automatic build of qutecom_2.2~rc3.dfsg1-5 on em64t by sbuild/amd64 0.53
...
> [  9%] Building CXX object libs/webcam/CMakeFiles/webcam.dir/src/webcam.o
> cd "/build/tbm/qutecom-2.2~rc3.dfsg1/obj-x86_64-linux-gnu/libs/webcam" && /usr/lib/gcc-snapshot/bin/g++   -D_FORTIFY_SOURCE=2 -DDEBUG -DBUILD_WEBCAM_DLL -DWEBCAM_DLL -g -O2 -g -Wall -O2 -O2 -g -fPIC -I"/build/tbm/qutecom-2.2~rc3.dfsg1/libs/owutil" -I"/build/tbm/qutecom-2.2~rc3.dfsg1/libs/pixertool/include" -I"/build/tbm/qutecom-2.2~rc3.dfsg1/obj-x86_64-linux-gnu/libs/pixertool" -I"/build/tbm/qutecom-2.2~rc3.dfsg1/libs/webcam/include" -I/usr/include/libavcodec -I/usr/include/libavutil -I/usr/include/libswscale   -fPIC -Wall -Wstrict-aliasing -Wextra -Wno-unused-parameter -fmessage-length=0 -DBOOST_ALL_DYN_LINK -pthread -DOWUTIL_DLL -o CMakeFiles/webcam.dir/src/webcam.o -c "/build/tbm/qutecom-2.2~rc3.dfsg1/libs/webcam/src/webcam.cpp"
> /build/tbm/qutecom-2.2~rc3.dfsg1/libs/webcam/src/webcam.cpp: In function 'WebcamDeviceList* webcam_get_device_list(webcam*)':
> /build/tbm/qutecom-2.2~rc3.dfsg1/libs/webcam/src/webcam.cpp:74: error: 'sprintf' was not declared in this scope
> make[3]: *** [libs/webcam/CMakeFiles/webcam.dir/src/webcam.o] Error 1
> make[3]: Leaving directory `/build/tbm/qutecom-2.2~rc3.dfsg1/obj-x86_64-linux-gnu'
> make[2]: *** [libs/webcam/CMakeFiles/webcam.dir/all] Error 2
> make[2]: Leaving directory `/build/tbm/qutecom-2.2~rc3.dfsg1/obj-x86_64-linux-gnu'
> make[1]: *** [all] Error 2

--- libs/webcam/src/webcam.cpp~	2009-04-29 20:36:37.000000000 +0000
+++ libs/webcam/src/webcam.cpp	2009-04-29 20:36:46.000000000 +0000
@@ -23,6 +23,7 @@
 
 #include <thread/Mutex.h>
 
+#include <stdio.h>
 #include <stdlib.h>
 
 using namespace std;

-- 
Martin Michlmayr
http://www.cyrius.com/





More information about the Pkg-voip-maintainers mailing list