Package: mysql++
Version: 3.0.0-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 mysql++_3.0.0-1 on em64t by sbuild/amd64 0.53
...
> g++ -c -o resetdb_resetdb.o -Ilib      -I/usr/include/mysql -g -O2 -g -Wall 
> -O2 ./examples/resetdb.cpp
> ./examples/resetdb.cpp: In function 'std::string version_str(int)':
> ./examples/resetdb.cpp:53: error: 'snprintf' was not declared in this scope
> make[1]: *** [resetdb_resetdb.o] Error 1
> make[1]: Leaving directory `/build/tbm/mysql++-3.0.0'

--- examples/resetdb.cpp~       2008-11-07 19:23:34.000000000 +0000
+++ examples/resetdb.cpp        2008-11-07 19:23:40.000000000 +0000
@@ -32,6 +32,7 @@
 
 #include <mysql++.h>
 
+#include <cstdio>
 #include <iostream>
 
 using namespace std;
--- examples/transaction.cpp~   2008-11-07 19:25:37.000000000 +0000
+++ examples/transaction.cpp    2008-11-07 19:25:43.000000000 +0000
@@ -30,6 +30,7 @@
 #include "stock.h"
 
 #include <iostream>
+#include <cstdio>
 
 using namespace std;
 

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