ID:               47544
 Updated by:       j...@php.net
 Reported By:      ifegh...@php.net
-Status:           Open
+Status:           Bogus
 Bug Type:         Compile Failure
 Operating System: AIX 5.3
 PHP Version:      5.3CVS-2009-03-02 (snap)
 New Comment:

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..


Previous Comments:
------------------------------------------------------------------------

[2009-03-02 13:08:47] ifegh...@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.



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


-- 
Edit this bug report at http://bugs.php.net/?id=47544&edit=1

Reply via email to