Unable to build Python 2.4.1 from source - BSD

This is a discussion on Unable to build Python 2.4.1 from source - BSD ; Has anyone been successful in building python 2.4.1 from source on OpenBSD 3.7? I haven't. When I run configure I get messages like: configure: WARNING: curses.h: present but cannot be compiled configure: WARNING: curses.h: check for missing prerequisite headers? configure: ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Unable to build Python 2.4.1 from source

  1. Unable to build Python 2.4.1 from source

    Has anyone been successful in building python 2.4.1 from source on OpenBSD
    3.7? I haven't.

    When I run configure I get messages like:
    configure: WARNING: curses.h: present but cannot be compiled
    configure: WARNING: curses.h: check for missing prerequisite headers?
    configure: WARNING: curses.h: see the Autoconf documentation
    configure: WARNING: curses.h: section "Present But Cannot Be Compiled"
    configure: WARNING: curses.h: proceeding with the preprocessor's result
    configure: WARNING: curses.h: in the future, the compiler will take precedence
    configure: WARNING: ## --------------------------------- ##
    configure: WARNING: ## Report this to the python lists. ##
    configure: WARNING: ## --------------------------------- ##

    These warnings show up for curses.h, ncurses.h, sysaudioio.h, sys/lock.h,
    and sys/select.h. If I then run "make" I get:

    gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -o Modules/python.o Modules/python.c
    In file included from /usr/include/sys/select.h:38,
    from Include/pyport.h:116,
    from Include/Python.h:55,
    from Modules/python.c:3:
    /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.

    Any ideas on how to get a python version more current than 2.2.3? I really
    want to install Zope, and that requires at least 2.3.5.


  2. Re: Unable to build Python 2.4.1 from source

    Dan M wrote:
    > Has anyone been successful in building python 2.4.1 from source on OpenBSD
    > 3.7? I haven't.
    >
    > When I run configure I get messages like:
    > configure: WARNING: curses.h: present but cannot be compiled
    > configure: WARNING: curses.h: check for missing prerequisite headers?
    > configure: WARNING: curses.h: see the Autoconf documentation
    > configure: WARNING: curses.h: section "Present But Cannot Be Compiled"
    > configure: WARNING: curses.h: proceeding with the preprocessor's result
    > configure: WARNING: curses.h: in the future, the compiler will take precedence
    > configure: WARNING: ## --------------------------------- ##
    > configure: WARNING: ## Report this to the python lists. ##
    > configure: WARNING: ## --------------------------------- ##
    >
    > These warnings show up for curses.h, ncurses.h, sysaudioio.h, sys/lock.h,
    > and sys/select.h. If I then run "make" I get:
    >
    > gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -o Modules/python.o Modules/python.c
    > In file included from /usr/include/sys/select.h:38,
    > from Include/pyport.h:116,
    > from Include/Python.h:55,
    > from Modules/python.c:3:
    > /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.
    >
    > Any ideas on how to get a python version more current than 2.2.3? I really
    > want to install Zope, and that requires at least 2.3.5.


    Why don't you just install the zope package from a nearby mirror?
    It has been compiled for you. Read the pkg_add(1) manual, and if that's
    not sufficient try section 15 of the FAQ (note that it's written for
    OpenBSD 3.8).

+ Reply to Thread