Package: soci
Version: 2.2.0-3
Severity: serious
Tags: patch

Soci fails to build on mips, mipsel, armel and presumably arm because
it tries to use std::snprintf. This is, however, a function in the
global namespace, and only retained as an alias in std:: for backward
compatibility purposes on other architectures.

The appended patch fixes this (and was tested on mips).


Thiemo


diff -urpN soci-2.2.0.old/src/backends/postgresql/standard-use-type.cpp 
soci-2.2.0/src/backends/postgresql/standard-use-type.cpp
--- soci-2.2.0.old/src/backends/postgresql/standard-use-type.cpp        
2006-11-08 14:01:51.000000000 +0000
+++ soci-2.2.0/src/backends/postgresql/standard-use-type.cpp    2008-05-16 
14:02:51.000000000 +0100
@@ -24,7 +24,7 @@
 #pragma warning(disable:4355 4996)
 #define snprintf _snprintf
 #else
-using std::snprintf;
+using ::snprintf;
 #endif
 
 using namespace SOCI;
diff -urpN soci-2.2.0.old/src/backends/postgresql/vector-use-type.cpp 
soci-2.2.0/src/backends/postgresql/vector-use-type.cpp
--- soci-2.2.0.old/src/backends/postgresql/vector-use-type.cpp  2006-11-08 
14:01:51.000000000 +0000
+++ soci-2.2.0/src/backends/postgresql/vector-use-type.cpp      2008-05-16 
14:22:01.000000000 +0100
@@ -25,7 +25,7 @@
 #pragma warning(disable:4355 4996)
 #define snprintf _snprintf
 #else
-using std::snprintf;
+using ::snprintf;
 #endif
 
 using namespace SOCI;



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

Reply via email to