Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Aug 2000 23:38:45 +0200 (CEST)
From:      Christian Weisgerber <naddy@mips.inka.de>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   alpha/20873: tdfx module doesn't build
Message-ID:  <200008262138.XAA89232@bigeye.mips.inka.de>

next in thread | raw e-mail | index | archive | help

>Number:         20873
>Category:       alpha
>Synopsis:       tdfx module doesn't build
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-alpha
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 26 14:50:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Christian Weisgerber
>Release:        FreeBSD 5.0-CURRENT alpha
>Organization:
>Environment:

"make buildkernel KERNEL=GENERIC" during 4.1->5.0 update
Presumably this applies to builds on 5.0-CURRENT, too.

>Description:

The tdfx module doesn't build on alpha.

By default, TDFX_LINUX is defined.  This triggers the inclusion of
<machine/../linux/linux.h> and <machine/../linux/linux_proto.h>
which apparently don't exist on alpha.

sys/modules/3dfx/Makefile       # defines TDFX_LINUX
sys/dev/tdfx/tdfx_pci.c         # includes tdfx_linux.h ifdef TDFX_LINUX
sys/dev/tdfx/tdfx_linux.h       # includes machine/../linux/* headers

>How-To-Repeat:

>Fix:

--- sys/modules/3dfx/Makefile.orig	Thu Aug 24 17:09:46 2000
+++ sys/modules/3dfx/Makefile	Thu Aug 24 17:11:10 2000
@@ -9,9 +9,11 @@
 
 CLEANFILES=    pci.h
 
+.if ${MACHINE_ARCH} == "i386"
 # This line enables linux ioctl handling by default
 # comment out if you don't want it
 TDFX_OPTS=     "\#define TDFX_LINUX"
+.endif
 
 # Uncomment this for debugging messages
 #CFLAGS+=      -DDEBUG

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008262138.XAA89232>