From:             ifegh...@php.net
Operating system: AIX 5.3
PHP version:      5.3CVS-2009-03-02 (snap)
PHP Bug Type:     Compile Failure
Bug description:  Make successfully completes but no php binary is generated

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 bug report at http://bugs.php.net/?id=47544&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=47544&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=47544&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=47544&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=47544&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47544&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=47544&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=47544&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=47544&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=47544&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=47544&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=47544&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=47544&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=47544&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=47544&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47544&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47544&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=47544&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=47544&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=47544&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=47544&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=47544&r=mysqlcfg

Reply via email to