Problems building with --enable-ofx

Nigel Titley nigel@titley.com
18 Dec 2002 22:21:39 +0000


I'm trying hard to build with OFX support but failing miserably. I've
built OpenSP 1.5 and installed it in /usr/lib, likewise libofx (v3.0)

ofxdump works quite happily on a sample OFX file from my bank.

However, when I do a build from the CVS tree, with the following
arguments

./autogen.sh --enable-opt-style-install --prefix=/opt/gnucash
--enable-ofx

the ./configure phase fails with

checking for libofx/libofx.h... yes
checking for libofx... configure: error: cannot find libofx library,
needed for OFX support.

The config.log file gives

configure:10951: checking for libofx
configure:10970: gcc -o conftest -g -O2    conftest.c -lm   -lofx
-lstdc++ 1>&5
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libofx.so: undefined
reference to `ofx_proc_statement'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libofx.so: undefined
reference to `ofx_proc_account'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libofx.so: undefined
reference to `ofx_proc_status'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libofx.so: undefined
reference to `ofx_proc_transaction'
collect2: ld returned 1 exit status
configure: failed program was:
#line 10955 "configure"
#include "confdefs.h"

       	void ofx_proc_security_cb(void) {}
       	void ofx_proc_transaction_cb(void) {}
       	void ofx_proc_statement_cb(void) {}
       	void ofx_proc_status_cb(void) {}
       	void ofx_proc_account_cb(void) {}
	
int main() {

	ofx_proc_file();
	
; return 0; }

This is CVS, Redhat 7.3. Without the --enable-ofx it builds and works
like a charm.

Anybody got any suggestions?

Nigel