bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] more build problem


From: Øystein Johansen
Subject: Re: [Bug-gnubg] more build problem
Date: Wed, 28 Mar 2007 20:42:52 +0200
User-agent: Thunderbird 1.5.0.10 (X11/20070306)

There was a problem in dice.c

dice.c: In function ‘RNGSystemSeed’:
dice.c:789: error: storage size of ‘tz’ isn’t known

    if( !f ) {
#if HAVE_GETTIMEOFDAY
        struct timeval tv;
        struct timezone tz;

        if( !gettimeofday( &tv, &tz ) )
            n = tv.tv_sec ^ tv.tv_usec;
        else
#endif

..... I solved this the easy way, by modifying to:

    if( !f ) {
#if 0
        struct timeval tv;
        struct timezone tz;

        if( !gettimeofday( &tv, &tz ) )
            n = tv.tv_sec ^ tv.tv_usec;
        else
#endif

Then there was a link problem:

external.o: In function `ExtParse':
/home/oystein/gnubg/external.c:367: undefined reference to `ExtStartParse'
external_y.o: In function `exterror':
/home/oystein/gnubg/external_y.y:137: undefined reference to `exttext'
/home/oystein/gnubg/external_y.y:139: undefined reference to `exttext'
external_y.o: In function `extparse':
/home/oystein/gnubg/external_y.c:1326: undefined reference to `extlex'

I'm using bison (GNU Bison) 2.3 and lex 2.5.33

-Øystein





reply via email to

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