Package: libofx
Version: 1:0.8.2-3
Usertags: ftbfs-gcc-4.3
Tags: patch

Your package fails to build with GCC 4.3.  Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.  In GCC 4.3, the C++ header
dependencies have been cleaned up.  The advantage of this is that
programs will compile faster.  The downside is that you actually
need to directly #include everything you use (but you really should
do this anyway, otherwise your program won't work with any compiler
other than GCC).  Some background of this can be found at
http://gcc.gnu.org/PR28080

You can reproduce this problem with gcc-snapshot (20070326-1 or higher)
from unstable.

> Automatic build of libofx_1:0.8.2-3 on coconut0 by sbuild/ia64 0.49
...
>  g++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../inc -I/usr/include/OpenSP 
> -DMAKEFILE_DTD_PATH=\"/usr/share/libofx3/0.8.2/dtd/\" -g -O2 -MT 
> ofx_utilities.lo -MD -MP -MF .deps/ofx_utilities.Tpo -c ofx_utilities.cpp  
> -fPIC -DPIC -o .libs/ofx_utilities.o
> ofx_utilities.cpp: In function 'time_t ofxdate_to_time_t(std::string)':
> ofx_utilities.cpp:111: error: 'atoi' was not declared in this scope
> ofx_utilities.cpp:130: error: 'atof' was not declared in this scope
> ofx_utilities.cpp: In function 'double ofxamount_to_double(std::string)':
> ofx_utilities.cpp:180: error: 'atof' was not declared in this scope
> ofx_utilities.cpp: In function 'std::string strip_whitespace(std::string)':
> ofx_utilities.cpp:191: warning: deprecated conversion from string constant to 
> 'char*'
> ofx_utilities.cpp:192: warning: deprecated conversion from string constant to 
> 'char*'
> make[3]: *** [ofx_utilities.lo] Error 1

--- lib/ofx_utilities.cpp~      2007-04-02 12:42:31.000000000 +0000
+++ lib/ofx_utilities.cpp       2007-04-02 12:42:39.000000000 +0000
@@ -16,6 +16,7 @@
  *                                                                         *
  ***************************************************************************/
 #include <config.h>
+#include <cstdlib>
 #include <iostream>
 #include "ParserEventGeneratorKit.h"
 #include "SGMLApplication.h"
--- lib/ofx_container_transaction.cpp~  2007-04-02 12:43:31.000000000 +0000
+++ lib/ofx_container_transaction.cpp   2007-04-02 12:43:36.000000000 +0000
@@ -21,6 +21,7 @@
 #include <config.h>
 #endif
 
+#include <cstdlib>
 #include <string>
 #include "messages.hh"
 #include "libofx.h"
--- lib/ofx_request_accountinfo.cpp~    2007-04-02 12:45:24.000000000 +0000
+++ lib/ofx_request_accountinfo.cpp     2007-04-02 12:45:30.000000000 +0000
@@ -21,6 +21,7 @@
 #include <config.h>
 #endif
 
+#include <cstdlib>
 #include <string>
 #include "libofx.h"
 #include "ofx_request_accountinfo.hh"
--- lib/ofx_request_statement.cpp~      2007-04-02 12:45:51.000000000 +0000
+++ lib/ofx_request_statement.cpp       2007-04-02 12:45:56.000000000 +0000
@@ -21,6 +21,7 @@
 #include <config.h>
 #endif
 
+#include <cstdlib>
 #include <string>
 #include "libofx.h"
 #include "ofx_utilities.hh"
--- ofxdump/ofxdump.cpp~        2007-04-02 12:48:00.000000000 +0000
+++ ofxdump/ofxdump.cpp 2007-04-02 12:48:06.000000000 +0000
@@ -27,6 +27,7 @@
  *   (at your option) any later version.                                   *
  *                                                                         *
  ***************************************************************************/
+#include <cstdlib>
 #include <iostream>
 #include <iomanip>
 #include <string>
--- ofxconnect/ofxpartner.cpp~  2007-04-02 12:48:34.000000000 +0000
+++ ofxconnect/ofxpartner.cpp   2007-04-02 12:48:42.000000000 +0000
@@ -35,6 +35,7 @@
 #include <iostream>
 #include <string>
 #include <vector>
+#include <algorithm>
 
 using std::string;
 using std::vector;

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