Bug #65106 [NEW]: PHP fails to compile
From: mark at kreine dot ru
Operating system: CentOS 6.4
PHP version: 5.5.0
Package: Compile Failure
Bug Type: Bug
Bug description:PHP fails to compile
Description:
------------
Hello,
I'm trying to compile PHP with the following configure command script:
./configure --prefix=/soft/php --with-apxs2=/soft/httpd/bin/apxs
--with-libxml-dir=/soft/libxml --with-zlib-dir=/soft/zlib
--with-zlib=shared,/soft/zlib --enable-bcmath --enable-exif
--with-pcre-dir=/soft/pcre --with-jpeg-dir=/soft/libjpeg
--with-png-dir=/soft/libpng --with-gd=shared
--with-mysql=shared,/soft/mysql
--with-mysqli=shared,/soft/mysql/bin/mysql_config
--with-pdo-mysql=shared,/soft/mysql --enable-mbstring --enable-ftp
--enable-calendar --enable-sockets --enable-soap --enable-zip
While configure ends successfully, make returns the following error:
/bin/bash /tmp/php-5.5.0/libtool --silent --preserve-dup-deps
--mode=compile cc -I/tmp/php-5.5.0/ext/fileinfo/libmagic -Iext/fileinfo/
-I/tmp/php-5.5.0/ext/fileinfo/ -DPHP_ATOM_INC -I/tmp/php-5.5.0/include
-I/tmp/php-5.5.0/main -I/tmp/php-5.5.0 -I/tmp/php-5.5.0/ext/date/lib
-I/tmp/php-5.5.0/ext/ereg/regex -I/soft/libxml/include/libxml2
-I/soft/zlib/include -I/soft/libjpeg/include -I/soft/libpng/include
-I/tmp/php-5.5.0/ext/mbstring/oniguruma
-I/tmp/php-5.5.0/ext/mbstring/libmbfl
-I/tmp/php-5.5.0/ext/mbstring/libmbfl/mbfl -I/soft/mysql/include/mysql
-I/tmp/php-5.5.0/ext/sqlite3/libsqlite -I/tmp/php-5.5.0/TSRM
-I/tmp/php-5.5.0/Zend -I/usr/include -g -O2 -fvisibility=hidden -c
/tmp/php-5.5.0/ext/fileinfo/libmagic/apprentice.c -o
ext/fileinfo/libmagic/apprentice.lo
cc: internal compiler error: Killed (program cc1)
Then it says:
make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1
Test script:
---------------
./configure --prefix=/soft/php --with-apxs2=/soft/httpd/bin/apxs
--with-libxml-dir=/soft/libxml --with-zlib-dir=/soft/zlib
--with-zlib=shared,/soft/zlib --enable-bcmath --enable-exif
--with-pcre-dir=/soft/pcre --with-jpeg-dir=/soft/libjpeg
--with-png-dir=/soft/libpng --with-gd=shared
--with-mysql=shared,/soft/mysql
--with-mysqli=shared,/soft/mysql/bin/mysql_config
--with-pdo-mysql=shared,/soft/mysql --enable-mbstring --enable-ftp
--enable-calendar --enable-sockets --enable-soap --enable-zip
Expected result:
----------------
Successful configuration and compilation
Actual result:
--------------
Firstly:
/bin/bash /tmp/php-5.5.0/libtool --silent --preserve-dup-deps
--mode=compile cc -I/tmp/php-5.5.0/ext/fileinfo/libmagic -Iext/fileinfo/
-I/tmp/php-5.5.0/ext/fileinfo/ -DPHP_ATOM_INC -I/tmp/php-5.5.0/include
-I/tmp/php-5.5.0/main -I/tmp/php-5.5.0 -I/tmp/php-5.5.0/ext/date/lib
-I/tmp/php-5.5.0/ext/ereg/regex -I/soft/libxml/include/libxml2
-I/soft/zlib/include -I/soft/libjpeg/include -I/soft/libpng/include
-I/tmp/php-5.5.0/ext/mbstring/oniguruma
-I/tmp/php-5.5.0/ext/mbstring/libmbfl
-I/tmp/php-5.5.0/ext/mbstring/libmbfl/mbfl -I/soft/mysql/include/mysql
-I/tmp/php-5.5.0/ext/sqlite3/libsqlite -I/tmp/php-5.5.0/TSRM
-I/tmp/php-5.5.0/Zend -I/usr/include -g -O2 -fvisibility=hidden -c
/tmp/php-5.5.0/ext/fileinfo/libmagic/apprentice.c -o
ext/fileinfo/libmagic/apprentice.lo
cc: internal compiler error: Killed (program cc1)
Then:
make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1
--
Edit bug report at https://bugs.php.net/bug.php?id=65106&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65106&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65106&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65106&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=65106&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=65106&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=65106&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=65106&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=65106&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=65106&r=support
Expected behavior: https://bugs.php.net/fix.php?id=65106&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=65106&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=65106&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=65106&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65106&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=65106&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=65106&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=65106&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65106&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=65106&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=65106&r=mysqlcfg
Thread (12 messages)
- mark at kreine dot ru
- mark at kreine dot ruBug #65106 [Opn]: PHP fails to compile
- rasmus@php.netBug #65106 [Opn->Fbk]: PHP fails to compile
- nhawks at gmail dot comBug #65106 [Com]: PHP fails to compile
- php-bugs at lists dot php dot netBug #65106 [Fbk->NoF]: PHP fails to compile
- brandon at brandonsavage dot netBug #65106 [Com]: PHP fails to compile
- noreplythanks at example dot fake dot comBug #65106 [Com]: PHP fails to compile
- slier81 at gmail dot comBug #65106 [Com]: PHP fails to compile
- guillaume-php at outters dot euBug #65106 [Com]: PHP fails to compile
- guillaume-php at outters dot euBug #65106 [Com]: PHP fails to compile
- cmb@php.netBug #65106 [NoF->ReO]: PHP fails to compile
- guillaume-php@outters.euBug #65106 [PATCH]: PHP fails to compile