From owner-freebsd-ports@FreeBSD.ORG Thu Jul 17 07:25:25 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2515B37B401 for ; Thu, 17 Jul 2003 07:25:25 -0700 (PDT) Received: from cheer.mahoroba.org (flets19-022.kamome.or.jp [218.45.19.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26F2943F75 for ; Thu, 17 Jul 2003 07:25:18 -0700 (PDT) (envelope-from ume@mahoroba.org) Received: from lyrics.mahoroba.org (IDENT:YFt8wCm0imBD/rus29V400DTAyZECjvjqu87KVZNymwRzZLgTN6anOU0lpR89do9@lyrics.mahoroba.org [IPv6:3ffe:501:185b:8010:280:88ff:fe03:4841]) (user=ume mech=CRAM-MD5 bits=0)h6HEP7o4071443 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 17 Jul 2003 23:25:10 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Thu, 17 Jul 2003 23:25:06 +0900 Message-ID: From: Hajimu UMEMOTO To: Shin-ichi YOSHIMOTO In-Reply-To: <20030717092556.70a96dc9.yosimoto@waishi.jp> References: <20030713010957.2181af46.yosimoto@waishi.jp> <20030717092556.70a96dc9.yosimoto@waishi.jp> User-Agent: xcite1.38> Wanderlust/2.11.3 (Wonderwall) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.5 Emacs/21.3 (i386--freebsd) MULE/5.0 (=?ISO-2022-JP?B?GyRCOC1MWhsoQg==?=) X-Operating-System: FreeBSD 5.1-CURRENT MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=-1.5 required=5.0 tests=IN_REP_TO,PATCH_UNIFIED_DIFF,REFERENCES,USER_AGENT version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: freebsd-ports@freebsd.org Subject: Re: some ports are broken after upgrading GCC 3.3.1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jul 2003 14:25:25 -0000 Hi, >>> Thu, 17 Jul 2003 09:25:56 +0900, >>> Shin-ichi YOSHIMOTO 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/