zlib with php in a jail

jdyke jdyke at azimapower.com
Thu Sep 22 18:54:14 PDT 2005


i'm building three/four jails for dev-prod development evironments...the last 
environment is php4, it has to be backwards compatible with our last software 
release....in trying to install php4-extensions i'm getting the following error 
on zlib
php4 - config
===> The following configuration options are set for php4-4.3.11:
      APACHE2=on "Use apache 2.x instead of apache 1.3.x"
      DEBUG=off "Enable debug"
      IPV6=off "Enable ipv6 support"
      OPENSSL=on "Build static OpenSSL extension"


===>  Building for php4-zlib-4.3.11
/bin/sh /usr/ports/archivers/php4-zlib/work/php-4.3.11/ext/zlib/libtool 
--mode=compile cc  -I. -I/usr/ports/archivers/php4-zlib/work/php-4.3.11/ext/zlib 
-DPHP_ATOM_INC -I/usr/ports/archivers/php4-zlib/work/php-4.3.11/ext/zlib/include 
-I/usr/ports/archivers/php4-zlib/work/php-4.3.11/ext/zlib/main 
-I/usr/ports/archivers/php4-zlib/work/php-4.3.11/ext/zlib 
-I/usr/local/include/php -I/usr/local/include/php/main 
-I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend  -DHAVE_CONFIG_H  -O 
-pipe   -c /usr/ports/archivers/php4-zlib/work/php-4.3.11/ext/zlib/zlib.c -o zlib.lo
cc -I. -I/usr/ports/archivers/php4-zlib/work/php-4.3.11/ext/zlib -DPHP_ATOM_INC 
-I/usr/ports/archivers/php4-zlib/work/php-4.3.11/ext/zlib/include 
-I/usr/ports/archivers/php4-zlib/work/php-4.3.11/ext/zlib/main 
-I/usr/ports/archivers/php4-zlib/work/php-4.3.11/ext/zlib 
-I/usr/local/include/php -I/usr/local/include/php/main 
-I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -DHAVE_CONFIG_H -O 
-pipe -c /usr/ports/archivers/php4-zlib/work/php-4.3.11/ext/zlib/zlib.c  -fPIC 
-DPIC -o zlib.lo
In file included from /usr/local/include/php/ext/standard/fsock.h:38,
                  from /usr/local/include/php/ext/standard/php_standard.h:44,
                  from 
/usr/ports/archivers/php4-zlib/work/php-4.3.11/ext/zlib/zlib.c:48:
*/usr/local/include/php/main/php_network.h:78:25: openssl/ssl.h: No such file or 
directory*
In file included from /usr/local/include/php/ext/standard/fsock.h:38,
                  from /usr/local/include/php/ext/standard/php_standard.h:44,
                  from 
/usr/ports/archivers/php4-zlib/work/php-4.3.11/ext/zlib/zlib.c:48:
/usr/local/include/php/main/php_network.h:129: error: syntax error before "SSL"
/usr/local/include/php/main/php_network.h:162: error: syntax error before 
"SSL_METHOD"


I can build this on the main server, but not in the jail.  '

the missing file is in /usr/local/include/openssl/ssl.h, but this is not in the 
include path noted with -I unless i'm blind

Any assistance is greatly appreciated.
Thanks
Jeff

ps. i'm aware that 4.4.0 is out, but they have changed some internal reference 
handling (http://bugs.php.net/bug.php?id=33643) and its way to much work to 
update the code, when its all moving to php5 anyway.



More information about the freebsd-ports mailing list