ts-7000
[Top] [All Lists]

[ts-7000] Re: Need help with apache

To:
Subject: [ts-7000] Re: Need help with apache
From: "Phil" <>
Date: Thu, 06 Jul 2006 16:50:30 -0000
Hi Ollie,

I have been able to compile Apache 1.3 including getting PHP going 
with it. It only takes a few extra steps. I will go through exactly 
what I did, although you should note that there are so many unknowns 
involved here that it probably wont happen exactly the same way, but 
hopefully you will get the idea.

Firstly, my environment: Redhat 9 with cross-compile tools from TS 
website. I have a user setup that sets some environment variables 
for the cross-compile tools but all you should need is your arm-
linux-XXX executables in your path, and the following environment 
variables.

CC=arm-linux-gcc
CFLAGS='-I/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-
2.3.2/arm-linux/include'
CPPFLAGS='-I/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-
2.3.2/arm-linux/include'
LDFLAGS='-L/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-
2.3.2/arm-linux/lib'

(Obviously, alter these if your tools are elsewhere)

Next, I am using apache_1.3.34 (in case the version makes a 
difference)

Now, you should do a 'make distclean' since I think some old build 
stuff is left in the .tar distribution, might be fixed or different 
now, but it doesn't hurt.

You should be able to ./configure now with whatever options you 
need. I tried sucessfully with the following:

./configure --with-layout=Apache --prefix=/www/apache --enable-
module=proxy --disable-module=userdir --disable-module=log_config --
disable-module=imap

Now you can do a 'make' to start the compile. It will probably fall 
over with a line containing gen_test_char. Basically, it is trying 
to compile a host-side tool with the target compiler, and hence it 
then can't run it. All you have to do is compile this for you host. 

On my system I just: cd to where the problem file is (should 
be 'src/main'), now copy the line that compiles to object file (the 
line starting with arm-linux-gcc and ending with gen_test_char.c), 
but don't copy the arm-linux- part at the start of the line, and 
paste and run that. (You are just running the same compile but with 
gcc instead of arm-linux-gcc, all the options are still the same).

Now do the same for the line under that, that links the 
gen_test_char exe (starts again with arm-linux-gcc and ends 
with 'gen_test_char.o -lm -lcrypt') again without the arm-linux- at 
the start. You may get some warnings here but that shouldn't matter.

Now, cd ../.. back to the root install dir and type 'make' again. It 
should give a very similar error but on 'gen_uri_delims'. Just do 
the same again, cd src/main, recompile, relink, cd ../.. and 'make' 
again. This time it should go all the way through and leave you with 
a new httpd executable.


If all this doesn't work, post back some of the errors you get and 
we can see if we can work out whats going on.

Cheers
Phil

PS. I obviously now have a proxy enabled httpd binary after doing 
the above testing, so if you get stuck let me know and I can pass it 
along. But it is good experience if you can get there yourself!! :)







--- In  Ollie Eisman <> wrote:
>
> Hi,
> 
> I tried to compile apache 1.3.x with mod_proxy enabled
>  because the stock apache shipped with my ts-7260 does
> not have it.  As others have noticed, building apache
> with a cross-compiler can be a nightmare.  
> 
> I decided to use a different web server altogether (in
> this case, lighttpd) and ran into yet another
> cross-compile problem with getting a required
> subcomponent working (pcre, regex for perl).  
> 
> Given the same x-compile problems with pcre, I might
> as well get apache working but I need help.  Does
> anyone have a copy built with mod_proxy enabled that
> they could share, or, preferable, a good set of
> instructions for compiling apache 1.3.x using the
> standard cross compile tools?  
> 
> Maybe I should just punt and get a TS-7260 with SD
> card and Debian instead?  Cross compiling hassles are
> taking  a toll :)
> 
> Thanks,
> Ollie
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com
>







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/CFFolB/TM
--------------------------------------------------------------------~-> 

 
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