Bug#425127: nvidia-kernel-legacy-96xx-source: Kernel module build failed for kernel 2.6.20-1-686

2007-07-08 Thread Michael Gilbert

here is a patch to Makefile.kbuild that enables the needed
paravirt_ops features for the 2.6.2x kernels.  note that supposedly
this bug is fixed in 2.6.22 (which will be released soon), so this
patch will not be necessary for long.

reference:  http://grizach.sc18.info/nvpatch/

mike


--- modules/nvidia-kernel-legacy-96xx/nv/Makefile.kbuild
2007-06-17 21:05:49.0 -0400
+++ Makefile.kbuild 2007-07-08 21:40:59.0 -0400
@@ -75,6 +75,9 @@
EXTRA_CFLAGS += -I$(src)
EXTRA_CFLAGS += -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat
-Wchar-subscripts -Wparentheses -Wpointer-arith  -Wno-multichar
-Werror -O -fno-common -msoft-float -MD $(DEFINES) $(INCLUDES)
-Wsign-compare -Wno-cast-qual -Wno-error

+PARAVIRT_OPS := $(shell grep D paravirt_ops
/boot/System.map-$(shell uname -r) | colrm 9)
+EXTRA_LDFLAGS := --defsym paravirt_ops=0x$(PARAVIRT_OPS)
+
#
# We rely on these two definitions below; if they aren't set, we set them to
# reasonable defaults (Linux 2.4's KBUILD, and top-level passes will not set


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#425127: nvidia-kernel-legacy-96xx-source: Kernel module build failed for kernel 2.6.20-1-686

2007-05-19 Thread LUK ShunTim
Package: nvidia-kernel-legacy-96xx-source
Version: 1.0.9631-3
Severity: important

First of all, thanks for this legacy package. My MX440 works again with   Xorg 
1.3.

However, it failes to build with a 2.6.20 kernel. Here's the relevant error 
messages when built with m-a.
quote
  LD [M]  /usr/src/modules/nvidia-kernel-legacy-96xx/nv/nvidia.o
  Building modules, stage 2.
  MODPOST 1 modules
FATAL: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol 'paravirt
_ops'
make[4]: *** [__modpost] Error 1
make[3]: *** [modules] Error 2
make[3]: Leaving directory `/usr/src/linux-headers-2.6.20-1-686'
NVIDIA: left KBUILD.
nvidia.ko failed to build!
/quote

Thanks very much,
ST
-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-4-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages nvidia-kernel-legacy-96xx-source depends on:
ii  debhelper 5.0.49 helper programs for debian/rules
ii  dpatch2.0.22 patch maintenance system for Debia
ii  make  3.81-3 The GNU version of the make util
ii  sed   4.1.5-2The GNU sed stream editor

Versions of packages nvidia-kernel-legacy-96xx-source recommends:
ii  devscripts2.10.4 Scripts to make the life of a Debi
ii  kernel-package11.001 A utility for building Linux kerne
ii  nvidia-glx-legacy-96xx1.0.9631-3 NVIDIA binary Xorg driver (96xx le

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]