[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cvs 1.11.5 compilation bug on IRIX 5.3

From: Georg Schwarz
Subject: cvs 1.11.5 compilation bug on IRIX 5.3
Date: Sun, 16 May 2004 15:52:29 +0200
User-agent: MacSOUP/D-2.6 (Mac OS 8.1)

It appears that during compilation lib/xtime.h is included more than

source='lock.c' object='lock.o' libtool=no  depfile='.deps/lock.Po'
tmpdepfile='.deps/lock.TPo'  depmode=sgi /bin/sh ../depcomp  cc
-DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../diff
-I/usr/local/pkg/include  -O2 -I/usr/local/pkg/include -c `test -f
'lock.c' || echo './'`lock.c
cfe: Error: ../lib/xtime.h, line 41: redeclaration of 'timeb'; previous
declaration at line 41 in file '../lib/xtime.h'
 struct timeb {
cfe: Error: ../lib/xtime.h, line 42: Duplicate member 'time'
     time_t             time;            
 ----------             ^
cfe: Error: ../lib/xtime.h, line 43: Duplicate member 'millitm'
     unsigned short     millitm;         
 ------------------     ^
cfe: Error: ../lib/xtime.h, line 44: Duplicate member 'timezone'
     short              timezone;        
 ---------              ^
cfe: Error: ../lib/xtime.h, line 45: Duplicate member 'dstflag'
     short              dstflag;         
 ---------              ^
*** Error code 1

One fix against this is to enclose lib/xtime.h with something like this:

#ifndef _XTIME_H
#define _XTIME_H
#endif /* _XTIME_H */

Most likely the better idea would be to figure out why it is being
included more than once in the first place.

Platform: SGI IRIX 5.3

If you need any further information, please let me know.


Georg Schwarz    http://home.pages.de/~schwarz/
 geos@epost.de     +49 177 8811442

reply via email to

[Prev in Thread] Current Thread [Next in Thread]