Source: openturns Version: 0.13.1-1 Severity: serious Tags: patch Hi,
openturns FTBFS on armel, mips and mipsel. https://buildd.debian.org/fetch.cgi?pkg=openturns;ver=0.13.1-1;arch=armel;stamp=1249968050 ----- libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../../include -I../../../include -I../../../include -DINSTALL_PATH=\"/usr\" -DDATA_PATH=\"/usr/share\" -DSYSCONFIG_PATH=\"/etc\" -DLIBINSTALL_PATH=\"/usr/lib/openturns\" -I/usr/include/libxml2 -I/usr/include -DOT_DEBUG_LEVEL=3 -DBOOST_SP_USE_PTHREADS -pthread -g -O2 -c XMLToolbox.cxx -fPIC -DPIC -o .libs/libOTCommon_la-XMLToolbox.o XMLToolbox.cxx: In static member function 'static char* OpenTURNS::Base::Common::XML::MakeMessage(const char*, ...)': XMLToolbox.cxx:207: error: 'vsnprintf' is not a member of 'std' make[5]: *** [libOTCommon_la-XMLToolbox.lo] Error 1 make[4]: *** [all-recursive] Error 1 ----- vsnprintf are not C++ functions but C functions. They are not in the namespace "std". I made patch to support SH. Could you apply this patch? Best regards, Nobuhiro -- Nobuhiro Iwamatsu iwamatsu at {nigauri.org / debian.org} GPG ID: 40AD1FA6
--- a/lib/src/Base/Common/XMLToolbox.cxx 2010-01-12 04:26:20.000000000 +0000 +++ b/lib/src/Base/Common/XMLToolbox.cxx 2010-01-12 04:26:36.000000000 +0000 @@ -204,7 +204,7 @@ while (1) { /* Try to print in the allocated space. */ va_start(ap, fmt); - n = std::vsnprintf (p, size, fmt, ap); + n = vsnprintf (p, size, fmt, ap); va_end(ap); /* If that worked, return the string. */ if (n > -1 && n < size)