Package: usbprog
Version: 0.1.6-1
User: [EMAIL PROTECTED]
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 usbprog_0.1.6-1 on em64t by sbuild/amd64 0.53
...
> /bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. 
> -I.. -I..  -I/usr/include/libxml2 
> -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 
> -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES 
> -DNO_GCC_PRAGMA  -g -O2 -g -Wall -O2 
> -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 
> -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES 
> -DNO_GCC_PRAGMA -c -o date.lo date.cc
>  g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I/usr/include/libxml2 
> -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 
> -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES 
> -DNO_GCC_PRAGMA -g -O2 -g -Wall -O2 
> -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 
> -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES 
> -DNO_GCC_PRAGMA -c date.cc  -fPIC -DPIC -o .libs/date.o
> date.cc: In member function 'void DateTime::setDateTime(const std::string&, 
> DateTimeFormat)':
> date.cc:105: error: 'sscanf' was not declared in this scope
> make[3]: *** [date.lo] Error 1
> make[3]: Leaving directory `/build/tbm/usbprog-0.1.6/usbprog'

--- usbprog/date.cc~    2008-11-09 17:48:44.000000000 +0000
+++ usbprog/date.cc     2008-11-09 17:48:54.000000000 +0000
@@ -15,6 +15,7 @@
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 #define _XOPEN_SOURCE
+#include <cstdio>
 #include <string>
 #include <time.h>
 #include <cstring>
--- usbprog/firmwarepool.h~     2008-11-09 17:51:43.000000000 +0000
+++ usbprog/firmwarepool.h      2008-11-09 17:51:50.000000000 +0000
@@ -17,6 +17,7 @@
 #ifndef FIRMWAREPOOL_H
 #define FIRMWAREPOOL_H
 
+#include <stdint.h>
 #include <string>
 #include <vector>
 #include <map>

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



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to