ID: 24182 Updated by: [EMAIL PROTECTED] Reported By: china at thewrittenword dot com -Status: Open +Status: Closed Bug Type: Compile Failure Operating System: Tru64 UNIX 4.0D PHP Version: 4.3.2 New Comment:
This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2003-06-13 22:20:57] china at thewrittenword dot com Description: ------------ Tru64 UNIX 4.0D doesn't have vsnprintf(). So, the following code in Zend/zend.c is built: strncpy(z_error_message->value.str.val, va_arg(format, char *), ZEND_ERROR_BUFFER_SIZE); Unfortunately, va_arg() in <varargs.h> on Tru64 UNIX expects the first argument ("format" in this case) to be of type struct va_list. Hence the error: cc: Error: /opt/build/php-4.3.2/Zend/zend.c, line 763: In this statement, "(format)" has a pointer type, but occurs in a context that requires a union or struct. (needstruct) strncpy(z_error_message->value.str.val, va_arg(format, char *), ZEND_ERROR_BUFFER_SIZE); ----------------------------------------------------------------^ gmake: *** [Zend/zend.lo] Error 1 In <va_list.h>, va_list is defined as: typedef struct { char **_a0; int _offset; } va_list; I checked out CVS head and replaced the offending 4.3.2 Zend/zend.c code with CVS Zend/zend.c and it built ok. Is that the proper solution? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24182&edit=1