time() and localtime() are both defined in time.h. If a function isn't
prototyped, the C compiler assumes it returns an int. The localtime()
function returns "struct tm *", so when this is dereferenced via the "->"
operator (which I'm assuming it does), you have the:
   System.c:418: invalid type argument of `->'
error message.

I'd try checking that libraries/clib/native/System.c has something like

#include <time.h>

near the top. If not, try adding and recompiling.

Cheers,

Paul.

On Wed, 12 Sep 2001, Gavin McCord wrote:
> I'm having problems trying to compile kaffe-1.0.6, on my Slack setup
> (2.2.19 kernel, gcc-2.95.3., glibc 2.2.2) I get the following error:
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I../../../config -I../../../include -DKVER=\"1.0.6\" 
>-I/usr/local/src/kaffe-1.0.6/./kaffe/kaffevm 
>-I/usr/local/src/kaffe-1.0.6/./kaffe/kaffevm/systems/unix-jthreads -I../../../config 
>-I../../../include -I/usr/local/include -g
> -O2 -Wall -Wstrict-prototypes -c System.c -Wp,-MD,.deps/System.TPlo  -fPIC -DPIC -o 
>System.lo
> System.c: In function `java_lang_System_initProperties':
> System.c:415: warning: implicit declaration of function `time'
> System.c:418: warning: implicit declaration of function `localtime'
> System.c:418: invalid type argument of `->'
> make[3]: *** [System.lo] Error 1
> make[3]: Leaving directory `/usr/local/src/kaffe-1.0.6/libraries/clib/native'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/usr/local/src/kaffe-1.0.6/libraries/clib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/src/kaffe-1.0.6/libraries'
> make: *** [all-recursive] Error 1
> 
> 
> Any ideas?
> -- 
> gav
> --------------------------------------------------------------------
> http://www.lug.org.uk                   http://www.linuxportal.co.uk
> http://www.linuxjob.co.uk               http://www.linuxshop.co.uk
> --------------------------------------------------------------------
> 

------------------------------------------------------------------------------
Paul Millar                            yo-yo, n. :
Particle Physics Theory Group              Something that is occasionally
Department of Physics and Astronomy        up but normally down.
University of Glasgow,                     (see also Computer)
Glasgow G12 8QQ,                                       [EMAIL PROTECTED]
Scotland                                               +44 (0)141 330 4717
------------------------------------------------------------------------------

--------------------------------------------------------------------
http://www.lug.org.uk                   http://www.linuxportal.co.uk
http://www.linuxjob.co.uk               http://www.linuxshop.co.uk
--------------------------------------------------------------------

Reply via email to