View Single Post
Old 09-05-04, 01:34 PM   #1
panfr
Registered User
 
Join Date: Sep 2004
Posts: 2
Default Unable to compile the driver

Mandrake 10.1 (cooker), xorg 6.7.0, kernel 2.6.8

Compiling fails as follows:

NVIDIA: calling KBUILD...
make -C /lib/modules/2.6.8.1-8mdkenterprise/build \
KBUILD_SRC=/usr/src/linux-2.6.8.1-8mdk KBUILD_VERBOSE=1 \
KBUILD_CHECK= KBUILD_EXTMOD="/root/nvidia/NVIDIA-Linux-x86-1.0-6111-pkg1/usr
/src/nv" \
-f /usr/src/linux-2.6.8.1-8mdk/Makefile modules
mkdir -p /root/nvidia/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/.tmp_version
s
make -f /usr/src/linux-2.6.8.1-8mdk/scripts/Makefile.build obj=/root/nvidia/
NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /root/nvidia/NVIDIA
-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv_compiler.h
cc -Wp,-MD,/root/nvidia/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/.nv.o.d
-nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/
linux-2.6.8.1-8mdk/include -I/root/nvidia/NVIDIA-Linux-x86-1.0-6111-pkg1/us
r/src/nv -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-
common -pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -
march=i686 -I/usr/src/linux-2.6.8.1-8mdk/include/asm-i386/mach-default -Iinc
lude/asm-i386/mach-default -O2 -Wdeclaration-after-statement -I/root/nvidia
/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -W
switch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multich
ar -Werror -O -fno-common -MD -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAME
S -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNE
L__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=6111
-DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG -DN
V_CHANGE_PAGE_ATTR_PRESENT -DNV_CLASS_SIMPLE_PRESENT -DMODULE -DKBUILD_BASEN
AME=nv -DKBUI
LD_MODNAME=nvidia -c -o /root/nvidia/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/
nv/nv.o /root/nvidia/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c
/root/nvidia/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c: In function `nv
_acpi_event':
/root/nvidia/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c:3697: error: `PM
_SAVE_STATE' undeclared (first use in this function)
/root/nvidia/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c:3697: error: (Ea
ch undeclared identifier is reported only once
/root/nvidia/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c:3697: error: for
each function it appears in.)
make[4]: *** [/root/nvidia/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.o] E
rror 1
make[3]: *** [_module_/root/nvidia/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv
] Error 2
make[2]: *** [modules] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
-> Error.

Ironically enough I have no problems to build it on the same machine and kernel 2.6.8 RC2, using the same settings (it runs fine as well).
Any ideas?
panfr is offline   Reply With Quote