Build on 64-bit Ubuntu Karmic Koala 9.10

Mister Ribble <[email protected]> Sat, 27 Feb 2010 12:33:07 -0700
Newsgroups gmane.comp.finance.libofx.devel
Message-ID <1267299187.3127.1.camel@Dagon>
--=-KTf9+Hr3nh16wAnjtyfz
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit

I recently had to get libofx built on ubuntu karmic koala. I had a
number of errors in different source files related to missing header
#includes. I fixed them and got it building - it was mostly related to
undefined C functions. I've attached the patch - hopefully it'll help
someone in the future.

-Eli Ribble

--=-KTf9+Hr3nh16wAnjtyfz
Content-Disposition: attachment; filename="libofx.patch"
Content-Type: text/x-patch; name="libofx.patch"; charset="UTF-8"
Content-Transfer-Encoding: 7bit

diff -rupN libofx-0.9.1/lib/ofx_container_transaction.cpp libofx/lib/ofx_container_transaction.cpp
--- libofx-0.9.1/lib/ofx_container_transaction.cpp	2007-11-09 16:13:21.000000000 -0700
+++ libofx/lib/ofx_container_transaction.cpp	2010-02-27 12:14:58.523671219 -0700
@@ -22,6 +22,7 @@
 #endif
 
 #include <string>
+#include <cstdlib>
 #include "messages.hh"
 #include "libofx.h"
 #include "ofx_containers.hh"
diff -rupN libofx-0.9.1/lib/ofx_request_accountinfo.cpp libofx/lib/ofx_request_accountinfo.cpp
--- libofx-0.9.1/lib/ofx_request_accountinfo.cpp	2007-10-27 21:01:38.000000000 -0600
+++ libofx/lib/ofx_request_accountinfo.cpp	2010-02-27 12:16:40.022035109 -0700
@@ -22,6 +22,7 @@
 #endif
 
 #include <string>
+#include <cstdlib>
 #include "libofx.h"
 #include "ofx_request_accountinfo.hh"
 
diff -rupN libofx-0.9.1/lib/ofx_request.cpp libofx/lib/ofx_request.cpp
--- libofx-0.9.1/lib/ofx_request.cpp	2007-10-27 21:01:38.000000000 -0600
+++ libofx/lib/ofx_request.cpp	2010-02-27 12:16:23.682530718 -0700
@@ -22,6 +22,7 @@
 #endif
 
 #include <string>
+#include <cstring>
 #include "messages.hh"
 #include "libofx.h"
 #include "ofx_request.hh"
diff -rupN libofx-0.9.1/lib/ofx_request_statement.cpp libofx/lib/ofx_request_statement.cpp
--- libofx-0.9.1/lib/ofx_request_statement.cpp	2007-10-27 21:01:38.000000000 -0600
+++ libofx/lib/ofx_request_statement.cpp	2010-02-27 12:17:57.932772229 -0700
@@ -22,6 +22,7 @@
 #endif
 
 #include <string>
+#include <cstdlib>
 #include "libofx.h"
 #include "ofx_utilities.hh"
 #include "ofx_request_statement.hh"
diff -rupN libofx-0.9.1/lib/ofx_utilities.cpp libofx/lib/ofx_utilities.cpp
--- libofx-0.9.1/lib/ofx_utilities.cpp	2007-10-27 06:15:58.000000000 -0600
+++ libofx/lib/ofx_utilities.cpp	2010-02-27 12:14:23.513015741 -0700
@@ -21,7 +21,8 @@
 
 #include "ParserEventGeneratorKit.h"
 #include "SGMLApplication.h"
-#include <time.h>
+#include <ctime>
+#include <cstdlib>
 #include <string>
 #include <locale.h>
 #include "messages.hh"
diff -rupN libofx-0.9.1/ofxdump/ofxdump.cpp libofx/ofxdump/ofxdump.cpp
--- libofx-0.9.1/ofxdump/ofxdump.cpp	2006-08-01 22:19:22.000000000 -0600
+++ libofx/ofxdump/ofxdump.cpp	2010-02-27 12:19:36.702017554 -0700
@@ -30,6 +30,8 @@
 #include <iostream>
 #include <iomanip>
 #include <string>
+#include <cstring>
+#include <cstdlib>
 #include "libofx.h"
 #include <stdio.h>		/* for printf() */
 #include <config.h>		/* Include config constants, e.g., VERSION TF */

--=-KTf9+Hr3nh16wAnjtyfz
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--=-KTf9+Hr3nh16wAnjtyfz
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Libofx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libofx-devel

--=-KTf9+Hr3nh16wAnjtyfz--