#2 timezone undeclared (x11)

open
nobody
None
5
2003-02-06
2003-02-06
Norman Lund
No

I'm having issues compiling the x11 version of
carworld. I'm using gcc 2.95.3 on Gentoo, and when I
type gmake it says:

g++ -g -Wall -ansi -I/usr/X11R6/include
-I/usr/include/X11 -D USE_POSIX_SOCKETS -D USE_LIN_JOY
-oobj/X11Main.o -c src/x11/X11Main.cpp
src/x11/X11Main.cpp: In method `int
HAppData::ElapsedTime()':
src/x11/X11Main.cpp:139: `timezone' undeclared (first
use this function)
src/x11/X11Main.cpp:139: (Each undeclared identifier is
reported only once
src/x11/X11Main.cpp:139: for each function it appears in.)
src/x11/X11Main.cpp:139: parse error before `;'
src/x11/X11Main.cpp:143: `tz' undeclared (first use
this function)
gmake[1]: *** [X11Main.o] Error 1

I've looked at the ./src/x11/X11Main.cpp file, and the
only thing it is doing is declaring the timezone struct
like so:
timezone tz;

I've gone as far as trying to add a struct and a const
struct in front of it, but no good.

I've grepped the /usr/include/sys/time.h file which is
included at the top of ./src/x11/X11Main.cpp, and it says:
typedef struct timezone *__restrict __timezone_ptr_t;

so I know the timezone structure is existent.

What else can I do to check this out? I'm confused.

Discussion


Log in to post a comment.