ID:               34977
 Updated by:       [EMAIL PROTECTED]
 Reported By:      ralph at cs dot cf dot ac dot uk
-Status:           Open
+Status:           Feedback
 Bug Type:         Compile Failure
 Operating System: MacOS X 10.4.x
 PHP Version:      5CVS-2005-10-25 (snap)
 New Comment:

Does the code below compiles ok on your host? 
(just `gcc test.c -o test` should be fine).

#include <stdarg.h>

int foo(int x, ...) {
    va_list va;
    va_start(va, x);
    va_arg(va, int);
    va_arg(va, char *);
    va_arg(va, double);
    return 0;
}
int main() { return foo(10, "", 3.14); }



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

[2005-10-25 15:58:43] ralph at cs dot cf dot ac dot uk

Error generated from the following file:

In file included from /usr/local/src/php5-200510251230/ext/
mbstring/oniguruma/regerror.c:37:

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

[2005-10-25 15:57:33] ralph at cs dot cf dot ac dot uk

Description:
------------
Trying to compile snapshot php5-200510251230 on MacOS 10.4.x 
with latest Apple Developer Tools

gives

/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/varargs.h:
4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/varargs.h:
5:2: error: #error "Revise your code to use <stdarg.h>."


Reproduce code:
---------------
N/A

Expected result:
----------------
Compile

Actual result:
--------------
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/varargs.h:
4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/varargs.h:
5:2: error: #error "Revise your code to use <stdarg.h>."



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


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

Reply via email to