php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49788 Missing command in make file for "Generating phar.php"
Submitted: 2009-10-06 14:52 UTC Modified: 2013-02-18 00:34 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: venkata dot ballari at gmail dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 5.3.0 OS: AIX 5.3
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: venkata dot ballari at gmail dot com
New email:
PHP Version: OS:

 

 [2009-10-06 14:52 UTC] venkata dot ballari at gmail dot com
Description:
------------
The "Generating phar.php" section of make fails with the error:

/bin/sh[14]: -d:  not found.

Reproduce code:
---------------
cd php-5.3.0
./configure --prefix=/ballari/oa_apps --with-apxs2=/ballari/oa_apps/apache2/bin/apxs --with-config-file-path=/ballari/oa_apps/apache2/conf --with-gd --disable-static --enable-shared --enable-libxml --with-zlib --with-zlib-dir=/opt/freeware/lib --with-jpeg-dir=/opt/freeware/lib --with-mysql=/ballari/picc/db/mysql-standard-5.0.27-aix5.2-powerpc
make


Expected result:
----------------
make process completes without error.

Actual result:
--------------
-I/usr/include -g   -c main/internal_functions_cli.c -o main/internal_functions_cli.lo
        echo '\
\
Generating phar.php
/bin/sh[14]: -d:  not found.
make: 1254-004 The error code from the last command is 127.


Stop.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-06 15:25 UTC] jani@php.net
Please try using this snapshot:

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

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

And what shell are you using? Only bash is supported.
 [2009-10-08 08:16 UTC] venkata dot ballari at gmail dot com
I tried the snapshot available at http://snaps.php.net/php5.3-latest.tar.gz
I'm using bash. Still getting errors.

-I/usr/include -g   -c /home/oa_apps/php5.3-200910070430/ext/fileinfo/libmagic/encoding.c -o ext/fileinfo/libmagic/encoding.lo
    1500-052: (S) Cannot write object file.
make: 1254-004 The error code from the last command is 1.


Stop.
 [2009-10-14 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".
 [2010-05-09 23:20 UTC] felipe@php.net
-Status: No Feedback +Status: Feedback
 [2010-05-09 23:20 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-09-22 09:31 UTC] michael dot gilliam at aramco dot com
I downloaded the latest release that was mentioned at the bottom of them message 
and I still get the same error that was mentioned as this thread was opened.

/home/gilliamb/php5.3-201009220630/sapi/cli/php_cli.c: In function 
'cli_seek_file_begin':
/home/gilliamb/php5.3-201009220630/sapi/cli/php_cli.c:621: warning: comparison 
is always true due to limited range of data type
/home/gilliamb/php5.3-201009220630/sapi/cli/php_cli.c: In function 'main':
/home/gilliamb/php5.3-201009220630/sapi/cli/php_cli.c:1402: warning: visibility 
attribute not supported in this configuration; ignored
/home/gilliamb/php5.3-201009220630/sapi/cli/php_cli.c: At top level:
/home/gilliamb/php5.3-201009220630/sapi/cli/php_cli.c:1402: warning: visibility 
attribute not supported in this configuration; ignored
        /bin/sh /home/gilliamb/php5.3-201009220630/libtool --silent --preserve-
dup-deps --mode=compile gcc  -Isapi/cli/ -I/home/gilliamb/php5.3-
201009220630/sapi/cli/ -DPHP_ATOM_INC -I/home/gilliamb/php5.3-
201009220630/include -I/home/gilliamb/php5.3-201009220630/main -
I/home/gilliamb/php5.3-201009220630 -I/home/gilliamb/php5.3-
201009220630/ext/date/lib -I/home/gilliamb/php5.3-201009220630/ext/ereg/regex -
I/opt/freeware/include/libxml2 -I/usr/local/nssg/curl/include -
I/usr/local/nssg/openldap/include -I/home/gilliamb/php5.3-
201009220630/ext/mbstring/oniguruma -I/home/gilliamb/php5.3-
201009220630/ext/mbstring/libmbfl -I/home/gilliamb/php5.3-
201009220630/ext/mbstring/libmbfl/mbfl -I/home/gilliamb/php5.3-201009220630/TSRM 
-I/home/gilliamb/php5.3-201009220630/Zend    -I/usr/include -g -O2 -
fvisibility=hidden   -c /home/gilliamb/php5.3-
201009220630/sapi/cli/php_cli_readline.c -o sapi/cli/php_cli_readline.lo 
        /bin/sh /home/gilliamb/php5.3-201009220630/libtool --silent --preserve-
dup-deps --mode=compile gcc  -Imain/ -I/home/gilliamb/php5.3-201009220630/main/ 
-DPHP_ATOM_INC -I/home/gilliamb/php5.3-201009220630/include -
I/home/gilliamb/php5.3-201009220630/main -I/home/gilliamb/php5.3-201009220630 -
I/home/gilliamb/php5.3-201009220630/ext/date/lib -I/home/gilliamb/php5.3-
201009220630/ext/ereg/regex -I/opt/freeware/include/libxml2 -
I/usr/local/nssg/curl/include -I/usr/local/nssg/openldap/include -
I/home/gilliamb/php5.3-201009220630/ext/mbstring/oniguruma -
I/home/gilliamb/php5.3-201009220630/ext/mbstring/libmbfl -
I/home/gilliamb/php5.3-201009220630/ext/mbstring/libmbfl/mbfl -
I/home/gilliamb/php5.3-201009220630/TSRM -I/home/gilliamb/php5.3-
201009220630/Zend    -I/usr/include -g -O2 -fvisibility=hidden   -c 
main/internal_functions_cli.c -o main/internal_functions_cli.lo 
        echo '\
\
Generating phar.php
/bin/sh[14]: /home/gilliamb/php5.3-201009220630/sapi/cli/php:  not found.
make: 1254-004 The error code from the last command is 127.


Stop.
 [2010-12-10 07:54 UTC] steve at falchion dot com
I have the same issue, after "Generating phar.php" I get
/bin/sh[14]: /home/steve/anisoft/php/php-5.3.3/sapi/cli/pdp: not found

Ayone figgure this one out?
 [2010-12-10 08:56 UTC] steve at falchion dot com
Sorry for the previous "Me too!".  After some searching, it appears that sapi/cli/php has not been built when phar ties to run it, so a workaround is to re-configure with --disable-phar (assuming you don't need phar), but it would be nicer if the build order was adjusted so that it worked... *shrug*

Hmm.. make test just failed because CLI sapi is not there after "make".  perhaps I missed a config switch to build it?  Tried with --enable-cli (although this is the advertised default) and it compiles php_cli.lo, php_cli_readline.lo and then main/internal_functions_cli.lo and then stops saying complete, but the php executable was never built.

There we go.  Switched to gmake, and it created the php executable.

re-ran configure without --disable-phar and re-ran "gmake clean;gmake", this time, no issues.
 [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.
 [2017-09-02 11:17 UTC] amael dot heiligtag at capgemini dot com
Hello, same problem on AIX7.1 with php-7.1.9 and ccs make. sapi/cli/php is not generated and thus phar generation fails.

Switching to gmake solves the problem.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC