From: Operating system: Ubuntu 2.6.32-31-server 10.04.2 PHP version: Irrelevant Package: Compile Failure Bug Type: Bug Bug description:PEAR won't compile extensions after PHP is compiled with CFLAGS
Description: ------------ I custom compiled PHP 5.3.4 with this command on my 64-bit Ubuntu 2.6.32-31-server 10.04.2 Server with the latest updates applied. I am trying to compile PHP to handle large files (2GB+). The installation goes well if I compile PHP without the CFLAGS. Also, the version of the PHP doesn't matter either--I have the same problem if I try to compile 5.2.11. [COMMANDS] cd /usr/local/src/; rm * -fR; cd /usr/local/src/;wget http://us.php.net/distributions/php-5.3.4.tar.gz;wget http://download.suhosin.org/suhosin-patch-5.3.4-0.9.10.patch.gz cd /usr/local/src/; rm php-5.3.4/ -fR; tar -xzf php-5.3.4.tar.gz; gunzip suhosin-patch-5.3.4-0.9.10.patch.gz; cd php-5.3.4/; patch -p 1 -i ../suhosin-patch-5.3.4-0.9.10.patch ;touch ac* ;./buildconf --force cd /usr/local/src/php-5.3.4/; CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" ./configure --prefix=/usr --with-config-file-path=/etc/php5/cgi --with-config-file-scan-dir=/etc/php5/cgi/conf.d --mandir=/usr/share/man --disable-debug --disable-pdo --disable-rpath --disable-static --enable-bcmath --enable-calendar --enable-ctype --enable-dbx --enable-discard-path --enable-exif --enable-fastcgi --enable-filepro --enable-force-redirect --enable-ftp --enable-gd-native-ttf --enable-inline-optimization --enable-mbregex --enable-mbstring --enable-memcache --enable-memory-limit --enable-pcntl --enable-pic --enable-session --enable-shmop --enable-simplexml --enable-soap --enable-sockets --enable-suhosin --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-track-vars --enable-trans-sid --enable-wddx --enable-xslt --enable-zip --with-bz2 --with-curl=shared,/usr --with-curlwrappers --with-exec-dir=/usr/lib/php5/libexec --with-freetype-dir=shared,/usr --with-gd=shared,/usr --with-gettext --with-gmp=shared,/usr --with-iconv --with-jpeg-dir=shared,/usr --with-kerberos=/usr --with-layout=GNU --with-libxml-dir=/usr --with-mcrypt --with-mhash=shared,/usr --with-mime-magic=/usr/share/file/magic.mime --with-mysql=shared,/usr --with-mysqli=shared,/usr/bin/mysql_config --with-openssl=/usr --without-gdbm --without-mm --without-pdo-sqlite --without-sqlite --with-pcre-regex=/usr --with-pear=/usr/share/php --with-pic --with-png-dir=shared,/usr --with-regex=php --with-system-tzdata --with-tidy=shared,/usr --with-ttf=shared,/usr --with-xml --with-xmlrpc=shared --with-xpm-dir=shared --with-xsl=shared,/usr --with-zlib;make; make install [/COMMANDS] I then issued these commands to install PHP extensions: [COMMANDS] pear update-channels;pecl uninstall apc;pecl install apc;pear upgrade PEAR; pear install HTTP; pear install HTTP_Download; pear install HTTP_Header; pear install MIME_Type; pecl install pecl_http [/COMMANDS] OUTPUT: root@web1:/usr# pear update-channels;pecl uninstall apc;pecl install apc;pear upgrade PEAR; pear install HTTP; pear install HTTP_Download; pear install HTTP_Header; pear install MIME_Type; pecl install pecl_http Updating channel "doc.php.net" Channel "doc.php.net" is up to date Updating channel "pear.php.net" Channel "pear.php.net" is up to date Updating channel "pecl.php.net" Channel "pecl.php.net" is up to date pecl/apc not installed downloading APC-3.1.6.tgz ... Starting to download APC-3.1.6.tgz (148,835 bytes) .................................done: 148,835 bytes downloading PEAR-1.9.2.tgz ... Starting to download PEAR-1.9.2.tgz (295,120 bytes) .............................................................done: 295,120 bytes downloading HTTP-1.4.1.tgz ... Starting to download HTTP-1.4.1.tgz (8,635 bytes) .....done: 8,635 bytes Did not download optional dependencies: pear/Archive_Zip, pear/MIME_Type, use --alldeps to download automatically pear/HTTP_Download can optionally use package "pear/Archive_Zip" pear/HTTP_Download can optionally use package "pear/MIME_Type" pear/HTTP_Download can optionally use PHP extension "mime_magic" pear/HTTP_Download can optionally use PHP extension "pgsql" downloading HTTP_Download-1.1.4.tgz ... Starting to download HTTP_Download-1.1.4.tgz (14,571 bytes) .....done: 14,571 bytes downloading HTTP_Header-1.2.1.tgz ... Starting to download HTTP_Header-1.2.1.tgz (10,682 bytes) .....done: 10,682 bytes Did not download optional dependencies: pear/System_Command, use --alldeps to download automatically pear/MIME_Type can optionally use package "pear/System_Command" downloading MIME_Type-1.2.1.tgz ... Starting to download MIME_Type-1.2.1.tgz (11,609 bytes) .....done: 11,609 bytes downloading pecl_http-1.7.0.tgz ... Starting to download pecl_http-1.7.0.tgz (173,979 bytes) .....................................done: 173,979 bytes root@web1:/usr# Test script: --------------- Please see above in the "Description" field. Expected result: ---------------- All extensions would be installed automatically if PHP is compiled without the CFLAGS. Actual result: -------------- root@web1:/usr# pear update-channels;pecl uninstall apc;pecl install apc;pear upgrade PEAR; pear install HTTP; pear install HTTP_Download; pear install HTTP_Header; pear install MIME_Type; pecl install pecl_http Updating channel "doc.php.net" Channel "doc.php.net" is up to date Updating channel "pear.php.net" Channel "pear.php.net" is up to date Updating channel "pecl.php.net" Channel "pecl.php.net" is up to date pecl/apc not installed downloading APC-3.1.6.tgz ... Starting to download APC-3.1.6.tgz (148,835 bytes) .................................done: 148,835 bytes downloading PEAR-1.9.2.tgz ... Starting to download PEAR-1.9.2.tgz (295,120 bytes) .............................................................done: 295,120 bytes downloading HTTP-1.4.1.tgz ... Starting to download HTTP-1.4.1.tgz (8,635 bytes) .....done: 8,635 bytes Did not download optional dependencies: pear/Archive_Zip, pear/MIME_Type, use --alldeps to download automatically pear/HTTP_Download can optionally use package "pear/Archive_Zip" pear/HTTP_Download can optionally use package "pear/MIME_Type" pear/HTTP_Download can optionally use PHP extension "mime_magic" pear/HTTP_Download can optionally use PHP extension "pgsql" downloading HTTP_Download-1.1.4.tgz ... Starting to download HTTP_Download-1.1.4.tgz (14,571 bytes) .....done: 14,571 bytes downloading HTTP_Header-1.2.1.tgz ... Starting to download HTTP_Header-1.2.1.tgz (10,682 bytes) .....done: 10,682 bytes Did not download optional dependencies: pear/System_Command, use --alldeps to download automatically pear/MIME_Type can optionally use package "pear/System_Command" downloading MIME_Type-1.2.1.tgz ... Starting to download MIME_Type-1.2.1.tgz (11,609 bytes) .....done: 11,609 bytes downloading pecl_http-1.7.0.tgz ... Starting to download pecl_http-1.7.0.tgz (173,979 bytes) .....................................done: 173,979 bytes root@web1:/usr# -- Edit bug report at http://bugs.php.net/bug.php?id=54700&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54700&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54700&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54700&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54700&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54700&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54700&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54700&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54700&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54700&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54700&r=support Expected behavior: http://bugs.php.net/fix.php?id=54700&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54700&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54700&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54700&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54700&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54700&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54700&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54700&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54700&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54700&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54700&r=mysqlcfg