From owner-freebsd-sparc64@FreeBSD.ORG Tue May 11 12:38:02 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A3E7416A4CF for ; Tue, 11 May 2004 12:38:02 -0700 (PDT) Received: from nibbel.kulnet.kuleuven.ac.be (nibbel.kulnet.kuleuven.ac.be [134.58.240.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EB3D43D41 for ; Tue, 11 May 2004 12:38:02 -0700 (PDT) (envelope-from tijl@ulyssis.org) Received: from localhost (localhost [127.0.0.1]) by nibbel.kulnet.kuleuven.ac.be (Postfix) with ESMTP id 31D054B54F for ; Tue, 11 May 2004 21:38:01 +0200 (CEST) Received: from octavianus.kulnet.kuleuven.ac.be (octavianus.kulnet.kuleuven.ac.be [134.58.240.71]) by nibbel.kulnet.kuleuven.ac.be (Postfix) with ESMTP id AD6CC4B555 for ; Tue, 11 May 2004 21:38:00 +0200 (CEST) Received: from kalimero.kotnet.org (kalimero.kotnet.org [10.4.40.235]) by octavianus.kulnet.kuleuven.ac.be (Postfix) with ESMTP id 21ADCAEE34 for ; Tue, 11 May 2004 21:38:00 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by kalimero.kotnet.org (8.12.11/8.12.11) with SMTP id i4BJbveZ042169 for ; Tue, 11 May 2004 21:37:58 +0200 (CEST) (envelope-from tijl@ulyssis.org) Date: Tue, 11 May 2004 21:37:57 +0200 From: Tijl Coosemans To: sparc64@freebsd.org Message-Id: <20040511213757.37a2189e.tijl@ulyssis.org> In-Reply-To: <20040511010823.GB72214@xor.obsecurity.org> References: <20040511010823.GB72214@xor.obsecurity.org> X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by KULeuven Antivirus Cluster Subject: Re: [ports-sparc64@bento.FreeBSD.org: libticables-3.7.7_2 failed on sparc64 5] X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 May 2004 19:38:02 -0000 On Mon, 10 May 2004 18:08:23 -0700, Kris Kennaway wrote: > ----- Forwarded message from User Ports-sparc64 > ----- Full build log at http://bento.freebsd.org/errorlogs/sparc64-5-latest/libticables-3.7.7_2.log > In file included from ioports.c:45: > /usr/include/machine/sysarch.h:53: error: syntax error before > "utrap_entry_t" > /usr/include/machine/sysarch.h:64: error: syntax error before "type" > gmake[2]: *** [ioports.lo] Error 1 > gmake[2]: Leaving directory > `/tmp/a/ports/comms/libticables/work/libticables-3.7.7/src' > gmake[1]: *** [all-recursive] Error 1 > gmake[1]: Leaving directory > `/tmp/a/ports/comms/libticables/work/libticables-3.7.7' > gmake: *** [all] Error 2 > *** Error code 2 Apparently src/sys/sparc64/include/sysarch.h uses utrap_entry_t and utrap_handler_t without defining them. They are however defined in src/sys/sparc64/utrap.h. So I'm wondering, should I file a PR for my port to include machine/utrap.h(?) before machine/sysarch.h in case of a sparc64 build (or get rid of it since it is only used on i386), or is this a bug and should src/sys/sparc64/include/sysarch.h include machine/utrap.h (probably wrapped inside an #ifndef _KERNEL)?