[mod_python] Re: Cross compiling mod_python

Graham Dumpleton graham.dumpleton at gmail.com
Fri Nov 28 04:17:03 EST 2008


2008/11/28 Paul Herring <pauljherring at gmail.com>:
> On Fri, Nov 28, 2008 at 4:17 AM, Paul Herring <pauljherring at gmail.com> wrote:
> [...]
>> Apologies for the lack of detail for the moment (especially version
>> numbers, command line invocations and output/error messages;) I'm not
>> at work where the system is. I can provide more detail if required,
>> and will probably follow up this message when I do get to work.
>
> Following up with some details in case they're useful.
>
> Version of mod_python: 3.3.1
> Apache: 2.2.10
> Python: 2.4.4 (I realise this is an old version, but this was
> requested due to compatibility issues with other software that's
> used.)
>
> configure without apxs:
> ------------->8===========
> ./configure --build=i586-cross-linux-gnu --host=i686-pc-linux-gnu \
>                --prefix=/f15_nsb
> checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... yes
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether i686-pc-linux-gnu-gcc accepts -g... yes
> checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
> checking for ar... i686-pc-linux-gnu-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... no
> checking for apxs in /usr/local/apache/sbin... no
> checking for apxs in your PATH... checking for apxs... no
> checking for apxs2 in your PATH... checking for apxs2... no
> configure: WARNING: **** apxs was not found, DSO compilation will not
> be available.
> configure: WARNING: **** You can use --with-apxs to specify where your apxs is.
> configure: error: Neither static nor DSO option available, there is no
> point in continuing.
> ------------->8===========
>
> configure using target version of apxs:
>
> ------------->8===========
> ./configure --build=i586-cross-linux-gnu --host=i686-pc-linux-gnu \
>                --prefix=/f15_nsb \
>                --with-apxs=/f15_nsb/usr/local/bin/apxs
> checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... yes
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether i686-pc-linux-gnu-gcc accepts -g... yes
> checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
> checking for ar... i686-pc-linux-gnu-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... /f15_nsb/usr/local/bin/apxs executable, good
> checking Apache version... cannot open
> /usr/local/conf/build/config_vars.mk: No such file or directory at
> /f15_nsb/usr/local/bin/apxs line 218.
> cannot open /usr/local/conf/build/config_vars.mk: No such file or
> directory at /f15_nsb/usr/local/bin/apxs line 218.
>  running %/% cannot open /usr/local/conf/build/config_vars.mk: No such
> file or directory at /f15_nsb/usr/local/bin/apxs line 218.
> cannot open /usr/local/conf/build/config_vars.mk: No such file or
> directory at /f15_nsb/usr/local/bin/apxs line 218.
> ./configure: line 2714: /: is a directory

This indicates that the apxs installation you are trying to use is
broken in some way. Specifically, appears to be looking in a location
for its files where they aren't.

On the command line run:

  /f15_nsb/usr/local/bin/apxs -q LIBDIR

If that errors, then definitely broken.

Graham


> configure: error: This version of mod_python only works with Apache 2.
> The one you have seems to be .
> ------------->8===========
>
>
> --
> PJH
>
> http://shabbleland.myminicity.com/tra
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>


More information about the Mod_python mailing list