ID: 34977
User updated by: ralph at cs dot cf dot ac dot uk
Reported By: ralph at cs dot cf dot ac dot uk
-Status: Feedback
+Status: Open
Bug Type: Compile Failure
Operating System: MacOS X 10.4.x
PHP Version: 5CVS-2005-10-25 (snap)
New Comment:
Yes, this patch fixes the compilation bug.
Just to be safe I also checked that the compiled snapshot now
passes most of the tests, too.
Thanks.
[I have now removed my config.log file.]
Previous Comments:
------------------------------------------------------------------------
[2005-10-26 12:54:57] tony2001@php.net
Please try this patch:
http://tony2001.phpclub.net/dev/tmp/bug34977.diff
Remove config.cache and run ./buildconf && ./configure again after
applying it.
------------------------------------------------------------------------
[2005-10-26 09:59:34] ralph at cs dot cf dot ac dot uk
My config.log file is available for the time being at
http://ralph.cs.cf.ac.uk/config.log
------------------------------------------------------------------------
[2005-10-26 09:52:08] tony2001@php.net
Yes, varargs.h contains the same here (Linux).
Please put your config.log somewhere and paste the URL here.
------------------------------------------------------------------------
[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] tony2001@php.net
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); }
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/34977--
Edit this bug report at http://bugs.php.net/?id=34977&edit=1