1
22005-01-08
3
4If you are have a problem building on OpenBSD and see output like this
5while running configure:
6
7checking curses.h presence... yes
8configure: WARNING: curses.h: present but cannot be compiled
9configure: WARNING: curses.h: check for missing prerequisite headers?
10configure: WARNING: curses.h: see the Autoconf documentation
11configure: WARNING: curses.h: section "Present But Cannot Be Compiled"
12configure: WARNING: curses.h: proceeding with the preprocessor's result
13configure: WARNING: curses.h: in the future, the compiler will take precedence
14
15there is likely a problem that will prevent building python.
16If you see the messages above and are able to completely build python,
17please tell python-dev@python.org indicating your version of OpenBSD
18and any other relevant system configuration.
19
20The build error that occurs while making may look something like this:
21
22    /usr/include/sys/event.h:53: error: syntax error before "u_int"
23    /usr/include/sys/event.h:55: error: syntax error before "u_short"
24
25To fix this problem, you will probably need update Python's configure
26script to disable certain options.  Search for a line that looks like:
27
28    OpenBSD/2.* | OpenBSD/3.@<:@012345678@:>@)
29
30If your version is not in that list, e.g., 3.9, add the version
31number.  In this case, you would just need to add a 9 after the 8.
32If you modify configure.ac, you will need to regenerate configure
33with autoconf.
34
35If your version is already in the list, this is not a known problem.
36Please submit a bug report here:
37
38    http://sourceforge.net/tracker/?group_id=5470&atid=105470
39