Your build envornment is messed up -- you're compiling against some
old headers or something.
On 7/4/06, Zoran Vasiljevic <zv...@ar...> wrote:
> Hi !
>
> Just checked in my new code for adding
> user callbacks to ns_log and found out
> that the new cache code does not compile :-(
> Anybody knows why? I'm too tired now to look
> into this. If somebody can take care, that
> will be fine.
>
> Cheers,
> Zoran
>
> gcc -pipe -g -Wall -Wno-implicit-int -fno-common -I../include -I"/
> Users/zoran/sf/tcl/generic" -DHAVE_CONFIG_H -c -o cache.o cache.c
> cache.c: In function 'Ns_CacheDestroy':
> cache.c:160: error: invalid use of void expression
> cache.c: At top level:
> cache.c:298: error: conflicting types for 'Ns_CacheWaitCreateEntry'
> ../include/ns.h:630: error: previous declaration of
> 'Ns_CacheWaitCreateEntry' was here
> cache.c: In function 'Ns_CacheSetValueSz':
> cache.c:404: warning: passing argument 4 of 'Ns_CacheSetValueExpires'
> makes integer from pointer without a cast
> cache.c: At top level:
> cache.c:410: error: conflicting types for 'Ns_CacheSetValueExpires'
> ../include/ns.h:654: error: previous declaration of
> 'Ns_CacheSetValueExpires' was here
> cache.c: In function 'Ns_CacheFirstEntry':
> cache.c:566: error: 'struct Tcl_HashSearch' has no member named 'now'
> cache.c:567: error: 'struct Tcl_HashSearch' has no member named
> 'hsearch'
> cache.c:571: error: 'struct Tcl_HashSearch' has no member named 'now'
> cache.c:577: error: 'struct Tcl_HashSearch' has no member named
> 'hsearch'
> cache.c: In function 'Ns_CacheNextEntry':
> cache.c:606: error: 'struct Tcl_HashSearch' has no member named
> 'hsearch'
> cache.c:610: error: 'struct Tcl_HashSearch' has no member named 'now'
> cache.c:616: error: 'struct Tcl_HashSearch' has no member named
> 'hsearch'
> cache.c: At top level:
> cache.c:802: error: conflicting types for 'Ns_CacheStats'
> ../include/ns.h:710: error: previous declaration of 'Ns_CacheStats'
> was here
> make[1]: *** [cache.o] Error 1
> make: *** [all] Error 1
|