httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henrik Grindal Bakken <...@ifi.uio.no>
Subject [users@httpd] Re: Apache 2.2.10 - apxs - cross-compiling modules failing
Date Tue, 09 Dec 2008 07:54:33 GMT
Nick Kew <nick@webthing.com> writes:

> On Fri, 5 Dec 2008 14:11:56 +0000
> "Paul Herring" <pauljherring@gmail.com> wrote:
>
>> Copy/paste from the mod_python list from my initial stab at finding
>> a solution:
>
> I don't see any evidence of your cross-compiled apache.

I haven't tried too many external apache modules, but cross-compiling
mod_python is certainly difficult.  It tries to run apache to
determine its version, and the same with python.  There's no way to
set an 'ac_cv_foo' variable to override this step.  This part is
easily patched in mod_python's configure (just remove the tests if
you're certain your apache/python are version 2), but it doesn't stop
there.

The cross-apache's apxs doesn't run very well on the build host (stuff
generally isn't installed on host where it'll end up on target, etc),
so when mod_python wants to run apxs to build and link the .so, it
fails.

I got somewhat further along by changing $(APXS) to $(CC) (and fixing
up some flags) in src/Makefile.in, but when it came to the 'dist'
subdirectory, I gave up.  The makefile requires PYTHON_BIN to do a lot
of compiling, and it also builds C files seemingly without looking at
$(CC) (but rather $(APXS)).


-- 
Henrik Grindal Bakken <hgb@ifi.uio.no>
PGP ID: 8D436E52
Fingerprint: 131D 9590 F0CF 47EF 7963  02AF 9236 D25A 8D43 6E52


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message