Re: Can't compile SWI on FreeBSD



On 2006-09-22, 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?

This problem appears with the new time handling primitives. One of the
things I need from the system C-library is:

================================================================
SYNOPSIS
#include <time.h>

void tzset (void);

extern char *tzname[2];
extern long timezone;
extern int daylight;

<snip>

CONFORMING TO
SVID 3, POSIX, 4.3BSD
================================================================

but appearently on FreeBSD timezone() is a function. You get the
above behaviour in MacOSX using #define __DARWIN_UNIX03 1, but I
still do not know how to fix this for FreeBSD. The above is from
the Linux documentation and if the `conforming POSIX' is correct,
I'd assume there is some setting in FreeBSD to get the desired
POSIX behaviour.

B.t.w. the variable timezone gives the number of seconds west of
GMT.

B.t.w. If ou just need a working Prolog, replace the occurence of
timezone in pl-tai.c with the number it should have. Do not move
timezones afterwards :-)

If anyone knows the proper way to do this, please let me know.

Cheers --- Jan
.



Relevant Pages

  • 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. ... to make that function delcaration disappear and an appropriate timezone variable ...
    (comp.lang.prolog)
  • 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)