Hello,

I'm new to cherokee. It seems a very interesting project.
I was trying to run it on a powerpc running macosx 10.4.2 and found this bug in logger_ncsa.c


/* Build the log string
         */
        cherokee_buffer_add_va (buf,
[....]
(CST_OFFSET) cnt->range_end - cnt->range_start,

at this point it crashes because cnt->range_start which is a off_t promotes the type to a 8 byte value
and disaligns the stack.

it should be (CST_OFFSET) (cnt->range_end - cnt->range_start)
because on this platform _FILE_OFFSET_BITS is not 64

I assume the problem is somwhere in autoconf, however doing the cast correcty at least prevents the crash, otherwise
it's useless.

has someone managed to get it work on a mac?

After that I got some problems with kqueue and then I got a timeout in my free time.

regards,
Marko Mikulicic
_______________________________________________
Cherokee mailing list
[email protected]
http://www.alobbs.com/cgi-bin/mailman/listinfo/cherokee

Reply via email to