php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54700 PEAR won't compile extensions after PHP is compiled with CFLAGS
Submitted: 2011-05-10 09:55 UTC Modified: 2011-08-08 09:14 UTC
From: pythod at gmail dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: Irrelevant OS: Ubuntu 2.6.32-31-server 10.04.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pythod at gmail dot com
New email:
PHP Version: OS:

 

 [2011-05-10 09:55 UTC] pythod at gmail dot com
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#

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-08-08 09:14 UTC] johannes@php.net
-Status: Open +Status: Bogus
 [2011-08-08 09:14 UTC] johannes@php.net
There's not much we can do. Storing the CFLAGS is not an good option as building PHP might be done using special options or a different compiler or such from building extensions.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 03:01:27 2024 UTC