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:

Please try this patch:
http://tony2001.phpclub.net/dev/tmp/bug34977.diff
Remove config.cache and run ./buildconf && ./configure again after
applying it.


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

[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] [EMAIL PROTECTED]

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] [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:

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

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

Reply via email to