php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49890 while compiling php from source missing file failure (case sensitive)
Submitted: 2009-10-15 13:04 UTC Modified: 2013-02-18 00:34 UTC
Votes:8
Avg. Score:4.1 ± 1.4
Reproduced:7 of 8 (87.5%)
Same Version:4 (57.1%)
Same OS:2 (28.6%)
From: egemensoylu at hotmail dot com Assigned: cellog (profile)
Status: No Feedback Package: PHAR related
PHP Version: 5.3.0 OS: Debian 5
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-10-15 13:04 UTC] egemensoylu at hotmail dot com
Description:
------------
I'm trying to compile php with ;

./configure \
          --with-oci8=$ORACLE_HOME \
          --with-apxs2=/usr/local/apache/bin/apxs \
          --with-config-file-path=/usr/local/apache/conf \
          --enable-sigchild


configuration OK

when try to make
#make
...
...

Parse error: syntax error, unexpected '/', expecting ')' in /home/eggm                                                                                  an/php-5.3.0/ext/phar/phar.php on line 112
make: *** [ext/phar/phar.phar] Hata 255

actualy when first error occur I try to dig it then I find that
compiler looking for that file 
/home/eggman/php-5.3.0/ext/phar/phar/directorytreeIterator.inc
but actual file name is "directorytreeIterator.inc"

mv directorytreeIterator.inc directorytreeiterator.inc

.configure && make again than same problem with

/home/eggman/php-5.3.0/ext/phar/phar/directorygraphIterator.inc
=>                                                 ^ 
/home/eggman/php-5.3.0/ext/phar/phar/directorygraphiterator.inc

rename it too then .configure make telling me

Parse error: syntax error, unexpected '/', expecting ')' in /home/eggm                                                                                  an/php-5.3.0/ext/phar/phar.php on line 112
make: *** [ext/phar/phar.phar] Hata 255

at that line an array has ('valuevaluevalue', ) syntax...

now i'm try to compile 5.2.11

Thanks.










Reproduce code:
---------------
with php-5.3.0.tar.bz2 at offical php source

    # tar -jxvf php-5.2.9.tar.bz2
    # cd php-5.2.9
    # export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
    # ./configure \
          --with-oci8=$ORACLE_HOME \
          --with-apxs2=/usr/local/apache/bin/apxs \
          --with-config-file-path=/usr/local/apache/conf \
          --enable-sigchild
    # make



Expected result:
----------------
OK

Actual result:
--------------
FAIL

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-15 13:07 UTC] pajoye@php.net
Please try using this snapshot:

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

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


 [2009-10-15 13:47 UTC] egemensoylu at hotmail dot com
Pajoye, i'm getting same error with the latest snapshot which you suggest.

------------------------------------------------------------------
Parse error: syntax error, unexpected '/', expecting ')' in /home/eggman/php5.3-200910151230/ext/phar/phar.php on line 20
make: *** [ext/phar/phar.phar] Hata 255

Hata 255 => Error 255 as you know.
------------------------------------------------------------------

At the 20. line of phar.php this if block begins;

if (!class_exists('DirectoryTreeIterator', 0))
{

Warning: file(/home/eggman/php5.3-200910151230/ext/phar/phar/directorytreeIterator.inc): failed to open stream: No such file or directory in /home/eggman/php5.3-200910151230/ext/phar/build_precommand.php on line 31

Warning: join(): Invalid arguments passed in /home/eggman/php5.3-200910151230/ext/phar/build_precommand.php on line 49

}

---------------------------------------------------------------

actual file name is directorytreeiterator.inc
                                 ^

when i rename that file 
directorygraphiterator.inc error
...
...



---------------------------------------------------------------
in addition for 5.2.11

configuring ok
make ok
make test ok

squirrel:/home/eggman/php-5.2.11# make install
Installing PHP SAPI module:       apache2handler
/usr/local/apache/build/instdso.sh SH_LIBTOOL='/usr/local/apache/build/libtool' libphp5.la /usr/local/apache/modules
/usr/local/apache/build/libtool --mode=install cp libphp5.la /usr/local/apache/modules/
cp .libs/libphp5.so /usr/local/apache/modules/libphp5.so
cp .libs/libphp5.lai /usr/local/apache/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish /home/eggman/php-5.2.11/libs'
chmod 755 /usr/local/apache/modules/libphp5.so

after 5 minutes still waiting that line is that normal?
 [2009-10-15 14:52 UTC] egemensoylu at hotmail dot com
Next snapshot php5.3-200910151430
error still...

Parse error: syntax error, unexpected '/', expecting ')' in /home/eggman/php5.3-200910151430/ext/phar/phar.php on line 20
make: *** [ext/phar/phar.phar] Hata 255
 [2010-03-06 16:36 UTC] felipe@php.net
-Status: Assigned +Status: Feedback
 [2010-03-06 16:36 UTC] felipe@php.net
Please try using this snapshot:

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

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


 [2010-03-11 12:43 UTC] fatih dot ustundag at gmail dot com
I am using Ubuntu 9.10 Turkish for development. output of "locale" is :

LANG=tr_TR.UTF-8
LC_CTYPE="tr_TR.UTF-8"
LC_NUMERIC="tr_TR.UTF-8"
LC_TIME="tr_TR.UTF-8"
LC_COLLATE="tr_TR.UTF-8"
LC_MONETARY="tr_TR.UTF-8"
LC_MESSAGES="tr_TR.UTF-8"
LC_PAPER="tr_TR.UTF-8"
LC_NAME="tr_TR.UTF-8"
LC_ADDRESS="tr_TR.UTF-8"
LC_TELEPHONE="tr_TR.UTF-8"
LC_MEASUREMENT="tr_TR.UTF-8"
LC_IDENTIFICATION="tr_TR.UTF-8"
LC_ALL=


If I compile php 5.3.2 with this locale, I get same error. But, before make 

export LC_ALL=en_US.UTF-8

solved problem. I think problem is about turkish char "ı","İ"
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 [2014-02-11 18:27 UTC] hasegeli at startupkitchen dot co
I have experienced the same problem PHP 5.4.25 on Debian GNU/Linux 7. 

LANG=tr_TR.UTF-8
LANGUAGE=tr_TR:tr
LC_CTYPE="tr_TR.UTF-8"
LC_NUMERIC="tr_TR.UTF-8"
LC_TIME="tr_TR.UTF-8"
LC_COLLATE="tr_TR.UTF-8"
LC_MONETARY="tr_TR.UTF-8"
LC_MESSAGES="tr_TR.UTF-8"
LC_PAPER="tr_TR.UTF-8"
LC_NAME="tr_TR.UTF-8"
LC_ADDRESS="tr_TR.UTF-8"
LC_TELEPHONE="tr_TR.UTF-8"
LC_MEASUREMENT="tr_TR.UTF-8"
LC_IDENTIFICATION="tr_TR.UTF-8"
LC_ALL=tr_TR.UTF-8

./configure --with-config-file-path=/etc/php --with-config-file-scan-dir=/etc/php/conf.d --enable-bcmath --enable-mbstring --with-mcrypt --with-gd --enable-ftp --enable-soap --enable-zip --enable-pcntl --with-bz2 --with-mhash --with-pcre-regex --with-zlib --with-pear --disable-cgi --enable-fpm --with-zlib --enable-pcntl --with-pgsql --with-pdo-pgsql --with-curl --with-openssl

Parse error: syntax error, unexpected '/', expecting ')' in /usr/local/src/php-5.4.23/ext/phar/phar.php on line 20
make: *** [ext/phar/phar.phar] Hata 255
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Jul 02 12:01:25 2020 UTC