[mod_python] Installation problems - Unable to configure Apache 1.3.26

Jack Diederich jack_diederich at email.com
Wed Sep 18 01:42:43 EST 2002


I've had this problem before, I ended up using a DSO install instead.

here is my mod_python ./configure
./configure  --with-apxs=/home/apache_python/bin/apxs

and my apache ./configure
./configure --with-layout=Apache --prefix=/home/apache_python --enable-module=so --enable-rule=SHARED_CORE

----- Original Message -----
From: "Dr . Unix Software Inc ." <gkrackow at bellsouth.net>
Date: Tue, 17 Sep 2002 13:32:22 -0400 
To: mod_python at modpython.org
Subject: [mod_python] Installation problems - Unable to configure Apache 1.3.26


> 
> Hi guys, I am new to the mod_python mailing list.
> 
> I have tried for more than 4 days to get the mod_python working with apache
> 1.3.26
> 
> I followed the Mod_python manual instructions, and had spent lots of times
> looking in the mailing list for a clue.
> 
> This is what I have :
> 
> RedHat 7.2 (Enigma), Kernel 2.4.7-10
> gcc 2.96
> Python 2.2.1 compiled with no threads.
> Apache 1.3.26
> mod_python 2.7.8
> 
> 
> Making mod_python was no problem. I have apache installed under
> /usr/local/apache, so I used ./configure
> with --with-apache and --with-python options.
> 
> I used make, and make static, as well as (root) make install and make
> install_static. It made no difference, the Apache 
> recompilation failed with the same errors.
> 
> From the Apache source directory I issued the command :
> 
> ./configure --activate-module=src/modules/python/libpython.a
> 
> which gave : 
> 
> Configuring for Apache, Version 1.3.26
>  + using installation path layout: Apache (config.layout)
>  + activated python module (modules/python/libpython.a)
> Creating Makefile
> Creating Configuration.apaci in src
> Creating Makefile in src
>  + configured for Linux platform
>  + setting C compiler to gcc
>  + setting C pre-processor to gcc -E
>  + checking for system header files
>  + adding selected modules
>     o python_module uses ConfigStart/End
>  + using system Expat
>  + checking sizeof various data types
>  + doing sanity check on compiler and options
> Creating Makefile in src/support
> Creating Makefile in src/regex
> Creating Makefile in src/os/unix
> Creating Makefile in src/ap
> Creating Makefile in src/main
> Creating Makefile in src/modules/standard
> Creating Makefile in src/modules/python
> 
> then issued make
> 
> This is the last part of the Apache compilation that shows the errors :
> 
> 
> gcc -c -I/usr/drunix/webservers/apache/mod_python-2.7.8/src/include
> -I/usr/drunix/webservers/apache/apache_1.3.26/src/include
> -I/usr/drunix/webservers/apache/apache_1.3.26/src/os/unix
> -I/usr/drunix/programming/python/Python-2.2.1
> -I/usr/drunix/programming/python/Python-2.2.1/Include -I./os/unix
> -I./include   -DLINUX=22 -DUSE_HSREGEX -DNO_DL_NEEDED `./apaci` buildmark.c
> gcc  -DLINUX=22 -DUSE_HSREGEX -DNO_DL_NEEDED `./apaci` -Xlinker
> -export-dynamic       \
>       -o httpd buildmark.o modules.o modules/standard/libstandard.a
> modules/python/libpython.a main/libmain.a ./os/unix/libos.a ap/libap.a
> regex/libregex.a   -lm -lcrypt -lm  /usr/drunix/programming/python/Python-2.2.1/libpython2.2.a
> -lexpat
> 
> --->> This is my note : Up to here everything seems to be okay, but then
> ...  --->>
> 
> /usr/drunix/programming/python/Python-2.2.1/libpython2.2.a(posixmodule.o):
> In function `posix_tmpnam':
> /usr/drunix/programming/python/Python-2.2.1/./Modules/posixmodule.c:4503:
> the use of `tmpnam' is dangerous, better use `mkstemp'
> /usr/drunix/programming/python/Python-2.2.1/libpython2.2.a(posixmodule.o):
> In function `posix_tempnam':
> /usr/drunix/programming/python/Python-2.2.1/./Modules/posixmodule.c:4451:
> the use of `tempnam' is dangerous, better use `mkstemp'
> 
> /usr/drunix/programming/python/Python-2.2.1/libpython2.2.a(dynload_shlib.o):
> In function `_PyImport_GetDynLoadFunc':
> /usr/drunix/programming/python/Python-2.2.1/Python/dynload_shlib.c:90:
> undefined reference to `dlopen'
> /usr/drunix/programming/python/Python-2.2.1/Python/dynload_shlib.c:93:
> undefined reference to `dlerror'
> /usr/drunix/programming/python/Python-2.2.1/Python/dynload_shlib.c:74:
> undefined reference to `dlsym'
> /usr/drunix/programming/python/Python-2.2.1/Python/dynload_shlib.c:98:
> undefined reference to `dlsym'
> /usr/drunix/programming/python/Python-2.2.1/libpython2.2.a(posixmodule.o):
> In function `posix_openpty':
> /usr/drunix/programming/python/Python-2.2.1/./Modules/posixmodule.c:1934:
> undefined reference to `openpty'
> /usr/drunix/programming/python/Python-2.2.1/libpython2.2.a(posixmodule.o):
> In function `posix_forkpty':
> /usr/drunix/programming/python/Python-2.2.1/./Modules/posixmodule.c:1965:
> undefined reference to `forkpty'
> collect2: ld returned 1 exit status
> make[2]: *** [target_static] Error 1
> make[2]: Leaving directory `/usr/drunix/webservers/apache/apache_1.3.26/src'
> make[1]: *** [build-std] Error 2
> make[1]: Leaving directory `/usr/drunix/webservers/apache/apache_1.3.26'
> make: *** [build] Error 2
> 
> I have been stuck here for days, found no similar errors in the mailing
> list, I scanned them form January to September (2002).
> 
> Any susgestions would be greatly appreciated.
> 
> G.K.
> 
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://www.modpython.org/mailman/listinfo/mod_python
> 
> 

-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup




More information about the Mod_python mailing list