|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47544 Make successfully completes but no php binary is generated
Submitted: 2009-03-02 13:08 UTC Modified: 2009-03-03 01:03 UTC
From: Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.3CVS-2009-03-02 (snap) OS: AIX 5.3
Private report: No CVE-ID: None
 [2009-03-02 13:08 UTC]
Similarly to what someone reported on Bug #43341, when compiling PHP 5.3 snap on AIX 5.3 (using IBM XLC and shipped tools) `make` succeeds but no php cli is generated at all.

Note the "echo '\" was supposed to build sapi/cli/php but it just echoes those two lines and nothing else.

I could workaround that by cleaning up (by hand) the BUILD_CLI variable after Makefile is generated. I am not sure why the original command is not working or whether (and why) it was generated in a faulty way. Maybe some tool shipped with AIX is the responsible for that ?

Follows the diff that works for me (sorry, no unified output format in AIX's diff):

< BUILD_CLI = echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg `echo $(PHP_GLOBAL_OBJS) $(PHP_CLI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'` | $(AWK) '{ if ((($$2 == "T") || ($$2 == "D") || ($$2 == "B")) && (substr($$3,1,1) != ".")) { print $$3 } }' | sort -u >> php.sym && $(LIBTOOL) --mode=link $(CC) -export-dynamic $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_CLI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $(SAPI_CLI_PATH)

Reproduce code:
$ ./configure
$ make
$ make test

Expected result:
sapi/cli/php to be generated.

Actual result:

Build complete.
Don't forget to run 'make test'.

$ make test
        echo '\

Build complete.
Don't forget to run 'make test'.

ERROR: Cannot run tests without CLI sapi.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-03-02 22:36 UTC]
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

You can always provide the feedback to the earlier report..
 [2009-03-03 01:03 UTC]
Hello Jani,

As far as i understand the original issue described in Bug #43341 was related to the apache that is shipped with Mac OS 10.5.

I have got PHP 5.3 CVS compiling and running smoothly on Mac OS 10.5 (with no magic, just the usual configure and make) but I have not found a way to get it compiling on AIX other than patching the Makefile as described above. This patch doesn't applies to Leopard as its BUILD_CLI variable is OK.

For said reason, I believe this specific issue deserves its own report as it has nothing to do with the original issue in Bug #43341.

If I am wrong Ill be glad to do as you said and revive Bug #43341.
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC