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:

Yes, varargs.h contains the same here (Linux).
Please put your config.log somewhere and paste the URL here.


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

[2005-10-26 09:46:55] ralph at cs dot cf dot ac dot uk

Yes, the code supplied compiles just fine.

Somehow, when compiling php, it tries to pick up the varargs 
header instead of the stdarg one.

varargs.h contains just the following, leading to the 
messages reported earlier:

#ifndef _VARARGS_H
#define _VARARGS_H

#error "GCC no longer implements <varargs.h>."
#error "Revise your code to use <stdarg.h>."

#endif

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

[2005-10-25 22:45:00] [EMAIL PROTECTED]

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); }


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

[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