From:             hawk at pld-linux dot org
Operating system: PLD Linux running on PowerPC
PHP version:      4.3.10
PHP Bug Type:     Compile Failure
Bug description:  Compile time error, incompatible types in assignment

Description:
------------
The compilation of PHP 4.3.10 fails on Linux running on PowerPC with
following error:

/home/users/builder/rpm/BUILD/php-4.3.10/Zend/zend.c -o Zend/zend.lo 
/home/users/builder/rpm/BUILD/php-4.3.10/Zend/zend.c: In function
`zend_error':
/home/users/builder/rpm/BUILD/php-4.3.10/Zend/zend.c:776: incompatible
types in assignment
make: *** [Zend/zend.lo] Error 1

Following code change is reponsible for this bug:
cvs diff -u -r 1.162.2.21 -r 1.162.2.22 Zend/zend.c

Line 776 is:
usr_copy = args;
where both usr_copy and args are of type va_list. Such code will not
compile on Linux on PowerPC (and probably on some other architectures too)
because va_list is struct here.

I know only two ways for fixing it. One is to use va_copy, but I'm not
sure if its safe to change following portion of code:

#if defined(va_copy)
                       va_copy(usr_copy, args);
#else
                       usr_copy = args;
#endif

just into:

va_copy(usr_copy, args);

Probably its not safe. The second way is to use
usr_copy[0] = args[0];
for the affected architectures, but its not safe either AFAIR.

I also suppose that php 5.0.3 is affected too, because it contains same
code


-- 
Edit bug report at http://bugs.php.net/?id=31358&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31358&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31358&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31358&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31358&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31358&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31358&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31358&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31358&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31358&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31358&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31358&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31358&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31358&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31358&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31358&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31358&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31358&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31358&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31358&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31358&r=mysqlcfg

Reply via email to