Re: Can't compile SWI on FreeBSD



On 2006-09-26, <kym@xxxxxxxxxxxxxxxx> <kym@xxxxxxxxxxxxxxxx> wrote:
Jan Wielemaker <jan@xxxxxxxxxxxxxxxxxxx> wrote:
Considering the variable timezone is covered by various standards I
[...]
assume there is a way around in FreeBSD to get compatibility. I do not
have a FreeBSD system though.

OK. My mistook.

I did a quick scan yesterday (details not near me now) of some of the auto
builds, and a not-bleeding-edge but "recent" version -- I think it was
swipl-5.4.7 -- seemed to build fine under fbsd6.{0,1}
with none of my hacking.

But I'll check the details and get back to you.

I've found various reports of similar problems with other software.
Bottom line appears to be that timezone variable is simply lacking and
one should use the tm_gmtoff of struct tm. With help of provided patches
and work-arounds in other systems I think I managed to get a working
version. At least it compiles on both Linux and MacOS 10.4. Linux
provides both interfaces and they give consistent results. Patches
are on the SWI-Prolog CVS server.

Cheers --- Jan
.



Relevant Pages

  • Re: Cross-compiling/porting to linux
    ... > Michael> As there is already a runtime compatibility established, ... > Michael> FreeBSD binary or library and outputs a linux one? ... > If Linux supported the FreeBSD system call interface, ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Cross-compiling/porting to linux
    ... Michael> FreeBSD binary or library and outputs a linux one? ... If Linux supported the FreeBSD system call interface, ... libraries, just as we do with Linux binaries on FreeBSD today (or ...
    (comp.unix.bsd.freebsd.misc)
  • Viruses on Freebsd?
    ... written to run on a freebsd system. ... I know Windows has gobs of them, mac ... but most are dead and linux has had a few that quickly ...
    (freebsd-questions)
  • USB flash memory mounting
    ... How do you mount a USB flash memory stick into a FreeBSD system. ... I know how to do this in Linux, but the Linux way doesn't seem to be the BSD ... Changed filetype to vfat and that didn't work either like it does in Linux. ...
    (freebsd-newbies)