Re: Apache 2.2.10 - apxs - cross-compiling modules failing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nick Kew <nick@xxxxxxxxxxxx> writes:

> On Fri, 5 Dec 2008 14:11:56 +0000
> "Paul Herring" <pauljherring@xxxxxxxxx> 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@xxxxxxxxxx>
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux