Compiling 1.5.97 for FreeBSD
Robert Graham Merkel
rgmerk@mira.net
Wed, 30 May 2001 00:08:43 +1000
On Tue, 29 May 2001 22:57:41 Matthew Condell wrote:
> Hi,
>
> I've just started trying to get 1.5.97 compiled on FreeBSD 4.3.
> Haven't had a chance to try out earlier releases in the 1.5.x
> series.
>
> I've had a couple of hangups so far:
>
> 1) in src/engine/Query.c
> #include <sys/types.h>
> needs to come before
> #include <regex.h>
> not after it, since regex.h depends on types in sys/types.h
>
Yes, I think you're correct on that one.
> 2) I don't seem to have langinfo.h (needed at least by
> src/engine/date.c anywhere on my system.
> Which package does that come from?
>
That's part of GNU libc. We use a function defined in it (nl_langinfo)
to find out the format string to be passed to strftime to generate a
date string in a locale-correct way.
If FreeBSD's C library doesn't support this interface (or its equivalent),
we could simply supply a non-localised format string.
GnuCash would lose a little bit of localisation under FreeBSD, but,
hey, at least it would work.
> 3) Does anyone know of a BSD port of guppi? It's not in the ports tree,
> the source doesn't seem to compile out of the box for me and I don't
> currently have the time to make it compile. I'm just compiling
> gnucash
> with the --disable-guppi flag, for now.
>
I don't know, I'm afraid. Hopefully somebody will get it to work, as
guppi's graphs are a major feature of gnucash 1.6.
I'll patch 1) straight away, and a workaround for 2) shouldn't take long
either (mainly just getting the autoconf stuff right). However, if you
can provide us with information about FreeBSD's interface to locale
information, I can put a proper fix, which would be better.
Thanks for your interest.
--
------------------------------------------------------------
Robert Merkel rgmerk@mira.net
Go You Big Red Fire Engine
-- Unknown Audience Member at Adam Hills standup gig
------------------------------------------------------------