Re: problems compiling libofx

Benoit Grégoire <[email protected]>
Newsgroups gmane.comp.finance.libofx.devel
Message-ID <[email protected]>
On May 12, 2003 06:32 pm, Peter Gibson wrote:
> Hi,
> I seem to have run into a roadblock trying to make libofx.  I am running
> Linux under SuSE 8.0 and after weeks of frustrated tinkering, was able to
> get Gnucash 1.8.2 up and running.  I want to add OFX support, hence my
> current journey.
>
> The sources (0.6.4) configured fine, however while executing make, I get
> the following result:
>
> make  all-recursive
> make[1]: Entering directory `/home/pegibson/tmp/gctmp/libofx-0.6.4'
> Making all in inc
> make[2]: Entering directory `/home/pegibson/tmp/gctmp/libofx-0.6.4/inc'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/home/pegibson/tmp/gctmp/libofx-0.6.4/inc'
> Making all in dtd
> make[2]: Entering directory `/home/pegibson/tmp/gctmp/libofx-0.6.4/dtd'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/home/pegibson/tmp/gctmp/libofx-0.6.4/dtd'
> Making all in lib
> make[2]: Entering directory `/home/pegibson/tmp/gctmp/libofx-0.6.4/lib'
> source='ofx_utilities.cpp' object='ofx_utilities.lo' libtool=yes \
> depfile='.deps/ofx_utilities.Plo' tmpdepfile='.deps/ofx_utilities.TPlo' \
> depmode=gcc /bin/sh ../config/depcomp \
> /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I..  -I.
> -I../inc -I/usr/include/OpenSP
> -DMAKEFILE_DTD_PATH=\"/usr/share/libofx/dtd/\" -g -O2 -c -o
> ofx_utilities.lo `test -f 'ofx_utilities.cpp' || echo
> './'`ofx_utilities.cpp
> rm -f .libs/ofx_utilities.lo
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../inc -I/usr/include/OpenSP
> -DMAKEFILE_DTD_PATH=\"/usr/share/libofx/dtd/\" -g -O2 -c ofx_utilities.cpp
> -Wp,-MD,.deps/ofx_utilities.TPlo  -fPIC -DPIC -o .libs/ofx_utilities.lo
> ofx_utilities.cpp: In function `double
> ofxamount_to_double(basic_string<char,string_char_traits<char>,__default_al
>loc_template<true,0>
>
> >)':
>
> ofx_utilities.cpp:151: implicit declaration of function `int
> localeconv(...)' ofx_utilities.cpp:151: base operand of `->' is not a
> pointer
> make[2]: *** [ofx_utilities.lo] Error 1
> make[2]: Leaving directory `/home/pegibson/tmp/gctmp/libofx-0.6.4/lib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/pegibson/tmp/gctmp/libofx-0.6.4'
> make: *** [all] Error 2
>
> any suggestions?
> Thanks in advance for your help.

You need to add a line "#include <locale.h>" (without quotes) to the top
of ofx_utilities.cpp in the lib directory when using gcc 2.

It is fixed in CVS, but I didn't release a new libofx only for this simple 
fix.  Sorry about that. 
-- 
Benoit Grégoire
http://step.polymtl.ca/~bock/


-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.