Complete.Org: Mailing Lists: Archives: freeciv-dev: October 1998:
[Freeciv-Dev] compile failure of civserver.o (only), CLOCKS_PER_SEC unde
Home

[Freeciv-Dev] compile failure of civserver.o (only), CLOCKS_PER_SEC unde

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] compile failure of civserver.o (only), CLOCKS_PER_SEC undeclared
From: Peter Magnusson <petmag-8@xxxxxxxxxxxxxxx>
Date: Wed, 28 Oct 1998 21:23:54 +0100

Well, the subject says it all I suppose...

Everything goes fine until the last step when compiling FreeCiv, - the
server. GCC claims that your clocks_per_sec is undeclared, is that
easily fixed? 

Does it help if I ... er ... just declare it like an int or something?
Is there a fix available soon (like tomorrow? wanna play your great
game!) or is there an older version where this problem doesn't occur?

The machine trying to compile is running SunOS Release 4.1.4 with GNU
project C and C++ Compiler (v2.7)

The output from make is appended below...

gcc -DPACKAGE=\"freeciv\" -DVERSION=\"1.7.1\" -DHAVE_LIBX11=1
-DHAVE_LIBXEXT=1 -DHAVE_LIBICE=1 -DHAVE_LIBSM=1 -DHAVE_LIBXT=1
-DHAVE_LIBXMU=1 -DHAVE_LIBXAW=1 -DHAVE_LIBXPM=1 -DRETSIGTYPE=void
-DHAVE_VPRINTF=1 -DHAVE_GETHOSTNAME=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1
-DHAVE_STRERROR=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1
-DHAVE_X11_XPM_H=1 -DTIME_WITH_SYS_TIME=1  -I. -I. -I ./../common -I
./../ai  -g -O2  -I/usr/local/X11R6/include -c civserver.c
civserver.c: In function `main':
civserver.c:245: `CLOCKS_PER_SEC' undeclared (first use this function)
civserver.c:245: (Each undeclared identifier is reported only once
civserver.c:245: for each function it appears in.)
*** Error code 1
make: Fatal error: Command failed for target `civserver.o'
Exit 1


//Peter


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