Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 09-05-04, 12: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
Old 09-05-04, 12:52 PM   #2
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Unable to compile the driver

Try replacing PM_SAVE_STATE with PM_SUSPEND_MEM.
zander is offline   Reply With Quote
Old 09-05-04, 04:29 PM   #3
panfr
Registered User
 
Join Date: Sep 2004
Posts: 2
Default Re: Unable to compile the driver

Thank you for the tip. It works just fine.
panfr is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to modify brightness with driver 295.59 and xorg 1.11.4 lorenrookie NVIDIA Linux 0 06-22-12 08:03 AM
Getting the proprietary nvidia driver to run with Debian 3.0 r0 (woody) Katchina404 NVIDIA Linux 9 01-12-03 08:49 AM
Unable to load 3d driver rebol NVIDIA Linux 3 09-29-02 04:58 PM
failing to initialize NV driver PsyShook NVIDIA Linux 10 09-19-02 12:41 PM
Nvidia Driver causes crash on Standby/Suspend dasher NVIDIA Linux 5 09-16-02 05:57 PM

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


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