ID:               47544
 Updated by:       [email protected]
 Reported By:      [email protected]
 Status:           Bogus
 Bug Type:         Compile Failure
 Operating System: AIX 5.3
 PHP Version:      5.3CVS-2009-03-02 (snap)
 New Comment:

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.


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

[2009-03-02 22:36:29] [email protected]

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-02 13:08:47] [email protected]

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