Re: Can't compile SWI on FreeBSD
- From: russell kym horsell <kym@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 27 Sep 2006 05:10:37 +0000 (UTC)
Mike Goodrich <goodrich_ms@xxxxxxxxx> wrote:
version 5.6.20
Is griping about conflicting definitions of the 'timezone' variable. Using
gcc version 3.4.2
Anyone seen this one?
Jan, did I miss a setting particular to FreeBSD somewhere?
OK. I've now built up 5.4.7 and 5.6.x (can't remember patch level) swipl through
the standard ports builds for freebsd 5.4 and 6.0, and also "by hand"
outside the ports environment.
I can see no problem as above either in the base prolog or any of the packages
that I see built (e.g. cpp and xpce; and on some platforms jpl).
The only problems I *do* see are related to "make" appearing inside
../Makefile.in rather than '$(MAKE)' and someone using sys/malloc.h
rather than just malloc.h or even stdlib.h (at least 1 version
of html.c tests for all under ifndef, but ends up choosing the
"wrong" one under FreeBSD and OpenBSD).
There also seem to be one heck of a lot of "error:" messages in the latter
parts of xpce about things failing to import/define. The xpce-client
fails to build (?) but other related xpce things end up on /usr/local/lib/pl-XXX.
While it certainly is the case that "timezone" is a function and not
a variable in fbsd/obsd time.h (and there doesn't seem to be a clean way
to make that function delcaration disappear and an appropriate timezone variable
appear), unless the prob is *only* in 5.6.20 it seems the configure and/or
std patches that come with the ports swi-pl (admittedly this lags behind the
"current" swipl by a league or so) work OK. Doing it by hand requires some
OTHER fixes, but nothing to do with timezone.
In the code I did look at there were some test for tm_gmtoff existing,
and that was about all.
If Jan W wants to see the gory details, I can send the 8 build logs
(2 version of pl, 2 versions of obsd, 2 version of fbsd) and the system
"time" hdrs from all the platforms. I normally don't like to jam MB down
people's mail slots without an invite and an idea it wont go to /dev/null
immediatement.
.
- Follow-Ups:
- Re: Can't compile SWI on FreeBSD
- From: Jan Wielemaker
- Re: Can't compile SWI on FreeBSD
- References:
- Can't compile SWI on FreeBSD
- From: Mike Goodrich
- Can't compile SWI on FreeBSD
- Prev by Date: Sicstus Prologbeans
- Next by Date: Re: Prolog programming job?
- Previous by thread: Re: Can't compile SWI on FreeBSD
- Next by thread: Re: Can't compile SWI on FreeBSD
- Index(es):
Relevant Pages
|
|