php.net |  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: ifeghali@php.net 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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ifeghali@php.net
New email:
PHP Version: OS:

 

 [2009-03-02 13:08 UTC] ifeghali@php.net
Description:
------------
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):

20c20
< 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)
---
> BUILD_CLI = $(LIBTOOL) --mode=link $(CC) -export-dynamic $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) -Wl,-brtl $(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:
--------------
$make

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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-03-02 22:36 UTC] jani@php.net
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] ifeghali@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 09:01:27 2024 UTC