Building 2.4.2 on OpenBSD 3.8

"Martin v. Löwis" martin at v.loewis.de
Sat Oct 29 13:08:07 EDT 2005


Dan M wrote:
> /usr/include/sys/event.h:53: error: syntax error before "u_int"
> /usr/include/sys/event.h:55: error: syntax error before "u_short"
> *** Error code 1
> 
> Stop in /usr/local/src/Python-2.4.2.
> 
> immediately upon running "make". I took at look at event.h to see if I
> could find and fix the problem, but the error isn't immediately apparent
> to me.

In that case, it would help if you would report what line 53 of event.h
precisely is. Typically, if it says "syntax error before", it means
"immediately, right away before", or "the error actually is *in*
u_int" (the latter indicating that u_int is not defined at that point).

Generating a preprocessor output then helps, seeing whether something
got #define'd in some strange sense, or whether u_int was defined before
use.

Most likely, it is the old BSD bug of not supporting POSIX correctly.
Somebody should really work with the system developers to get this
resolved; it's been several years now that the bug is present.

Regards,
Martin



More information about the Python-list mailing list