Package: soci
Version: 2.2.0-4
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 soci_2.2.0-4 on em64t by sbuild/amd64 0.53
...
>  g++ -DPACKAGE_NAME=\"SOCI\" -DPACKAGE_TARNAME=\"soci\" 
> -DPACKAGE_VERSION=\"2.2.0\" "-DPACKAGE_STRING=\"SOCI 2.2.0\"" 
> -DPACKAGE_BUGREPORT=\"http://sourceforge.net/projects/soci\"; 
> -DPACKAGE=\"soci\" -DVERSION=\"2.2.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 
> -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
> -DHAVE_DLFCN_H=1 -DHAVE_MYSQL=1 -DHAVE_POSTGRESQL=1 -DHAVE_SQLITE3=1 -I. -I. 
> -I../../../src/core -I/usr/include/mysql -DBIG_JOINS=1 -fPIC -DNDEBUG 
> -U_DEBUG -fPIC -g -O2 -g -Wall -O2 -Wall -pedantic -Wno-long-long -c 
> standard-use-type.cpp  -fPIC -DPIC -o .libs/standard-use-type.o
> standard-use-type.cpp: In member function 'virtual void 
> SOCI::MySQLStandardUseTypeBackEnd::preUse(const SOCI::eIndicator*)':
> standard-use-type.cpp:81: error: 'snprintf' was not declared in this scope
> standard-use-type.cpp:89: error: 'snprintf' was not declared in this scope
> standard-use-type.cpp:98: error: 'snprintf' was not declared in this scope
> standard-use-type.cpp:109: error: 'snprintf' was not declared in this scope
> standard-use-type.cpp:121: error: 'snprintf' was not declared in this scope
> make[4]: *** [standard-use-type.lo] Error 1

--- src/backends/mysql/standard-use-type.cpp~   2008-11-07 20:56:08.000000000 
+0000
+++ src/backends/mysql/standard-use-type.cpp    2008-11-07 20:56:15.000000000 
+0000
@@ -12,6 +12,7 @@
 #include <soci.h>
 #include <soci-platform.h>
 #include <ciso646>
+#include <cstdio>
 #include <limits>
 
 #ifdef _MSC_VER
--- src/backends/mysql/vector-use-type.cpp~     2008-11-07 20:58:47.000000000 
+0000
+++ src/backends/mysql/vector-use-type.cpp      2008-11-07 20:58:52.000000000 
+0000
@@ -12,6 +12,7 @@
 #include <soci.h>
 #include <soci-platform.h>
 #include <ciso646>
+#include <cstdio>
 #include <limits>
 
 #ifdef _MSC_VER
--- src/backends/sqlite3/standard-use-type.cpp~ 2008-11-07 21:01:50.000000000 
+0000
+++ src/backends/sqlite3/standard-use-type.cpp  2008-11-07 21:01:56.000000000 
+0000
@@ -9,6 +9,7 @@
 #include "soci.h"
 #include "soci-sqlite3.h"
 #include <limits>
+#include <cstdio>
 
 #ifdef _MSC_VER
 #pragma warning(disable:4355 4996)
--- src/backends/sqlite3/vector-use-type.cpp~   2008-11-07 21:04:02.000000000 
+0000
+++ src/backends/sqlite3/vector-use-type.cpp    2008-11-07 21:04:08.000000000 
+0000
@@ -11,6 +11,7 @@
 
 #include "common.h"
 #include <limits>
+#include <cstdio>
 
 #ifdef _MSC_VER
 #pragma warning(disable:4355 4996)

-- 
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