php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38880 Compiler error, php_bz2
Submitted: 2006-09-19 12:47 UTC Modified: 2006-09-19 14:18 UTC
From: Maylein at uni-hd dot de Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.1.6 OS: SuSE Linux 10.1
Private report: No CVE-ID: None
 [2006-09-19 12:47 UTC] Maylein at uni-hd dot de
Description:
------------
Compilation error php_bz2:

Compiler: gcc-4.1.0
php-5.1.6/ext/bz2/php_bz2.h:60: error: expected ')' before '*' token


Actual result:
--------------
/bin/sh /usr/local/src/php-5.1.6/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/bz2/ -I/usr/local/src/php-5.1.6/ext/bz2/ -DPHP_ATOM_INC -I/usr/local/src/php-5.1.6/include -I/usr/local/src/php-5.1.6/main -I/usr/local/src/php-5.1.6 -I/usr/include/libxml2 -I/usr/local/src/php-5.1.6/ext/date/lib -I/usr/local/src/php-5.1.6/ext/mbstring/oniguruma -I/usr/local/src/php-5.1.6/ext/mbstring/libmbfl -I/usr/local/src/php-5.1.6/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/local/src/php-5.1.6/TSRM -I/usr/local/src/php-5.1.6/Zend    -I/usr/include -g -O2  -c /usr/local/src/php-5.1.6/ext/bz2/bz2.c -o ext/bz2/bz2.lo
In file included from /usr/local/src/php-5.1.6/ext/bz2/bz2.c:26:
/usr/local/src/php-5.1.6/ext/bz2/php_bz2.h:60: error: expected ')' before '*' token
make: *** [ext/bz2/bz2.lo] Fehler 1



Configure options:
./configure  --with-mysql --with-apx2=/usr/local/httpd2/bin/apxs --enable-track-vars --enable-sockets --with-gettext=/usr --enable-exif --with-ldap=/usr --enable-wddx --enable-bcmath --no-create --no-recursion --disable-debug --enable-calendar --enable-ctype --enable-discard-path --enable-force-cgi-redirect --enable-inline-optimization --enable-magic-quotes --enable-mbstr-enc-trans --enable-mbstring --enable-memory-limit --enable-safe-mode --enable-shmop --enable-sigchild --enable-sysvsem --enable-track-vars --enable-trans-sid --enable-versioning --with-bz2 --with-dom=/usr/include/libxml2 --with-gettext --with-mcal=/usr --with-ndbm --with-ttf --with-xml --with-xpm-dir=/usr/X11R6 --with-zlib=yes --with-mm

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-19 12:51 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip


 [2006-09-19 12:57 UTC] Maylein at uni-hd dot de
With php5.2-200609191230 I got the following message (with the same compiler as last time):

./configure ...
...
Configuring libtool
checking build system type... i686-pc-linux-gnu
checking for ld used by gcc... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking for /usr/i586-suse-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking for object suffix... o
checking for executable suffix... no
checking for c++... no
checking for g++... no
checking for gcc... gcc
checking whether the C++ compiler (gcc   ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables
 [2006-09-19 12:59 UTC] tony2001@php.net
I can only repeat: your C++ compiler cannot create executables, since all the details are in your config.log.
 [2006-09-19 13:40 UTC] Maylein at uni-hd dot de
Sorry. php-5.1.6 compiles without c++ ...

Now I got:

In file included from /usr/local/src/php5.2-200609191230/main/php.h:34,
                 from /usr/local/src/php5.2-200609191230/ext/libxml/libxml.c:28:
/usr/local/src/php5.2-200609191230/Zend/zend.h:53:26: error: zend_config.h: No such file or directory
In file included from /usr/local/src/php5.2-200609191230/Zend/zend_alloc.h:27,
                 from /usr/local/src/php5.2-200609191230/Zend/zend.h:224,
                 from /usr/local/src/php5.2-200609191230/main/php.h:34,
                 from /usr/local/src/php5.2-200609191230/ext/libxml/libxml.c:28:
/usr/local/src/php5.2-200609191230/Zend/../TSRM/TSRM.h:18:26: error: tsrm_config.h: No such file or directory
In file included from /usr/local/src/php5.2-200609191230/Zend/zend.h:224,
                 from /usr/local/src/php5.2-200609191230/main/php.h:34,
                 from /usr/local/src/php5.2-200609191230/ext/libxml/libxml.c:28:
/usr/local/src/php5.2-200609191230/Zend/zend_alloc.h:34: error: expected specifier-qualifier-list before 'uint'
/usr/local/src/php5.2-200609191230/Zend/zend_alloc.h:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'char'
/usr/local/src/php5.2-200609191230/Zend/zend_alloc.h:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/local/src/php5.2-200609191230/Zend/zend_alloc.h:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/local/src/php5.2-200609191230/Zend/zend_alloc.h:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/local/src/php5.2-200609191230/Zend/zend_alloc.h:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/local/src/php5.2-200609191230/Zend/zend_alloc.h:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/local/src/php5.2-200609191230/Zend/zend_alloc.h:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/local/src/php5.2-200609191230/Zend/zend_alloc.h:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'char'
/usr/local/src/php5.2-200609191230/Zend/zend_alloc.h:50: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'char'
/usr/local/src/php5.2-200609191230/Zend/zend_alloc.h:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'size_t'
/usr/local/src/php5.2-200609191230/Zend/zend_alloc.h:94: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/local/src/php5.2-200609191230/Zend/zend_alloc.h:96: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/local/src/php5.2-200609191230/Zend/zend_alloc.h:97: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/local/src/php5.2-200609191230/Zend/zend_alloc.h:98: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
 [2006-09-19 13:42 UTC] tony2001@php.net
Please fix your system.
Not PHP problem.
 [2006-09-19 14:18 UTC] Maylein at uni-hd dot de
Ok. Seems to be a problem of "make clean"
which does not clean anything...


With the latest snapshop, php compiles
with --with-bz2
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 14:01:33 2025 UTC