Compiling 1.5.97 for FreeBSD

Matthew Condell mcondell@bbn.com
29 May 2001 16:47:44 -0000


> Fixes (or at least workarounds) for the problems you have described
> have been added to latest CVS.  Could you you possibly check to 
> see whether it now compiles for you?

It's a bit better...
Still haveing problems with date.c:

cc -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -I/usr/local/include -I/usr/X11R6/include -O -pipe -I/usr/X11R6/include -Wall -Wunused -Wall -Wno-unused -Werror-implicit-function-declaration -I/usr/local/include/glib12 -I/usr/local/include/gnome-xml -I/usr/local/include -Wp,-MD,.deps/date.pp -c date.c  -fPIC -DPIC -o .libs/date.lo
date.c: In function `scanDate':
date.c:351: implicit declaration of function `nl_langinfo'
date.c:351: `D_FMT' undeclared (first use in this function)
date.c:351: (Each undeclared identifier is reported only once
date.c:351: for each function it appears in.)
date.c:351: warning: passing arg 2 of `strptime' makes pointer from integer without a cast
date.c: In function `dateSeparator':
date.c:425: `D_FMT' undeclared (first use in this function)
date.c:425: warning: passing arg 3 of `strftime' makes pointer from integer without a cast
date.c: In function `gnc_iso8601_to_timespec':
date.c:507: invalid operands to binary /
date.c:509: invalid operands to binary /
date.c: In function `gnc_timespec_to_iso8601_buff':
date.c:546: invalid operands to binary /
date.c:547: invalid operands to binary /
date.c:538: warning: `tz_hour' might be used uninitialized in this function
date.c:538: warning: `tz_min' might be used uninitialized in this function
gmake[4]: *** [date.lo] Error 1
gmake[4]: Leaving directory `/usr/home/mcondell/gnucash/gnucash/src/engine'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/home/mcondell/gnucash/gnucash/src/engine'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/home/mcondell/gnucash/gnucash/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/home/mcondell/gnucash/gnucash'
gmake: *** [all-recursive-am] Error 2
*** Error code 2


The nl_langinfo and D_FMT problems seem to relate to the langinfo.h
header not being accessible.

the invalid operands error seems to have to do with the 'timezone' variable
used.  A quick look around and I can't find where it is defined. 

Thanks,
Matt