Compile failure due to use of varargs.h
| Bug #34977 | Compile failure due to use of varargs.h | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2005-10-25 15:57 UTC | Modified: | 2005-10-26 15:52 UTC |
|
||||||||||
| From: | ralph at cs dot cf dot ac dot uk | Assigned: | tony2001 (profile) | |||||||||||
| Status: | Closed | Package: | Compile Failure | |||||||||||
| PHP Version: | 5CVS-2005-10-25 (snap) | OS: | MacOS X 10.4.x | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2005-10-25 15:57 UTC] 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>."
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2005-10-25 15:58 UTC] ralph at cs dot cf dot ac dot uk
[2005-10-25 22:45 UTC] 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); }[2005-10-26 09:46 UTC] ralph at cs dot cf dot ac dot uk
[2005-10-26 09:52 UTC] tony2001@php.net
[2005-10-26 14:57 UTC] ralph at cs dot cf dot ac dot uk
[2005-10-26 15:09 UTC] tony2001@php.net
[2005-10-26 15:39 UTC] sniper@php.net
[2005-10-26 15:52 UTC] tony2001@php.net