nV News Forums


nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Unable to compile the driver (http://www.nvnews.net/vbulletin/showthread.php?t=36249)

panfr 09-05-04 12:34 PM

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/ \
KBUILD_SRC=/usr/src/linux- KBUILD_VERBOSE=1 \
KBUILD_CHECK= KBUILD_EXTMOD="/root/nvidia/NVIDIA-Linux-x86-1.0-6111-pkg1/usr
/src/nv" \
-f /usr/src/linux- modules
mkdir -p /root/nvidia/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/.tmp_version
make -f /usr/src/linux- obj=/root/nvidia/
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /root/nvidia/NVIDIA
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- -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- -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
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
/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.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?

zander 09-05-04 12:52 PM

Re: Unable to compile the driver
Try replacing PM_SAVE_STATE with PM_SUSPEND_MEM.

panfr 09-05-04 04:29 PM

Re: Unable to compile the driver
Thank you for the tip. It works just fine.

All times are GMT -5. The time now is 02:38 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.