|
|||||||||
![]() |
|||||||||
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] probs compiling...
Marcelo J. Iturbe writes: > Hello, > I am having problems compiling cronolog on a FreeBSD system. > I am running FreeBSD 3.3 and when I try to compile cronolog I get the > following error. > > Making all in src > gcc -DPACKAGE=\"cronolog\" -DVERSION=\"1.6.1\" -DSTDC_HEADERS=1 > -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 > -DHAVE_UNISTD_H=1 -DHAVE_STRFTIME=1 -DHAVE_VPRINTF=1 -DHAVE_MKDIR=1 > -DHAVE_MKTIME=1 -DHAVE_PUTENV=1 -DHAVE_STRPTIME=1 -DHAVE_LOCALTIME_R=1 -I. > -I. -I../lib -g -O2 -c cronoutils.c > cronoutils.c:74: `timezone' redeclared as different kind of symbol > /usr/include/time.h:144: previous declaration of `timezone' > *** Error code 1 > The simple workaround is to comment out line 74 of cronoutils.c. I have had this reported a couple of times and it seems that some systems (including Linux) do not declare "timezone" whereas others do. I will work out how to detect the difference and enclose the declaration in cronoutils.c in #ifdef/#endif in the next version (which will probably not be out before mid-July). Andrew -- Andrew Ford, Director Ford & Mason Ltd +44 1531 829900 (tel) A.Ford@xxxxxxxxxxxxxxxx South Wing, Compton House +44 1531 829901 (fax) http://www.ford-mason.co.uk Compton Green, Redmarley +44 385 258278 (mobile) http://www.refcards.com Gloucester, GL19 3JB, UK
|