Bug#504909: FTBFS with GCC 4.4: missing #include
Package: libfreebob
Version: 1.0.7-1
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-4.4
Tags: patch
Your package fails to build with the upcoming GCC 4.4. Version 4.4
has not been released yet but I'm building with a snapshot in order
to find errors and give people an advance warning.
GCC 4.4 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.
> Automatic build of libfreebob_1.0.7-1 on em64t by sbuild/amd64 0.53
...
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libxml2 -I.. -I../src -g -O2 -g -Wall -O2 -Wall -O2 -c libfreebobavc/avc_extended_plug_info.cpp -fPIC -DPIC -o libfreebobavc/.libs/avc_extended_plug_info.o
> libfreebobavc/avc_extended_plug_info.cpp: In member function 'virtual bool ExtendedPlugInfoInfoType::serialize(IOSSerialize&)':
> libfreebobavc/avc_extended_plug_info.cpp:628: error: 'asprintf' was not declared in this scope
> make[3]: *** [libfreebobavc/avc_extended_plug_info.lo] Error 1
> make[3]: Leaving directory `/build/tbm/libfreebob-1.0.7/src'
--- src/libfreebobavc/avc_extended_plug_info.cpp~ 2008-11-07 20:59:50.000000000 +0000
+++ src/libfreebobavc/avc_extended_plug_info.cpp 2008-11-07 20:59:56.000000000 +0000
@@ -22,6 +22,7 @@
#include "serialize.h"
#include "ieee1394service.h"
+#include <cstdio>
#include <cstdlib>
#include <netinet/in.h>
#include <iostream>
--- src/libfreebobavc/avc_generic.cpp~ 2008-11-07 21:01:34.000000000 +0000
+++ src/libfreebobavc/avc_generic.cpp 2008-11-07 21:01:39.000000000 +0000
@@ -22,6 +22,7 @@
#include "serialize.h"
#include "ieee1394service.h"
+#include <cstdio>
#include <cstdlib>
#include <netinet/in.h>
#include <cstdlib>
--- src/libfreebobavc/avc_extended_stream_format.cpp~ 2008-11-07 21:00:39.000000000 +0000
+++ src/libfreebobavc/avc_extended_stream_format.cpp 2008-11-07 21:00:54.000000000 +0000
@@ -22,6 +22,7 @@
#include "serialize.h"
#include "ieee1394service.h"
+#include <cstdio>
#include <netinet/in.h>
///////////////////////////////////////////////////////////
--- src/libfreebobavc/ieee1394service.cpp~ 2008-11-07 21:02:05.000000000 +0000
+++ src/libfreebobavc/ieee1394service.cpp 2008-11-07 21:02:11.000000000 +0000
@@ -24,6 +24,7 @@
#include <errno.h>
#include <netinet/in.h>
+#include <cstdio>
#include <iostream>
using namespace std;
--- src/libfreebobavc/serialize.cpp~ 2008-11-07 21:04:18.000000000 +0000
+++ src/libfreebobavc/serialize.cpp 2008-11-07 21:04:23.000000000 +0000
@@ -20,6 +20,7 @@
#include "serialize.h"
+#include <cstdio>
#include <iostream>
#include <iomanip>
--- src/debugmodule/debugmodule.cpp~ 2008-11-07 21:10:44.000000000 +0000
+++ src/debugmodule/debugmodule.cpp 2008-11-07 21:10:49.000000000 +0000
@@ -23,6 +23,7 @@
#include <stdarg.h>
#include <netinet/in.h>
+#include <cstdio>
#include <iostream>
using namespace std;
--- tests/test-volume.cpp~ 2008-11-07 21:11:53.000000000 +0000
+++ tests/test-volume.cpp 2008-11-07 21:12:00.000000000 +0000
@@ -21,6 +21,7 @@
#include "libfreebobavc/avc_function_block.h"
#include "libfreebobavc/serialize.h"
#include "libfreebobavc/ieee1394service.h"
+#include <stdio.h>
#include <stdlib.h>
const bool bVerbose = false;
--
Martin Michlmayr
http://www.cyrius.com/
Reply to: