httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luc I. Suryo" <>
Subject Re: [users@httpd] Cross-compiling Apache 2.2.3 and PHP 5.1.6
Date Fri, 06 Oct 2006 20:09:41 GMT
Hey Larry,

> cross-compiling for SPARC on your x86 system.  If so, did you use the
> standard --host= and --target= options to point to your cross-compiler
> when building Apache?  Also, did you configure PHP using both --host=
> and --with-apxs2= options?
> The problem I'm seeing is the same ./apache/bin directory that contains
> the apxs PERL script also contains the cross-compiled httpd daemon.  In
> the above example, the daemon would have been compiled and linked for
> SPARC, which (naturally) isn't executable under x86, so PHP configure
> fails.
> If you were able to build for SPARC on your Solaris x86
> system using Apache 2.2.3 apxs, I'd appreciate seeing your ./configure
> lines.
sorry but no, this x86 pkgs was compiled on a x86 system, i do have plan for
SPARC but that would have wait until next week and it will be compiled
under a SPARC system too..

My bad I should caught that part you asked, crossed compiled..
it will be tough to cross compile since php need/depends on other

anyway i would like to suggest couple things
	1. use Studio 11 instead of GCC
	2. use as much as possible Sun's libraries
	3. make sure to 'hard code' the libraries search during
		linking (-R)
	4. unless you really mush compile 32 bits.

the one thing that 'was an issue' is libxml2, Solaris comes with an
older version but php 5 need a newer version...

I could make the server online for you to check (phpinfo output)
email me privatly


> -----Original Message-----
> From: Luc I. Suryo [] 
> Sent: Friday, October 06, 2006 11:40 AM
> To:
> Subject: Re: [users@httpd] Cross-compiling Apache 2.2.3 and PHP 5.1.6
> i have: Solaris 10 x86...
> no issues... and i have the packages available at
> for the Solaris users: I have not tested my SMF (manifest/xml file..)
> > Has anyone successfully cross-compiled Apache 2.2.3 and PHP 5.1.6 for 
> > any platform?
> > The Apache eXtenSion tool (apxs) as a PERL script is platform 
> > independent, but it relies on executing httpd, which having been 
> > cross-compiled, can't be executed natively.
> > The problem first appears when configuring PHP.  When you pass the 
> > --with-apxs2= option on the ./configure line, it runs apxs, which 
> > fails to execute httpd.  Since apxs is built dynamically and most 
> > build information is found in the ./build directory, why does it need 
> > to execute httpd?
> > How can apxs become truly platform independent, so it can run 
> > successfully in a cross-compiled environment?
> > I've also entered this in Bugzilla
> > ( for tracking
> > purposes.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message