From owner-freebsd-questions Thu Nov 16 9:57:32 2000 Delivered-To: freebsd-questions@freebsd.org Received: from node7.cluster.srrc.usda.gov (symbion.srrc.usda.gov [199.133.86.40]) by hub.freebsd.org (Postfix) with ESMTP id 5079737B4CF for ; Thu, 16 Nov 2000 09:57:28 -0800 (PST) Received: (from glenn@localhost) by node7.cluster.srrc.usda.gov (8.11.1/8.11.1) id eAGHvBD23205 for questions@freebsd.org; Thu, 16 Nov 2000 11:57:11 -0600 (CST) (envelope-from glenn) From: Glenn Johnson Date: Thu, 16 Nov 2000 11:57:11 -0600 To: questions@freebsd.org Subject: building XFree84-4 DRI Message-ID: <20001116115710.A23045@node7.cluster.srrc.usda.gov> Mail-Followup-To: glenn, questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I would like to try out 3D acceleration on my Matrox G400 but I cannot get DRI compiled. I scoured the mail archives and apparently this has worked for some people in the past, with FreeBSD 4.1. I am currently running FreeBSD 4.2-BETA. I changed the version checks in drmP.h because 4.2-BETA has agpgart and taskqueue. Here is the error message I get when I try to compile: ===> drm Warning: Object directory not changed from original /usr/ports/x11/XFree86-4/work/xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/kernel/drm cc -O -pipe -I.. -I/sys/pci -I/usr/include/sys -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -DKLD_MODULE -nostdinc -I- -I.. -I/sys/pci -I/usr/include/sys -I. -I@ -I@/../include -mpreferred-stack-boundary=2 -c init.c In file included from init.c:33: ../drmP.h:599: syntax error before `struct' ../drmP.h:599: syntax error before `void' *** Error code 1 Apparently there is a problem with the drmP.h file. I pulled down the latest revision of this file from the DRI CVS BSD branch but it is essentially the same as that of XFree86-4.0.1 with the exception of the addition of the following: /* * Software interrupts for DMA pipe feeding. The FreeBSD kernel apis * are severely lacking here. */ #define SWI_DRI (SWI_VM+2) I get the same error when trying to compile. Has anyone compiled DRI from XFree86-4 on a recent FreeBSD-4.2 system? Thanks. -- Glenn Johnson USDA, ARS, SRRC Phone: (504) 286-4252 New Orleans, LA 70124 e-mail: gjohnson@nola.srrc.usda.gov To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message