Graham Dumpleton
graham.dumpleton at gmail.com
Tue Apr 21 17:30:26 EDT 2009
As I said, you were mot likely missing Apache Portable Runtime library header files in header file search. Find where on your box the following header files are: apr.h apr_ldap_init.h apr_signal.h apr_allocator.h apr_ldap_option.h apr_strings.h apr_anylock.h apr_ldap_url.h apr_strmatch.h apr_atomic.h apr_lib.h apr_support.h apr_base64.h apr_md4.h apr_tables.h apr_buckets.h apr_md5.h apr_thread_cond.h apr_date.h apr_mmap.h apr_thread_mutex.h apr_dbd.h apr_network_io.h apr_thread_proc.h apr_dbm.h apr_optional.h apr_thread_rwlock.h apr_dso.h apr_optional_hooks.h apr_time.h apr_env.h apr_poll.h apr_uri.h apr_errno.h apr_pools.h apr_user.h apr_file_info.h apr_portable.h apr_uuid.h apr_file_io.h apr_proc_mutex.h apr_version.h apr_fnmatch.h apr_queue.h apr_want.h apr_general.h apr_random.h apr_xlate.h apr_getopt.h apr_reslist.h apr_xml.h apr_global_mutex.h apr_ring.h apu.h apr_hash.h apr_rmm.h apu_version.h apr_hooks.h apr_sdbm.h apu_want.h apr_inherit.h apr_sha1.h apr_ldap.h apr_shm.h This is presuming that you are actually using Apache 2.X. When you find them, you need to get that directory into include file search path as your apxs is broken to the extent of not adding the directory automatically. Graham 2009/4/22 online service <online.service.com at gmail.com>: > this is a 1and1 preinstalled fedora server. > > > files in /usr/local/psa/admin/include: > > > -r--r--r-- 1 root psaadm 15335 Mar 22 2007 ap_alloc.h > -r--r--r-- 1 root psaadm 23605 Mar 22 2007 ap_compat.h > -r--r--r-- 1 root psaadm 2628 Mar 22 2007 ap_config_auto.h > -r--r--r-- 1 root psaadm 37326 Mar 22 2007 ap_config.h > -r--r--r-- 1 root psaadm 3948 Mar 22 2007 ap_ctx.h > -r--r--r-- 1 root psaadm 1733 Mar 22 2007 ap_ctype.h > -r--r--r-- 1 root psaadm 1004 Mar 22 2007 ap_ebcdic.h > -r--r--r-- 1 root psaadm 6416 Mar 22 2007 ap.h > -r--r--r-- 1 root psaadm 26419 Mar 22 2007 ap_hook.h > -r--r--r-- 1 root psaadm 2923 Mar 22 2007 ap_md5.h > -r--r--r-- 1 root psaadm 5577 Mar 22 2007 ap_mm.h > -r--r--r-- 1 root psaadm 12707 Mar 22 2007 ap_mmn.h > -r--r--r-- 1 root psaadm 2015 Mar 22 2007 ap_sha1.h > -r--r--r-- 1 root psaadm 6563 Mar 22 2007 buff.h > -r--r--r-- 1 root psaadm 794 Mar 22 2007 compat.h > -r--r--r-- 1 root psaadm 792 Mar 22 2007 conf.h > -r--r--r-- 1 root psaadm 1901 Mar 22 2007 explain.h > -r--r--r-- 1 root psaadm 2595 Mar 22 2007 fnmatch.h > -r--r--r-- 1 root psaadm 2221 Mar 22 2007 hsregex.h > -r--r--r-- 1 root psaadm 3177 Mar 22 2007 http_conf_globals.h > -r--r--r-- 1 root psaadm 17479 Mar 22 2007 http_config.h > -r--r--r-- 1 root psaadm 12279 Mar 22 2007 http_core.h > -r--r--r-- 1 root psaadm 45968 Mar 22 2007 httpd.h > -r--r--r-- 1 root psaadm 4270 Mar 22 2007 http_log.h > -r--r--r-- 1 root psaadm 5900 Mar 22 2007 http_main.h > -r--r--r-- 1 root psaadm 7185 Mar 22 2007 http_protocol.h > -r--r--r-- 1 root psaadm 3229 Mar 22 2007 http_request.h > -r--r--r-- 1 root psaadm 1779 Mar 22 2007 http_vhost.h > -r--r--r-- 1 root psaadm 2406 Mar 22 2007 multithread.h > -r--r--r-- 1 root psaadm 2774 Mar 22 2007 os.h > -r--r--r-- 1 root psaadm 1588 Mar 22 2007 os-inline.c > dr--r--r-- 8 root psaadm 92 Apr 27 2007 php > -r--r--r-- 1 root psaadm 840 Mar 22 2007 rfc1413.h > -r--r--r-- 1 root psaadm 5507 Mar 22 2007 scoreboard.h > -r--r--r-- 1 root psaadm 1126 Mar 22 2007 util_date.h > -r--r--r-- 1 root psaadm 1186 Mar 22 2007 util_md5.h > -r--r--r-- 1 root psaadm 2007 Mar 22 2007 util_script.h > -r--r--r-- 1 root psaadm 3328 Mar 22 2007 util_uri.h > dr-xr-xr-x 2 root psaadm 4096 Apr 27 2007 xml > > > files in /usr/local/include/python2.5 > > > -rw-r--r-- 1 root root 38971 Apr 20 18:59 abstract.h > -rw-r--r-- 1 root root 1099 Apr 20 18:59 asdl.h > -rw-r--r-- 1 root root 230 Apr 20 18:59 ast.h > -rw-r--r-- 1 root root 792 Apr 20 18:59 bitset.h > -rw-r--r-- 1 root root 914 Apr 20 18:59 boolobject.h > -rw-r--r-- 1 root root 924 Apr 20 18:59 bufferobject.h > -rw-r--r-- 1 root root 653 Apr 20 18:59 cellobject.h > -rw-r--r-- 1 root root 4944 Apr 20 18:59 ceval.h > -rw-r--r-- 1 root root 2893 Apr 20 18:59 classobject.h > -rw-r--r-- 1 root root 1763 Apr 20 18:59 cobject.h > -rw-r--r-- 1 root root 5014 Apr 20 18:59 codecs.h > -rw-r--r-- 1 root root 3277 Apr 20 18:59 code.h > -rw-r--r-- 1 root root 1058 Apr 20 18:59 compile.h > -rw-r--r-- 1 root root 1476 Apr 20 18:59 complexobject.h > -rw-r--r-- 1 root root 2005 Apr 20 18:59 cStringIO.h > -rw-r--r-- 1 root root 8288 Apr 20 18:59 datetime.h > -rw-r--r-- 1 root root 2106 Apr 20 18:59 descrobject.h > -rw-r--r-- 1 root root 5666 Apr 20 18:59 dictobject.h > -rw-r--r-- 1 root root 253 Apr 20 18:59 enumobject.h > -rw-r--r-- 1 root root 1363 Apr 20 18:59 errcode.h > -rw-r--r-- 1 root root 557 Apr 20 18:59 eval.h > -rw-r--r-- 1 root root 2358 Apr 20 18:59 fileobject.h > -rw-r--r-- 1 root root 4184 Apr 20 18:59 floatobject.h > -rw-r--r-- 1 root root 2877 Apr 20 18:59 frameobject.h > -rw-r--r-- 1 root root 2997 Apr 20 18:59 funcobject.h > -rw-r--r-- 1 root root 823 Apr 20 18:59 genobject.h > -rw-r--r-- 1 root root 1854 Apr 20 18:59 graminit.h > -rw-r--r-- 1 root root 2021 Apr 20 18:59 grammar.h > -rw-r--r-- 1 root root 2029 Apr 20 18:59 import.h > -rw-r--r-- 1 root root 2112 Apr 20 18:59 intobject.h > -rw-r--r-- 1 root root 274 Apr 20 18:59 intrcheck.h > -rw-r--r-- 1 root root 526 Apr 20 18:59 iterobject.h > -rw-r--r-- 1 root root 2511 Apr 20 18:59 listobject.h > -rw-r--r-- 1 root root 2140 Apr 20 18:59 longintrepr.h > -rw-r--r-- 1 root root 4809 Apr 20 18:59 longobject.h > -rw-r--r-- 1 root root 713 Apr 20 18:59 marshal.h > -rw-r--r-- 1 root root 253 Apr 20 18:59 metagrammar.h > -rw-r--r-- 1 root root 3190 Apr 20 18:59 methodobject.h > -rw-r--r-- 1 root root 4836 Apr 20 18:59 modsupport.h > -rw-r--r-- 1 root root 611 Apr 20 18:59 moduleobject.h > -rw-r--r-- 1 root root 890 Apr 20 18:59 node.h > -rw-r--r-- 1 root root 32254 Apr 20 18:59 object.h > -rw-r--r-- 1 root root 12438 Apr 20 18:59 objimpl.h > -rw-r--r-- 1 root root 4320 Apr 20 18:59 opcode.h > -rw-r--r-- 1 root root 942 Apr 20 18:59 osdefs.h > -rw-r--r-- 1 root root 1346 Apr 20 18:59 parsetok.h > -rw-r--r-- 1 root root 1378 Apr 20 18:59 patchlevel.h > -rw-r--r-- 1 root root 253 Apr 20 18:59 pgen.h > -rw-r--r-- 1 root root 1144 Apr 20 18:59 pgenheaders.h > -rw-r--r-- 1 root root 2693 Apr 20 18:59 pyarena.h > -rw-r--r-- 1 root root 28564 Apr 20 18:59 pyconfig.h > -rw-r--r-- 1 root root 4160 Apr 20 18:59 py_curses.h > -rw-r--r-- 1 root root 1065 Apr 20 18:59 pydebug.h > -rw-r--r-- 1 root root 11581 Apr 20 18:59 pyerrors.h > -rw-r--r-- 1 root root 1957 Apr 20 18:59 pyexpat.h > -rw-r--r-- 1 root root 8495 Apr 20 18:59 pyfpe.h > -rw-r--r-- 1 root root 306 Apr 20 18:59 pygetopt.h > -rw-r--r-- 1 root root 7421 Apr 20 18:59 pymactoolbox.h > -rw-r--r-- 1 root root 4602 Apr 20 18:59 pymem.h > -rw-r--r-- 1 root root 25218 Apr 20 18:59 pyport.h > -rw-r--r-- 1 root root 6203 Apr 20 18:59 pystate.h > -rw-r--r-- 1 root root 359 Apr 20 18:59 pystrtod.h > -rw-r--r-- 1 root root 19631 Apr 20 18:59 Python-ast.h > -rw-r--r-- 1 root root 4204 Apr 20 18:59 Python.h > -rw-r--r-- 1 root root 6481 Apr 20 18:59 pythonrun.h > -rw-r--r-- 1 root root 1447 Apr 20 18:59 pythread.h > -rw-r--r-- 1 root root 648 Apr 20 18:59 rangeobject.h > -rw-r--r-- 1 root root 2757 Apr 20 18:59 setobject.h > -rw-r--r-- 1 root root 1291 Apr 20 18:59 sliceobject.h > -rw-r--r-- 1 root root 6611 Apr 20 18:59 stringobject.h > -rw-r--r-- 1 root root 2532 Apr 20 18:59 structmember.h > -rw-r--r-- 1 root root 862 Apr 20 18:59 structseq.h > -rw-r--r-- 1 root root 3936 Apr 20 18:59 symtable.h > -rw-r--r-- 1 root root 819 Apr 20 18:59 sysmodule.h > -rw-r--r-- 1 root root 442 Apr 20 18:59 timefuncs.h > -rw-r--r-- 1 root root 1710 Apr 20 18:59 token.h > -rw-r--r-- 1 root root 624 Apr 20 18:59 traceback.h > -rw-r--r-- 1 root root 2061 Apr 20 18:59 tupleobject.h > -rw-r--r-- 1 root root 861 Apr 20 18:59 ucnhash.h > -rw-r--r-- 1 root root 44859 Apr 20 18:59 unicodeobject.h > -rw-r--r-- 1 root root 2434 Apr 20 18:59 weakrefobject.h > > > > ------------------------------------------------------------------------- > > > > > > > What might be missing? > > Thanks > > On Mon, Apr 20, 2009 at 11:18 PM, Graham Dumpleton > <graham.dumpleton at gmail.com> wrote: >> >> 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 >> >> >> > >> > > > > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python > >
|