Re: Can't compile SWI on FreeBSD



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.
.



Relevant Pages

  • Re: PF, FTP problems fixed
    ... [Please fix your systemtime or timezone] ... > somebody know how to make this work on freebsd??? ... > I'd like to solicit some feedback from the community... ...
    (freebsd-current)
  • Re: Cant compile SWI on FreeBSD
    ... Is griping about conflicting definitions of the 'timezone' variable. ... did I miss a setting particular to FreeBSD somewhere? ... outside the ports environment. ... that I see built (e.g. cpp and xpce; and on some platforms jpl). ...
    (comp.lang.prolog)
  • Re: DDoS in FreeBSD 6.2-STABLE And Problen With The Clock
    ... I compile some program and when start it my system blocks and restart ... (tested and on other system 6.2-stable and again this DDoS). ... Please email the FreeBSD security team w/ the program as per: ... This is because the timezone you are using is incorrect. ...
    (freebsd-stable)
  • Re: 2007 Zoneinfo
    ... I'm not sure which locales will adopt the changes and which will ... Having just been through a timezone rule change and followed the fallout ... FreeBSD or not (ie, do I just select "I'm in Texas" and FreeBSD knows ... Since FreeBSD basically imports the timezone files from NIH, ...
    (freebsd-hackers)