Re: [users@httpd] Cross-compiling Apache 2.2.3 and PHP 5.1.6

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

 



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 libphp5.so 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
libraries..



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


-ls

> -----Original Message-----
> From: Luc I. Suryo [mailto:luc@xxxxxxxxx] 
> Sent: Friday, October 06, 2006 11:40 AM
> To: users@xxxxxxxxxxxxxxxx
> 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 ftp://ftp.patriots.net
> 
> 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
> > (http://issues.apache.org/bugzilla/show_bug.cgi?id=40653) for tracking
> > purposes.

---------------------------------------------------------------------
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