View Single Post
Old 11-19-07, 05:49 PM   #5
chema
Registered User
 
Join Date: Apr 2004
Posts: 5
Default Re: 100.14.19/23 module fails to build on gcc-4.3

Hi all:
Using kernel 2.6.24-rc2-git4-2 and module:x86-169.04 it works if I patch with something like this::

--- nv-linux.h-dist2007-11-16 13:17:04.000000000 +0100
+++ nv-linux.h2007-11-16 15:04:27.000000000 +0100
@@ -12,9 +12,11 @@
#ifndef _NV_LINUX_H_
#define _NV_LINUX_H_
+#undef CONFIG_PARAVIRT
#include "nv.h"
#include <linux/autoconf.h>
+#undef CONFIG_PARAVIRT
#include <linux/version.h>
#include <linux/utsname.h>
--- conftest.sh-dist2007-11-16 13:06:29.000000000 +0100
+++ conftest.sh2007-11-16 15:06:41.000000000 +0100
@@ -29,6 +29,9 @@
ARCH=`uname -m | sed -e 's/i.86/i386/'`
CFLAGS="$CFLAGS -I$OUTPUT/include2 -I$OUTPUT/include \
-I$HEADERS -I$HEADERS/asm-$ARCH/mach-default"
+ if [ "$ARCH" = "i386" ]; then
+CFLAGS="$CFLAGS -I$HEADERS -I$HEADERS/asm-x86/mach-default"
+ fi
else
CFLAGS="$CFLAGS -I$HEADERS -I$HEADERS/asm/mach-default"
fi

I'm sorry,now I can't find where I found this patch.
Regards
chema is offline   Reply With Quote