Hello,

Problem solved. Just compiled zlib for cris and put it so compiler can
find it (under /usr/local/cris). After that php can be built with zlib without 
problems.

More info: 
http://developer.axis.com/wiki/doku.php?id=tips_on_how_to_cross_compile_various_programs

Best Regards,
  Andrey


Monday, July 21, 2008, 3:57:46 PM, you wrote:

>      
>    
>  
>    
>   
> Hello,
>  
>  I'm having problem with compiling custom php for foxboard.
>  My application requires PHP with zlib (for gzcompress function to
>  work). Hope someone can guide me to right direction.
>  
>  Here is what have been done:
>  
>  1. php is turned on within acme SDK and got it downloaded.
>  2. Changed get_php file (under apps/php) to add new configure
> flags: --enable-module=so --with-zlib
>  3. Copied zlib.h and zconf.h to
> php/ext/zlib,php/ext/standard,php/main
>  so it stopped complaining about these files being not found after make.
>  
>  So at this stage I get following error after make:
>  
> 
> /usr/local/cris/lib/gcc-lib/cris-axis-linux-gnu/3.2.1/../../../../cris-axis-linux-gnu/bin/ld:
>  cannot find -lz
>  collect2: ld returned 1 exit status
>  make: *** [sapi/cgi/php] Error 1
>  
>  As I understand compiler (or linker) can not find zlib headers. However I've
>  copied zlib.h into /usr/local/cris/cris-axis-linux-gnu/sys-include but
>  no luck.
>  
>  Please advise how to compile PHP with Zlib support.
>  
>  Best Regards,
>  Andrey
>  
>  
>


Reply via email to