hi I tried to build the nvidia 169.12-1 module on my amd64 system with kernel 2.6.25-1 ; I applied the patch found at
http://www.nvnews.net/vbulletin/attachment.php?s=41498f047cfc027419df58a2559e9a7f&attachmentid=30771&d=1205875946 and then tried to compile using $ m-a -O -t b-i nvidia but it failed in a strange way, reporting vvvvvvvvvvvvv LD [M] /usr/src/modules/nvidia-kernel/nv/nvidia.o Building modules, stage 2. MODPOST 1 modules scripts/mod/modpost: invalid option -- S make[4]: *** [__modpost] Error 1 ^^^^^^^^^^^^^ the above is strange; it is as if the KBUILD system is passing two options '-c -S' to 'modpost', but these options are no more recognized. For a quick and dirty fix, I patched /lib/modules/2.6.25-1-amd64/build/scripts/Makefie.modpost as in attachment, and I could then compile the module. a. -- Andrea Mennucc "E' un mondo difficile. Che vita intensa!" (Tonino Carotone)
--- /lib/modules/2.6.25-1-amd64/build/scripts/Makefile.modpost.orig 2008-05-03 14:20:42.000000000 +0200
+++ /lib/modules/2.6.25-1-amd64/build/scripts/Makefile.modpost 2008-05-04 12:04:39.000000000 +0200
@@ -70,11 +70,9 @@
$(if $(KBUILD_EXTMOD),-i,-o) $(kernelsymfile) \
$(if $(KBUILD_EXTMOD),-I $(modulesymfile)) \
$(if $(KBUILD_EXTMOD),-o $(modulesymfile)) \
- $(if $(CONFIG_DEBUG_SECTION_MISMATCH),,-S) \
$(if $(CONFIG_MARKERS),-K $(kernelmarkersfile)) \
$(if $(CONFIG_MARKERS),-M $(markersfile)) \
- $(if $(KBUILD_EXTMOD)$(KBUILD_MODPOST_WARN),-w) \
- $(if $(cross_build),-c)
+ $(if $(KBUILD_EXTMOD)$(KBUILD_MODPOST_WARN),-w)
quiet_cmd_modpost = MODPOST $(words $(filter-out vmlinux FORCE, $^)) modules
cmd_modpost = $(modpost) -s
signature.asc
Description: Digital signature

