Mantis - php5
Viewing Issue Advanced Details
4904 packaging minor always 2012-02-22 15:08 2012-03-25 04:54
weyhmueller  
bwalton  
normal  
closed  
fixed  
none    
none  
0004904: missing php5_zlib module
I am missing the zlib module and the functions that it provides.

e.g : "PHP Fatal error: Call to undefined function gzdeflate() in /var/opt/csw/nginx/simplesamlphp-1.8.2/lib/SAML2/HTTPRedirect.php on line 36"

Is there a specific reason why this is not available?
Issue History
2012-02-22 15:08 weyhmueller New Issue
2012-02-22 15:16 bwalton Note Added: 0009630
2012-02-22 15:16 bwalton Status new => assigned
2012-02-22 15:16 bwalton Assigned To => bwalton
2012-02-22 15:16 bwalton Status assigned => feedback
2012-02-22 15:20 weyhmueller Note Added: 0009631
2012-02-22 15:27 bwalton Note Added: 0009632
2012-02-22 15:29 weyhmueller Note Added: 0009633
2012-02-23 02:28 bwalton Note Added: 0009641
2012-02-23 05:59 weyhmueller Note Added: 0009642
2012-02-24 02:34 bwalton Note Added: 0009655
2012-03-15 01:32 bwalton Note Added: 0009728
2012-03-25 04:54 bwalton Note Added: 0009764
2012-03-25 04:54 bwalton Status feedback => closed
2012-03-25 04:54 bwalton Resolution open => fixed

Notes
(0009630)
bwalton   
2012-02-22 15:16   
Hello,

Do you have CSWphp5-zip installed? Many of the modules were split out to separate packages by the previous maintainer. I do aim to make this nicer in the future but haven't done so yet.

Thanks
-Ben
(0009631)
weyhmueller   
2012-02-22 15:20   
Hi Ben,

CSWphp5-zip is installed.

Regards
Oliver
(0009632)
bwalton   
2012-02-22 15:27   
Hi Oliver,

Is extension=zip.so uncommented in /etc/opt/csw/php5/php.ini? This is supposed to happen at package install time, but maybe the handler isn't working?

Thanks
-Ben
(0009633)
weyhmueller   
2012-02-22 15:29   
Hi Ben,

zip.so is also activated. But from my understanding this is a different module the zlib.so.

Regards
Oliver
(0009641)
bwalton   
2012-02-23 02:28   
Hi Oliver,

The sample program here[1] works fine on my system. What version of the packages are you running? Which solaris release? Which OpenCSW catalog are you running?

Thanks
-Ben

[1] http://www.php.net/manual/en/zlib.examples.php [^]
(0009642)
weyhmueller   
2012-02-23 05:59   
Hi Ben,

I am using the OpenCSW Testing branch on an Solaris 10 10/09 System. I currently have CSWphp5-5.3.10,REV=2012.02.10.

I just tried that example on command line and was rather surprised that it worked well. But it gave me warnings because the pdo and dom modules weren't loaded - which i disabled from php.ini because yesterday i got warnings of them loaded twice. I then did a phpinfo there (on cli) and got that configure command:

'/home/bwalton/opencsw/php5/trunk/work/solaris10-sparc/build-isa-sparcv8plus-sapi-ap2/php-5.3.10/configure' '--prefix=/opt/csw/php5' '--sysconfdir=/etc/opt/csw/php5' '--enable-simplexml' '--disable-static' '--enable-xml' '--enable-intl' '--with-libxml-dir=/opt/csw' '--with-config-file-path=/etc/opt/csw/php5' '--with-config-file-scan-dir=/etc/opt/csw/php5/conf.d' '--enable-bcmath=shared' '--enable-calendar=shared' '--enable-cli' '--enable-ctype=shared' '--enable-dba=shared' '--enable-dom=shared' '--enable-exif=shared' '--enable-filter=shared' '--enable-ftp=shared' '--enable-gd-jis-conv' '--enable-gd-native-ttf' '--enable-hash=shared' '--enable-json=shared' '--enable-magic-quotes' '--enable-mbstring=shared' '--enable-pcntl=shared' '--enable-pdo=shared' '--enable-phar=shared' '--enable-posix=shared' '--enable-session=shared' '--enable-shmop=shared' '--enable-soap=shared' '--enable-sockets=shared' '--enable-sqlite-utf8' '--enable-sysvmsg=shared' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--enable-tokenizer=shared' '--enable-wddx=shared' '--enable-xmlreader=shared' '--enable-xmlwriter=shared' '--enable-zip=shared' '--with-apxs2=/opt/csw/apache2/sbin/apxs' '--with-bz2=shared,/opt/csw' '--with-curl=shared,/opt/csw' '--with-curlwrappers' '--with-db4=/opt/csw/bdb4' '--with-exec-dir=/opt/csw/php5/bin' '--with-freetype-dir=/opt/csw' '--with-gd=shared,/opt/csw' '--with-gdbm=/opt/csw' '--with-gettext=shared,/opt/csw' '--with-gmp=shared,/opt/csw' '--with-iconv=shared,/opt/csw' '--with-imap-ssl=/opt/csw' '--with-imap=shared,/opt/csw' '--with-jpeg-dir=/opt/csw' '--with-kerberos=/opt/csw' '--with-ldap-sasl=/opt/csw' '--with-ldap=shared,/opt/csw' '--with-libedit=no' '--with-libexpat-dir=/opt/csw' '--with-mcrypt=shared,/opt/csw' '--with-mhash=shared,/opt/csw' '--with-mm=/opt/csw' '--with-mssql=shared,/opt/csw' '--with-mysql=shared,/opt/csw' '--with-mysqli=shared,/opt/csw/bin/mysql_config-5.0' '--with-ndbm' '--with-openssl=shared,/opt/csw' '--with-pcre-dir=/opt/csw' '--with-pcre-regex' '--with-pdo-mysql=shared,/opt/csw/bin/mysql_config-5.0' '--with-pdo-odbc=shared,unixODBC,/opt/csw' '--with-pdo-pgsql=shared,/opt/csw/postgresql' '--with-pdo-sqlite=shared,/opt/csw' '--with-pear=shared' '--with-pgsql=shared,/opt/csw/postgresql' '--with-png-dir=/opt/csw' '--with-pspell=shared,/opt/csw' '--with-readline=shared,/opt/csw' '--with-snmp=shared,/opt/csw' '--with-sqlite=shared,/opt/csw' '--with-t1lib=/opt/csw' '--with-tidy=shared,/opt/csw' '--with-unixODBC=shared,/opt/csw' '--with-xmlrpc=shared' '--with-xpm-dir=/opt/csw' '--with-xsl=shared,/opt/csw' '--with-zlib-dir=/opt/csw' '--with-zlib=/opt/csw'

But for web sites I am using php-cgi as a fastcgi-server behind an nginx webserver. So i did an phpinfo there as well.

The configure line on php-cgi is completely different:

'/home/bwalton/opencsw/php5/trunk/work/solaris10-sparc/build-isa-sparcv8plus-sapi-cgi/php-5.3.10/configure' '--prefix=/opt/csw/php5' '--sysconfdir=/etc/opt/csw/php5' '--enable-simplexml' '--disable-static' '--enable-xml' '--enable-intl' '--with-libxml-dir=/opt/csw' '--with-config-file-path=/etc/opt/csw/php5' '--with-config-file-scan-dir=/etc/opt/csw/php5/conf.d'

Also /opt/csw/php5/bin/php-cgi was built one day earlier that /opt/csw/php5/bin/php according to phpinfo output.

When I compiled php the last time myself (some years ago) i think i did just one configure / make / make install to get both executables with identical configuration.

Regards
Oliver
(0009655)
bwalton   
2012-02-24 02:34   
Ah! That's the trouble. I tried to decrease the build time by only building modules once. I'll need to ensure that the parts that don't get split out to separate modules are included in every build. Rolling an update now.
(0009728)
bwalton   
2012-03-15 01:32   
There are test packages available here: http://buildfarm.opencsw.org/experimental.html [^]

See the 'bdw' catalog which will be visible shortly. It should fix this issue as the modules are built for both cgi and ap2 compiles now.
(0009764)
bwalton   
2012-03-25 04:54   
Updated packages pushed to unstable.