Re: Can't compile SWI on FreeBSD
- From: Jan Wielemaker <jan@xxxxxxxxxxxxxxxxxxx>
- Date: 23 Sep 2006 08:10:31 GMT
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
.
- Follow-Ups:
- Re: Can't compile SWI on FreeBSD
- From: Darren Bane
- 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: Re: Can't compile SWI on FreeBSD
- Next by Date: Re: Convert words to numbers?
- Previous by thread: Re: Can't compile SWI on FreeBSD
- Next by thread: Re: Can't compile SWI on FreeBSD
- Index(es):
Relevant Pages
|