[mod_python] make problem

Graham Dumpleton graham.dumpleton at gmail.com
Tue Apr 21 02:18:28 EDT 2009


You most likely do not have headers file installed for Apache, Apache
Portable Runtime library, or Python itself.

What is in:

  /usr/local/psa/admin/include
  /usr/local/include/python2.5

Even if they have Apache and Python header files, the Apache Portable
Runtime library header files may not be in the first one and you need
to work out where they are and ensure -I is listed in Makefile for
them, since it seems that your 'apxs' program isn't reporting their
location properly.

What weird version of Apache is this anyway? And on what operating system?

Graham

2009/4/21 online service <online.service.com at gmail.com>:
>
>
> On Mon, Apr 20, 2009 at 10:59 PM, online service
> <online.service.com at gmail.com> wrote:
>>
>> ------------------------------
>>
>> ---------------------------------------------------------------------------------------------------
>> ex_t'
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:157: error:
>> expected specifier-qualifier-list before 'apr_table_t'
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:179: error:
>> expected specifier-qualifier-list before 'apr_hash_t'
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:210: error:
>> expected '=', ',', ';', 'asm' or '__attribute__' before 'python_cleanup'
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:214: error:
>> expected declaration specifiers or '...' before 'mp_acquire_interpreter'
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:214: error:
>> expected declaration specifiers or '...' before '(' token
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:214: warning:
>> data definition has no type or storage class
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:214: warning:
>> type defaults to 'int' in declaration of 'APR_DECLARE_OPTIONAL_FN'
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:215: error:
>> expected declaration specifiers or '...' before 'mp_release_interpreter'
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:215: error:
>> expected declaration specifiers or '...' before '(' token
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:215: warning:
>> data definition has no type or storage class
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:215: warning:
>> type defaults to 'int' in declaration of 'APR_DECLARE_OPTIONAL_FN'
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:215: error:
>> conflicting types for 'APR_DECLARE_OPTIONAL_FN'
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:214: error:
>> previous declaration of 'APR_DECLARE_OPTIONAL_FN' was here
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:216: error:
>> expected declaration specifiers or '...' before 'mp_get_request_object'
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:216: error:
>> expected declaration specifiers or '...' before '(' token
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:216: warning:
>> data definition has no type or storage class
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:216: warning:
>> type defaults to 'int' in declaration of 'APR_DECLARE_OPTIONAL_FN'
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:216: error:
>> conflicting types for 'APR_DECLARE_OPTIONAL_FN'
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:214: error:
>> previous declaration of 'APR_DECLARE_OPTIONAL_FN' was here
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:217: error:
>> expected declaration specifiers or '...' before 'mp_get_server_object'
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:217: error:
>> expected declaration specifiers or '...' before '(' token
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:217: warning:
>> data definition has no type or storage class
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:217: warning:
>> type defaults to 'int' in declaration of 'APR_DECLARE_OPTIONAL_FN'
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:217: error:
>> conflicting types for 'APR_DECLARE_OPTIONAL_FN'
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:214: error:
>> previous declaration of 'APR_DECLARE_OPTIONAL_FN' was here
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:218: error:
>> expected declaration specifiers or '...' before 'mp_get_connection_object'
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:218: error:
>> expected declaration specifiers or '...' before '(' token
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:218: warning:
>> data definition has no type or storage class
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:218: warning:
>> type defaults to 'int' in declaration of 'APR_DECLARE_OPTIONAL_FN'
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:218: error:
>> conflicting types for 'APR_DECLARE_OPTIONAL_FN'
>> /root/downloads/mod_python-3.3.1/src/include/mod_python.h:214: error:
>> previous declaration of 'APR_DECLARE_OPTIONAL_FN' was here
>> mod_python.c:41: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before '*' token
>> mod_python.c:44: warning: return type defaults to 'int'
>> mod_python.c: In function 'APR_OPTIONAL_FN_TYPE':
>> mod_python.c:44: error: expected declaration specifiers before '*' token
>> mod_python.c:45: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before '*' token
>> mod_python.c:46: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before '*' token
>> mod_python.c:55: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before '{' token
>> mod_python.c:89: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before '{' token
>> mod_python.c:177: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before '{' token
>> mod_python.c:200: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before '{' token
>> mod_python.c:228: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before '{' token
>> mod_python.c:326: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before '{' token
>> mod_python.c:346: error: expected declaration specifiers before
>> 'apr_status_t'
>> mod_python.c:419: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'init_mutexes'
>> mod_python.c:573: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'reinit_mutexes'
>> mod_python.c:622: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before '{' token
>> mod_python.c:651: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before '{' token
>> mod_python.c:667: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before '{' token
>> mod_python.c:679: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before '{' token
>> mod_python.c:695: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before '{' token
>> mod_python.c:707: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before '{' token
>>
>> ----------------------------------------------------------------------------------------------------------------------------
>>
>>
>>
>>
>> On Mon, Apr 20, 2009 at 10:01 PM, Graham Dumpleton
>> <graham.dumpleton at gmail.com> wrote:
>>>
>>> 2009/4/21 online service <online.service.com at gmail.com>:
>>> > I got a make error of long print out.
>>> >
>>> > i am sharing my configure output here:
>>> >
>>> > ./configure command is
>>> >
>>> > ./configure --with-apxs=/usr/local/psa/admin/bin/apxs
>>> >
>>> > I am trying to install mod_python with a preinstalled apache working
>>> > with
>>> > plesk.
>>> >
>>> > checking for gcc... gcc
>>> > checking for C compiler default output file name... a.out
>>> > checking whether the C compiler works... yes
>>> > checking whether we are cross compiling... no
>>> > checking for suffix of executables...
>>> > checking for suffix of object files... o
>>> > checking whether we are using the GNU C compiler... yes
>>> > checking whether gcc accepts -g... yes
>>> > checking for gcc option to accept ANSI C... none needed
>>> > checking for ar... ar
>>> > checking for a BSD-compatible install... /usr/bin/install -c
>>> > checking whether make sets $(MAKE)... yes
>>> > checking for main in -lm... yes
>>> > checking for an ANSI C-conforming const... yes
>>> > checking your blood pressure... a bit high, but we can proceed
>>> > configure: checking whether apxs is available...
>>> > checking for --with-apxs... /usr/local/psa/admin/bin/apxs executable,
>>> > good
>>> > checking Apache version... 2.2.3
>>> > checking for Apache libexec directory... /usr/local/psa/admin/libexec
>>> > checking for Apache include directory... -I/usr/local/psa/admin/include
>>> > checking for --with-python... no
>>> > checking for python... /usr/local/bin/python
>>> > checking Python version... 2.5
>>> > checking Python install prefix... /usr/local
>>> > checking checking where python libraries are installed...
>>> > /usr/local/lib/python2.5
>>> > checking for Py_NewInterpreter in -lpython2.5... yes
>>> > checking what libraries Python was linked with... -lpython2.5 -lpthread
>>> > -ldl
>>> > -lutil -lm
>>> > checking linker flags used to link Python...
>>> > checking where Python include files are...
>>> > -I/usr/local/include/python2.5
>>> > checking for --with-python-src... no
>>> > checking for --with-mutex-dir... no
>>> > Using MUTEX_DIR /tmp
>>> > checking for --with-max-locks... no
>>> > Using 8 MAX_LOCKS.
>>> > checking for --with-flex... no
>>> > checking for flex... no
>>> > configure: creating ./config.status
>>> > config.status: creating Makefile
>>> > config.status: creating src/Makefile
>>> > config.status: creating Doc/Makefile
>>> > config.status: creating src/include/mod_python.h
>>> > config.status: creating test/Makefile
>>> > config.status: creating test/testconf.py
>>> > config.status: creating dist/setup.py
>>> > config.status: creating dist/Makefile
>>> >
>>> >
>>> >
>>> >
>>> > What could cause the make problem?
>>>
>>> What problem? The bit about your blood pressure being a bit too high,
>>> or something else?
>>>
>>> That is only the output from 'configure' and is normal. You haven't
>>> even run 'make' yet.
>>>
>>> Graham
>>
>
>


More information about the Mod_python mailing list