From owner-freebsd-alpha Tue Mar 4 9:19:57 2003 Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6415D37B401 for ; Tue, 4 Mar 2003 09:19:55 -0800 (PST) Received: from gatekeeper.oremut01.us.wh.verio.net (gatekeeper.oremut01.us.wh.verio.net [198.65.168.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id A08DA43FAF for ; Tue, 4 Mar 2003 09:19:54 -0800 (PST) (envelope-from fred@clift.org) Received: from mx.dmz.orem.verio.net (mx.dmz.orem.verio.net [10.1.1.10]) by gatekeeper.oremut01.us.wh.verio.net (Postfix) with ESMTP id E13433BF18A for ; Tue, 4 Mar 2003 10:19:53 -0700 (MST) Received: from vespa.dmz.orem.verio.net (vespa.dmz.orem.verio.net [10.1.1.59]) by mx.dmz.orem.verio.net (8.11.6/8.11.6) with ESMTP id h24HJrx81501 for ; Tue, 4 Mar 2003 10:19:53 -0700 (MST) Date: Tue, 4 Mar 2003 10:20:26 -0700 (MST) From: X-X-Sender: To: Subject: patch to make 4.3.0 build on FreeBSD 5.0-Current alpha Message-ID: <20030304101407.G78564-100000@vespa.dmz.orem.verio.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org As some of you may remember, I have had problems off and on with X on my miata. I think I've resolved some of these by taking the video card out of the 64-bit pci slots - Xv4 is much better behaved with the card in a 32-bit slot. So much for my recent advice on using the 64-bit slots :). Additionally, I recently downloaded the new 4.3.0 sources and tried to build them (ie not using ports - Eric Anholt, the X ports maintainer is a busy guy and will probably not have a port for this for this for at least a while). So 4.3.0, as it is distributed, doesn't build on FreeBSD alpha (I run -current, but I think the same problems would exist for -stable). I've sent this patch to the devel@xfree86.org mailing list, but figure I'd pass it on here for the time being if any of you are anxious as I was. The following patch makes the build work for me - it runs ok with my matrox millenium II card (though my virtual consoles are permanently blank after X runs the first time, until next reboot - anyone have ideas on that?) It does 3 things -- it makes a prototype for a function that doesn't have one (I couldn't find a header file with this, so I just include it here -- seems ugly), it fixes a problem with system include files (needed an extra one) and it fixes some broken #ifdef'd code (the #endif is several lines past where it should be, making the file have systax errors (the function never finds a final closing '}'). ----------------------------------------------------------------------------- # diff xc/programs/Xserver/hw/xfree86/os-support/bsd/alpha_video.c xc.working/programs/Xserver/hw/xfree86/os-support/bsd/alpha_video.c 35a36,38 > # ifdef __FreeBSD__ > # include > # endif 38a42 > 53a58,59 > axpDevice bsdGetAXP(void); > 262a269 > #endif 266d272 < #endif ----------------------------------------------------------------------------- Fred Clift To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message