php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45692 ext/fileinfo: expected identifier or ?(? before ?__extension__?
Submitted: 2008-08-02 21:56 UTC Modified: 2008-08-03 10:01 UTC
From: steffen dot weber at gmail dot com Assigned: derick (profile)
Status: Not a bug Package: Compile Failure
PHP Version: 5.3.0alpha1 OS: Gentoo Linux (x86)
Private report: No CVE-ID: None
 [2008-08-02 21:56 UTC] steffen dot weber at gmail dot com
Description:
------------
I get the following error message when I try to compile PHP 5.3 Alpha 1 using GCC 4.3.1 on Gentoo Linux x86:

/bin/sh /var/tmp/portage/dev-lang/php-5.3.0/work/php-5.3.0/libtool --silent --preserve-dup-deps --mode=compile i686-pc-linux-gnu-gcc -I/var/tmp/portage/dev-lang/php-5.3.0/work/php-5.3.0/ext/fileinfo/libmagic -Iext/fileinfo/ -I/var/tmp/portage/dev-lang/php-5.3.0/work/php-5.3.0/ext/fileinfo/ -DPHP_ATOM_INC -I/var/tmp/portage/dev-lang/php-5.3.0/work/php-5.3.0/include -I/var/tmp/portage/dev-lang/php-5.3.0/work/php-5.3.0/main -I/var/tmp/portage/dev-lang/php-5.3.0/work/php-5.3.0 -I/var/tmp/portage/dev-lang/php-5.3.0/work/php-5.3.0/ext/ereg/regex -I/usr/include/libxml2 -I/var/tmp/portage/dev-lang/php-5.3.0/work/php-5.3.0/ext/date/lib -I/usr/include/freetype2 -I/usr/include/imap -I/var/tmp/portage/dev-lang/php-5.3.0/work/php-5.3.0/ext/mbstring/oniguruma -I/var/tmp/portage/dev-lang/php-5.3.0/work/php-5.3.0/ext/mbstring/libmbfl -I/var/tmp/portage/dev-lang/php-5.3.0/work/php-5.3.0/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/pspell -I/var/tmp/portage/dev-lang/php-5.3.0/work/php-5.3.0/TSRM -I/var/tmp/portage/dev-lang/php-5.3.0/work/php-5.3.0/Zend    -I/usr/include -march=athlon64 -O2 -pipe -D_GNU_SOURCE  -c /var/tmp/portage/dev-lang/php-5.3.0/work/php-5.3.0/ext/fileinfo/libmagic/softmagic.c -o ext/fileinfo/libmagic/softmagic.lo 
/var/tmp/portage/dev-lang/php-5.3.0/work/php-5.3.0/ext/fileinfo/libmagic/softmagic.c:305: error: expected identifier or ?(? before ?__extension__?
/var/tmp/portage/dev-lang/php-5.3.0/work/php-5.3.0/ext/fileinfo/libmagic/softmagic.c:308: error: expected identifier or ?(? before ?__extension__?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-02 23:53 UTC] jani@php.net
Assigned to the maintainer.
 [2008-08-03 08:19 UTC] derick@php.net
Does this compile with pure sources (without the gentoo stuff)? Ie - download from php.net, and compile it by hand.
 [2008-08-03 08:43 UTC] steffen dot weber at gmail dot com
I thought I had removed all Gentoo specific patches, but a simple "./configure && make" without portage works fine. Sorry for the noise!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 18:01:31 2024 UTC