|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48593 php 5.3RC3 won't compile at all
Submitted: 2009-06-18 07:03 UTC Modified: 2009-07-01 01:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: dmda at yandex dot ru Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 5.3.0RC3 OS: OpenBSD 4.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
33 - 23 = ?
Subscribe to this entry?

 [2009-06-18 07:03 UTC] dmda at yandex dot ru
1st. Compiler hangs in php-5.3.0RC3/ext/fileinfo/libmagic/apprentice.c

2nd. Disabling fileinfo extension leads to next problem:
/bin/sh /home/jvlad/php/php-5.3.0RC3/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/phar/ -I/home/jvlad/php/php-5.3.0RC3/ext/phar/ -DPHP_ATOM_INC -I/home/jvlad/php/php-5.3.0RC3/include -I/home/jvlad/php/php-5.3.0RC3/main -I/home/jvlad/php/php-5.3.0RC3 -I/home/jvlad/php/php-5.3.0RC3/ext/date/lib -I/home/jvlad/php/php-5.3.0RC3/ext/ereg/regex -I/home/jvlad/php/install/include/libxml2 -I/usr/local/include -I/home/jvlad/php/php-5.3.0RC3/ext/sqlite3/libsqlite -I/home/jvlad/php/php-5.3.0RC3/TSRM -I/home/jvlad/php/php-5.3.0RC3/Zend    -I/usr/local/include -g -O2  -c /home/jvlad/php/php-5.3.0RC3/ext/phar/util.c -o ext/phar/util.lo
In file included from /home/jvlad/php/php-5.3.0RC3/ext/spl/spl_array.h:25,
                 from /home/jvlad/php/php-5.3.0RC3/ext/phar/phar_internal.h:59,
                 from /home/jvlad/php/php-5.3.0RC3/ext/phar/util.c:23:
/home/jvlad/php/php-5.3.0RC3/ext/spl/php_spl.h:68: error: syntax error before "intptr_t"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-06-18 07:05 UTC] dmda at yandex dot ru
compiler: gcc version 3.3.5 (propolice)
$ uname -a
OpenBSD u.uud.localdomain 4.1 GENERIC#874 amd64
 [2009-06-18 07:07 UTC] dmda at yandex dot ru
configure's arguments:

./configure --prefix=/home/jvlad/php/install \
--enable-bcmath \
--enable-calendar \
--enable-wddx \
--with-zlib \
--disable-fileinfo \

libxml: 2.7.3, compiled from sources
 [2009-06-18 08:57 UTC] dmda at yandex dot ru
replacing intptr_t with zend_intptr_t in all spl's files fixes the problem.
 [2009-06-18 13:50 UTC]
Please try using this CVS snapshot:
For Windows:

 [2009-06-18 15:29 UTC] dmda at yandex dot ru
In short, all the same.

Still hangs compiling:

Disabling fileinfo php extension led to further error:

/bin/sh /home/jvlad/php/php5.3-200906181430/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/phar/ -I/home/jvlad/php/php5.3-200906181430/ext/phar/ -DPHP_ATOM_INC -I/home/jvlad/php/php5.3-200906181430/include -I/home/jvlad/php/php5.3-200906181430/main -I/home/jvlad/php/php5.3-200906181430 -I/home/jvlad/php/php5.3-200906181430/ext/date/lib -I/home/jvlad/php/php5.3-200906181430/ext/ereg/regex -I/home/jvlad/php/install/include/libxml2 -I/usr/local/include -I/home/jvlad/php/php5.3-200906181430/ext/sqlite3/libsqlite -I/home/jvlad/php/php5.3-200906181430/TSRM -I/home/jvlad/php/php5.3-200906181430/Zend    -I/usr/local/include -g -O2  -c /home/jvlad/php/php5.3-200906181430/ext/phar/util.c -o ext/phar/util.lo
In file included from /home/jvlad/php/php5.3-200906181430/ext/spl/spl_array.h:25,
                 from /home/jvlad/php/php5.3-200906181430/ext/phar/phar_internal.h:59,
                 from /home/jvlad/php/php5.3-200906181430/ext/phar/util.c:23:
/home/jvlad/php/php5.3-200906181430/ext/spl/php_spl.h:68: error: syntax error before "intptr_t"
*** Error code 1
 [2009-06-23 11:54 UTC]
Nobody seems to have openbsd 4.1 to reproduce this problem. If you can provide a patch (try RC4 btw), please do it :)
 [2009-07-01 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Aug 11 20:01:33 2020 UTC