Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jul 2003 23:25:06 +0900
From:      Hajimu UMEMOTO <ume@mahoroba.org>
To:        Shin-ichi YOSHIMOTO <yosimoto@waishi.jp>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: some ports are broken after upgrading GCC 3.3.1
Message-ID:  <yge8yqxnscd.wl%ume@mahoroba.org>
In-Reply-To: <20030717092556.70a96dc9.yosimoto@waishi.jp>
References:  <20030713010957.2181af46.yosimoto@waishi.jp> <20030717092556.70a96dc9.yosimoto@waishi.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

>>> Thu, 17 Jul 2003 09:25:56 +0900,
>>> Shin-ichi YOSHIMOTO <yosimoto@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@mahoroba.org  ume@bisd.hitachi.co.jp  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?yge8yqxnscd.wl%ume>