Problems building with --enable-ofx

Benoit Grégoire bock@step.polymtl.ca
Wed, 18 Dec 2002 18:05:54 -0500


On December 18, 2002 05:21 pm, Nigel Titley wrote:
> 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?

>From your output, I am 90% sure that either your version of libofx is too old, 
or that you have remnants of an older version of libofx.

If you already have libofx 0.6.2, remove libofx* form /usr/lib and 
/usr/local/lib.

If you don't, make uninstall your current version (very important) and upgrade 
to 0.6.2. 
-- 
Benoit Grégoire
http://step.polymtl.ca/~bock/