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

Reply via email to