Hi Simon,

thank you for your explanations. I worked out a patch file for the official 
libofx-0.9.1 file pointed to by the BLFS book.
With this patch now libofx-0.9.1 builds also under gcc-4.3.
The patch bases on the Debian files published under 
        https://launchpad.net/debian/squeeze/+source/libofx/1:0.9.0-3
I modified only the Debian specific issues.
Would you include it in the BLFS-Book ? Or what is the right way ?
Regards,
Edgar

-- 
-------------------------
Dr.-Ing. Edgar Alwers
Weinheim
diff -rBau libofx-0.9.1/lib/ofx_container_transaction.cpp libofx-0.9.1-3/lib/ofx_container_transaction.cpp
--- libofx-0.9.1/lib/ofx_container_transaction.cpp	2007-11-10 00:13:21.000000000 +0100
+++ libofx-0.9.1-3/lib/ofx_container_transaction.cpp	2009-04-20 18:18:56.070188660 +0200
@@ -21,6 +21,7 @@
 #include <config.h>
 #endif
 
+#include <cstdlib>
 #include <string>
 #include "messages.hh"
 #include "libofx.h"
diff -rBau libofx-0.9.1/lib/ofx_request.cpp libofx-0.9.1-3/lib/ofx_request.cpp
--- libofx-0.9.1/lib/ofx_request.cpp	2007-10-28 04:01:38.000000000 +0100
+++ libofx-0.9.1-3/lib/ofx_request.cpp	2009-04-20 18:20:12.800595895 +0200
@@ -20,7 +20,7 @@
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
-
+#include <cstring>
 #include <string>
 #include "messages.hh"
 #include "libofx.h"
diff -rBau libofx-0.9.1/lib/ofx_request_accountinfo.cpp libofx-0.9.1-3/lib/ofx_request_accountinfo.cpp
--- libofx-0.9.1/lib/ofx_request_accountinfo.cpp	2007-10-28 04:01:38.000000000 +0100
+++ libofx-0.9.1-3/lib/ofx_request_accountinfo.cpp	2009-04-20 18:21:32.591099433 +0200
@@ -21,6 +21,7 @@
 #include <config.h>
 #endif
 
+#include <cstdlib>
 #include <string>
 #include "libofx.h"
 #include "ofx_request_accountinfo.hh"
diff -rBau libofx-0.9.1/lib/ofx_request_statement.cpp libofx-0.9.1-3/lib/ofx_request_statement.cpp
--- libofx-0.9.1/lib/ofx_request_statement.cpp	2007-10-28 04:01:38.000000000 +0100
+++ libofx-0.9.1-3/lib/ofx_request_statement.cpp	2009-04-20 18:22:40.077217073 +0200
@@ -21,6 +21,7 @@
 #include <config.h>
 #endif
 
+#include <cstdlib>
 #include <string>
 #include "libofx.h"
 #include "ofx_utilities.hh"
diff -rBau libofx-0.9.1/lib/ofx_utilities.cpp libofx-0.9.1-3/lib/ofx_utilities.cpp
--- libofx-0.9.1/lib/ofx_utilities.cpp	2007-10-27 14:15:58.000000000 +0200
+++ libofx-0.9.1-3/lib/ofx_utilities.cpp	2009-04-20 18:13:34.252090962 +0200
@@ -16,12 +16,14 @@
  *                                                                         *
  ***************************************************************************/
 #include <config.h>
+#include <cstdlib>
 #include <iostream>
 #include <assert.h>
 
 #include "ParserEventGeneratorKit.h"
 #include "SGMLApplication.h"
 #include <time.h>
+#include <ctime>
 #include <string>
 #include <locale.h>
 #include "messages.hh"
diff -rBau libofx-0.9.1/ofxconnect/ofxconnect.cpp libofx-0.9.1-3/ofxconnect/ofxconnect.cpp
--- libofx-0.9.1/ofxconnect/ofxconnect.cpp	2007-01-09 09:04:37.000000000 +0100
+++ libofx-0.9.1-3/ofxconnect/ofxconnect.cpp	2009-04-20 18:27:33.930436891 +0200
@@ -31,6 +31,7 @@
 #include <iostream>
 #include <fstream>
 #include <string>
+#include <cstring>
 #include "libofx.h"
 #include <config.h>		/* Include config constants, e.g., VERSION TF */
 #include <stdio.h>
diff -rBau libofx-0.9.1/ofxconnect/ofxpartner.cpp libofx-0.9.1-3/ofxconnect/ofxpartner.cpp
--- libofx-0.9.1/ofxconnect/ofxpartner.cpp	2006-03-26 06:49:54.000000000 +0200
+++ libofx-0.9.1-3/ofxconnect/ofxpartner.cpp	2009-04-20 18:26:21.916177377 +0200
@@ -34,7 +34,9 @@
 
 #include <iostream>
 #include <string>
+#include <cstring>
 #include <vector>
+#include <algorithm>
 
 using std::string;
 using std::vector;
diff -rBau libofx-0.9.1/ofxdump/ofxdump.cpp libofx-0.9.1-3/ofxdump/ofxdump.cpp
--- libofx-0.9.1/ofxdump/ofxdump.cpp	2006-08-02 06:19:22.000000000 +0200
+++ libofx-0.9.1-3/ofxdump/ofxdump.cpp	2009-04-20 18:24:21.076385870 +0200
@@ -27,6 +27,8 @@
  *   (at your option) any later version.                                   *
  *                                                                         *
  ***************************************************************************/
+#include <cstring>
+#include <cstdlib>
 #include <iostream>
 #include <iomanip>
 #include <string>
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to