ts-7000
[Top] [All Lists]

[ts-7000] Re: Apache+PHP

To:
Subject: [ts-7000] Re: Apache+PHP
From: "Yan Seiner" <>
Date: Wed, 16 Aug 2006 23:59:43 -0000
--- In  "David L. Martin" <> wrote:
>
> On Tue, 2006-08-15 at 22:16 +0000, Yan Seiner wrote:
> > > 2. While compiling Apache is fairly straight forward (in a native
> > > environment), the cross compile issues have me completely stumped.
> > > How do you install a large package such as this?  Its not like
you can
> > > just do a "make install".
> > 
> > Sure.  Once you have your toolchain set up, all you really need to do
> > is CC=arm-linux-gcc make install

Well, no.  You have to configure prefix to make it work....  I should
be able to post some samples tomorrow for building to an nfsroot.

> > 
> > Do you need all the apache features?  buysbox http now handles php
> > scripts well enough.
> 
> I took a look a busybox, but I couldn't find reference to php.

Well, yes. You still need php; but older busybox (< 1 or so) couldn't
handle scripting languages like php gracefully.  Now it's just a
simple matter of setting up the httpd.conf file.

> Apache compiles fine (with the known problems in make, which were easy
> to get around).  The configure in PHP breaks every time.  It refuse to
> run in a cross compile environment, with the following output:
> 
> "configure: error: can not run test program while cross compiling"
> 
> I've tried several ways to get around and/or debug this, all to no
> avail.
> 

One word:  cheat.  :-)

All you need to do is to take out a few exit 1 lines in the configure
script and php4 will compile just fine.

(This is a known problem as well; but for some reason the php lists
aren't archived in a way that google can index or something... They
just don't show up in google searches very much.)

I am in the final stages of building my own little build environment;
I should be able to post a patch to php-4.4.2 configure that allows it
to cross-compile.

If you want to give it a try, find the test where it is failing, then
take out the 'exit 1;' in the if condition.

ISTR you need to do this in 3 places to make it work.

-Yan





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU