Subject: | Tk-804.027 fails to install under Linux RedHat 2.4.18 |
Tk-804.027 fails to install under Linux RedHat 2.4.18
I tried to install Tk-804.027 for Perl5.8. Make fails with the following error:
...
In file included from tclPlatTime.c:5:
../pTk/tclUnixTime.c: In function `TclpGetSeconds':
../pTk/tclUnixTime.c:92: warning: implicit declaration of function `time'
../pTk/tclUnixTime.c: In function `ThreadSafeGMTime':
../pTk/tclUnixTime.c:398: sizeof applied to an incomplete type
../pTk/tclUnixTime.c:403: warning: implicit declaration of function `gmtime'
../pTk/tclUnixTime.c:403: sizeof applied to an incomplete type
../pTk/tclUnixTime.c: In function `ThreadSafeLocalTime':
../pTk/tclUnixTime.c:438: sizeof applied to an incomplete type
../pTk/tclUnixTime.c:443: warning: implicit declaration of function `localtime'
../pTk/tclUnixTime.c:443: sizeof applied to an incomplete type
make[1]: *** [tclPlatTime.o] Error 1
make[1]: Leaving directory `/user/hpm/pd-sw/Tk-804.027/Event'
make: *** [subdirs] Error 2
***********************************
Including "# include <time.h>" in Tk-804.027/pTk/tclUnixTime.c helped. The installation was successful.