[Libevent-users] gcc complains about TAILQ_ENTRY
W.C.A. Wijngaards
wouter at nlnetlabs.nl
Fri Aug 17 04:37:26 EDT 2007
Hi Ralph,
With gcc 4.1.2 on linux, I get no error messages at all. This is for a
compile of the libevent trunk.
Perhaps the error message is useful after all - and may I suggest
looking at the ./configure detection output for since it tries to detect
sys/queue.h for that TAILQ stuff in there.
Best regards,
Wouter
Ralph Moritz wrote:
> Hi,
>
> when I try to compile libevent, gcc exits with an error. Sorry I don't
> remember the exact error message, but it occurs in evhttp:109, which
> is:
>
> TAILQ_ENTRY(evhttp_request) next;
>
> I have to replace this with:
>
> struct {
> struct evhttp_request *tqe_next; /* next element */
> struct evhttp_request **tqe_prev; /* address of previous next element */
> } next;
>
> to get it to compile. It's odd because that's what the macro should
> expand to anyway. I'm using gcc 4.1 on Linux.
>
>
More information about the Libevent-users
mailing list