Bug 88678

Summary: error during compilation the kernel with "device tdfxdrm"
Product: Base System Reporter: Joachim Lüdke <magjo64>
Component: i386Assignee: Eric Anholt <anholt>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 6.0-RELEASE   
Hardware: Any   
OS: Any   

Description Joachim Lüdke 2005-11-08 18:00:33 UTC
Error-Message during the compilation of the Kernel with "device tdfxdrm"
#------------------------------------------------------------------------
linking kernel
tdfx_pci.o(.data+0xa0): undefined reference to `linux_ioctl_unregister_handler'
tdfx_pci.o(.data+0xbc): undefined reference to `linux_ioctl_register_handler'
*** Error code 1

Stop in /usr/obj/usr/src/sys/MYKERNEL.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
#---------------------------------------------------------------------------



Kernelparameters:
#---------------------------------------------------------------------------
device          vga             # VGA video card driver
device          tdfx                    # Enable 3Dfx Voodoo support
options         TDFX_LINUX              # Enable Linuxulator support

# Direct Rendering modules for 3D acceleration.
device          drm             # DRM core module required by DRM drivers
device          tdfxdrm         # 3dfx Voodoo 3/4/5 and Banshee

device          splash          # Splash screen and screen saver support

device          agp             # support several AGP chipsets
#----------------------------------------------------------------------------

How-To-Repeat: Compile the kernel with this parameters:

Kernelparameters:
#---------------------------------------------------------------------------
device          vga             # VGA video card driver
device          tdfx                    # Enable 3Dfx Voodoo support
options         TDFX_LINUX              # Enable Linuxulator support

# Direct Rendering modules for 3D acceleration.
device          drm             # DRM core module required by DRM drivers
device          tdfxdrm         # 3dfx Voodoo 3/4/5 and Banshee

device          splash          # Splash screen and screen saver support

device          agp             # support several AGP chipsets
#----------------------------------------------------------------------------
Comment 1 Tilman Keskinoz freebsd_committer freebsd_triage 2005-11-25 15:52:57 UTC
Responsible Changed
From-To: freebsd-i386->anholt

assign to drm maintainer
Comment 2 Eric Anholt freebsd_committer freebsd_triage 2005-11-25 19:43:25 UTC
State Changed
From-To: open->closed

If you're going to enable linux compatibility in the old voodoo driver (I 
have no idea why you'd be enabling it), you also need to include the 
linux emulation layer.  In other news, there's no reason to be including 
the DRM (unrelated to the voodoo driver, and probably conflicting with it) 
in your kernel when X will happily load it for you at startup.