php.net |  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
Votes:1
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dmda at yandex dot ru
New email:
PHP Version: OS:

 

 [2009-06-18 07:03 UTC] dmda at yandex dot ru
Description:
------------
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"



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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
(64bit)
 [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 \
--with-libxml-dir=/home/jvlad/php/install

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] jani@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


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

Still hangs compiling:
php5.3-200906181430/ext/fileinfo/libmagic/apprentice.c

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] pajoye@php.net
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-2019 The PHP Group
All rights reserved.
Last updated: Mon Nov 18 12:01:29 2019 UTC