modpython compilation error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lorenz Köhl

    modpython compilation error

    hi,

    I've python 2.3 and apache 2.0.47 installed on my SuSE8.2.
    when trying to compile modpython into apache, make stops with the error

    ----
    In file included from /usr/local/include/python2.3/Python.h:8,
    from /home/software/network/apache/mod_python-3.0.3/src/include/mod_python.h:92 ,
    from requestobject.c :64:
    /usr/local/include/python2.3/pyconfig.h:844: 1: warning: "_POSIX_C_SOURC E" redefined
    In file included from /usr/include/sys/types.h:27,
    from /usr/local/apache2/include/apr.h:149,
    from /usr/local/apache2/include/ap_config.h:58,
    from /usr/local/apache2/include/httpd.h:72,
    from /home/software/network/apache/mod_python-3.0.3/src/include/mod_python.h:71 ,
    from requestobject.c :64:
    /usr/include/features.h:131: 1: warning: this is the location of the previous definition
    requestobject.c : In function `getreq_recmbr_ off':
    requestobject.c :1055: error: `LONG_LONG' undeclared (first use in this function)
    requestobject.c :1055: error: (Each undeclared identifier is reported only once
    requestobject.c :1055: error: for each function it appears in.)
    requestobject.c :1056: error: parse error before "l"
    requestobject.c :1057: error: `l' undeclared (first use in this function)
    requestobject.c : At top level:
    requestobject.c :1270: warning: initialization from incompatible pointer type
    apxs:Error: Command failed with rc=65536
    ..
    make[1]: *** [mod_python.so] Error 1
    make[1]: Leaving directory `/home/software/network/apache/mod_python-3.0.3/src'
    make: *** [do_dso] Error 2

    ----

    Hmm, apache is (probably) correctly installed. dso is of course activated
    and I also installed apr from apr.apache.org
    any ideas?
Working...