some ports are broken after upgrading GCC 3.3.1
Hajimu UMEMOTO
ume at mahoroba.org
Thu Jul 17 07:25:25 PDT 2003
Hi,
>>> Thu, 17 Jul 2003 09:25:56 +0900,
>>> Shin-ichi YOSHIMOTO <yosimoto at waishi.jp> said:
yosimoto> qprintf.c: In function `GifQprintf':
yosimoto> qprintf.c:38: error: syntax error before '...' token
yosimoto> qprintf.c:43: error: syntax error before "__builtin_varargs_start"
yosimoto> *** Error code 1
I saw same problem with japanese/mh. With following patch to
varargs.h, you will be able to compile it.
Index: varargs.h
diff -u varargs.h.orig varargs.h
--- varargs.h.orig Sun Jun 1 16:05:25 2003
+++ varargs.h Wed Jul 16 21:03:09 2003
@@ -55,7 +55,11 @@
typedef int __builtin_va_alist_t __attribute__((__mode__(__word__)));
#define va_alist __builtin_va_alist
+#if __GNUC__ == 3 && __GNUC_MINOR__ >= 3
+#define va_dcl __builtin_va_alist_t __builtin_va_alist;
+#else
#define va_dcl __builtin_va_alist_t __builtin_va_alist; ...
+#endif
#define va_start(ap) __builtin_varargs_start(ap)
#define va_arg(ap, type) __builtin_va_arg((ap), type)
#define va_end(ap) __builtin_va_end(ap)
Sincerely,
--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume at mahoroba.org ume at bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/
More information about the freebsd-ports
mailing list