From owner-freebsd-java Sun Jul 28 3:11:16 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3721637B400; Sun, 28 Jul 2002 03:11:08 -0700 (PDT) Received: from gnuppy.monkey.org (wsip68-15-8-100.sd.sd.cox.net [68.15.8.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8F2443E67; Sun, 28 Jul 2002 03:11:07 -0700 (PDT) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.35 #1 (Debian)) id 17Yl0v-0001AG-00; Sun, 28 Jul 2002 03:11:01 -0700 Date: Sun, 28 Jul 2002 03:11:01 -0700 To: Huang wen hui Cc: freebsd-java@freebsd.org, freebsd-current@freebsd.org Subject: Re: a gcc3.1 bug ? Message-ID: <20020728101101.GA4466@gnuppy.monkey.org> References: <3D4391CF.1020504@mail.gddsn.org.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D4391CF.1020504@mail.gddsn.org.cn> User-Agent: Mutt/1.4i From: Bill Huey (Hui) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, Jul 28, 2002 at 02:40:15PM +0800, Huang wen hui wrote: > /usr/ports/java/jdk13/work/hotspot1.3.1/src/os_cpu/linux_i486/vm/os_linux_i486.cpp:41: > /usr/src/lib/libc_r/uthread/pthread_private.h:947: parse error before > `__null' > /usr/src/lib/libc_r/uthread/pthread_private.h:957: parse error before > `__null' > /usr/src/lib/libc_r/uthread/pthread_private.h:965: parse error before > `__null' ... > > but if I change " pthread_attr pthread_attr_default " to other name, the > compiler will pass. > > Does gcc31 have bug ? "Revisited" Do it like this: #undef pthread_attr_default #undef pthread_mutexattr_default #undef pthread_condattr_default #include before the header files is included. I'm a bit surprised that my changes to those source files (HotSpot) weren't included in the latest release. Building it otherwise is just going to be pure hell. bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message