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

Newegg Daily Deals

Reply
 
Thread Tools
Old 09-30-02, 04:52 PM   #1
HunterA3
Registered User
 
Join Date: Sep 2002
Posts: 16
Question Mandrake 9 and nVidia drivers

OK. This is where I'm at now...

I tried installing from the source rpm and I get a message stating that is can not find a file or directory and will not rebuild the src rpm.

I tried to install from the tar ball and I get a huge list of errors (so many that it scrolls past the viewable screen)

I tried using the older kernel and GLX drivers for mandrake 8.2 single processor and I get an error stating that the kernel module failed to load.

I edited my XF86Config-4 file to show "nvidia" under the drivers section rather than "nv" and changed Load "glx" to point to the file located in the X11R6 file libglx.so (can't remember the specific path off hand since I'm not currently in front of my Linux system atm)

So to wrap it up...

the src rpm for the kernel doesn't rebuild leaving me with out that option.

The tar file will not make install due to several errors

The older mandrake 82 files install, but the kernel will not load with X and it drops out to command line.

Any ideas?

The only reason why I'm even bothering with the install, since the OS will work without it, is because after upgrading to mandrake 9.0 from 8.2 I discovered that my copy of the unreal tournament 2003 demo will not load. It tells me, when I use the graphical link to load the game, that it can not find the program. When I use the command line, I get an error stating that it can not find a matching GLX to use.
HunterA3 is offline   Reply With Quote
Old 09-30-02, 04:57 PM   #2
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

Generic answer to the "it won't build" problem:

Install kernel-source and try again. The kernel-source package is on the 3rd Mandrake 9 CD.
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 09-30-02, 05:14 PM   #3
HunterA3
Registered User
 
Join Date: Sep 2002
Posts: 16
Default

I'll give that a try when I get a chance. Thanks.
HunterA3 is offline   Reply With Quote
Old 09-30-02, 08:33 PM   #4
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

I forgot, this will help too. If it still doesn't work after you've installed kernel-source, then do one of these:

make clean
make install >logfile.txt 2>&1


That creates a file named "logfile.txt" that contains the full session of make install, errors and everything. Post that file here if it's not working.
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 10-01-02, 12:59 AM   #5
HunterA3
Registered User
 
Join Date: Sep 2002
Posts: 16
Default

tried the first suggestion and after installing the ncurses-devel rpm and then the kernel-source rpm, I tried installing the NVIDIA_kernel.src.rpm and I still get the following:

/usr/lib/rpm/rpmd: No such file or directory

I checked and there is a rpmd file listed in the directory, but I still can't find any evidence that it rebuilt the source rpm. I'll try your second suggestion next and see what that brings.
HunterA3 is offline   Reply With Quote
Old 10-01-02, 01:13 AM   #6
HunterA3
Registered User
 
Join Date: Sep 2002
Posts: 16
Default

OK I followed your second suggestion and this is what I got:

------------------------------------------------------

echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -1`\" > nv_compiler.h
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts
-Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__
-DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -DRM_HEAPMGR
-D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1
-DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=3123 -DNV_UNIX -DNV_LINUX -DNVCPU_X86

-I. -I/lib/modules/2.4.19-16mdk/build/include -Wno-cast-qual nv.c
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts
-Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__
-DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -DRM_HEAPMGR
-D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1
-DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=3123 -DNV_UNIX -DNV_LINUX -DNVCPU_X86

-I. -I/lib/modules/2.4.19-16mdk/build/include -Wno-cast-qual os-interface.c
os-interface.c: In function `KernInitAGP':
os-interface.c:1294: warning: assignment from incompatible pointer type
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts
-Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__
-DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -DRM_HEAPMGR
-D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1
-DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=3123 -DNV_UNIX -DNV_LINUX -DNVCPU_X86

-I. -I/lib/modules/2.4.19-16mdk/build/include -Wno-cast-qual os-registry.c
ld -r -o Module-linux nv.o os-interface.o os-registry.o
ld -r -o NVdriver Module-linux Module-nvkernel
size NVdriver
text data bss dec hex filename
894848 55380 52396 1002624 f4c80 NVdriver
Warning: loading /lib/modules/2.4.19-16mdk/kernel/drivers/video/NVdriver will
taint the kernel: non-GPL license - NVIDIA
See http://www.tux.org/lkml/#export-tainted for information about tainted
modules
Module NVdriver loaded, with warnings
NVdriver installed successfully.

------------------------------------------------------
I went ahead and continued the install of the GLX drivers and started X. I am now typing this message from Mozilla on my Linux desktop.

Thanks bwkaz. You rock dude!
HunterA3 is offline   Reply With Quote
Old 10-08-02, 10:41 PM   #7
bradvoth
Guest
 
Posts: n/a
Default Mandrake 9

Tried to compile the src files so I could play tux racer at more than 10fps.... got some errors on the Kernel driver compile. All I did was redirect the error output to a file and copy and paste to here. If you need the rest of the output messages I can get those aswell =p. I personally am not a kernel programmer or anysort of hardware geek. If someone would let me know what I can do to get this to compile correctly I'd be very gracious.

Errors enclosed below, sorry about the excessive length, but I read through it and it looks like it's all relevant.
WARNING Your eyes may begin to bleed after reading this:


In file included from /usr/include/linux/prefetch.h:13,
from /usr/include/linux/list.h:6,
from /usr/include/linux/module.h:11,
from nv-linux.h:28,
from nv.c:14:
/usr/include/asm/processor.h:55: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/processor.h:55: requested alignment is not a constant
In file included from /usr/include/linux/module.h:296,
from nv-linux.h:28,
from nv.c:14:
/usr/include/linux/version.h:2:2: #error "================================================= ======"
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "================================================= ======"
In file included from nv-linux.h:28,
from nv.c:14:
/usr/include/linux/module.h:298: parse error before "UTS_RELEASE"
In file included from nv-linux.h:29,
from nv.c:14:
/usr/include/linux/version.h:2:2: #error "================================================= ======"
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "================================================= ======"
In file included from nv.c:14:
nv-linux.h:31:40: missing binary operator before '('
nv-linux.h:33:42: missing binary operator before '('
nv-linux.h:35:42: missing binary operator before '('
nv-linux.h:37:42: missing binary operator before '('
nv-linux.h:39:42: missing binary operator before '('
nv-linux.h:43:4: #error This driver does not support 2.6.x or newer kernels!
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:45,
from nv-linux.h:64,
from nv.c:14:
/usr/include/linux/irq.h:65: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/irq.h:65: requested alignment is not a constant
In file included from /usr/include/linux/interrupt.h:45,
from nv-linux.h:64,
from nv.c:14:
/usr/include/asm/hardirq.h:16: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/hardirq.h:16: requested alignment is not a constant
In file included from nv-linux.h:64,
from nv.c:14:
/usr/include/linux/interrupt.h:128: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/interrupt.h:128: requested alignment is not a constant
nv-linux.h:111:28: linux/autoconf.h: No such file or directory
nv.c:99:65: missing binary operator before '('
nv.c:697:65: missing binary operator before '('
nv.c:1011:65: missing binary operator before '('
nv.c:1040:65: missing binary operator before '('
nv.c:1383:65: missing binary operator before '('
nv.c: In function `nv_kern_mmap':
nv.c:1386: warning: implicit declaration of function `pgprot_writecombine'
nv.c:1386: incompatible types in assignment
nv.c:2926:65: missing binary operator before '('
make: *** [nv.o] Error 1
  Reply With Quote
Old 10-08-02, 11:10 PM   #8
Andy Mecham
l33t master
 
Join Date: Jul 2002
Location: Santa Clara, CA
Posts: 1,163
Default

From the README:

Q: Installing the NVIDIA_kernel module gives an error message like:
#error Modules should never use kernel-headers system headers
#error but headers from an appropriate kernel-source

A: You need to install the source for the Linux kernel. In most
situations you can fix this problem by installing the kernel-source
package for your distribution


Does this help?

--andy
__________________
Andy Mecham
NVIDIA Corporation
Andy Mecham is offline   Reply With Quote

Old 10-09-02, 02:36 AM   #9
bradvoth
Guest
 
Posts: n/a
Default FAQ

I guess that's what the FAQ was for eh? Sorry about that. I'll give it another go in the morning. For now it's bed time.
  Reply With Quote
Old 10-09-02, 02:54 AM   #10
bradvoth
Guest
 
Posts: n/a
Default bleh

Why, if the kernel-source package is on the 3rd Mandrake 9 CD do they call the 3rd CD the internationlization CD.... /sigh..
  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
New Nvidia GeForce 310.54 Beta Drivers are Now Available News Archived News Items 0 11-12-12 06:20 PM
vdpau issues with openSUSE 12.2 x86_64 and nvidia 304.43 drivers frispete NVIDIA Linux 0 09-29-12 04:41 PM
NVIDIA Drivers Receive Windows 8 Certification News Archived News Items 0 06-01-12 05:30 AM
Radeon 9700 not all that? sancheuz Other Desktop Graphics Cards 200 10-12-02 09:31 PM
Problems with Mandrake and NVidia drivers..... xMonoxide187x NVIDIA Linux 2 08-22-02 01:55 PM

All times are GMT -5. The time now is 06:22 PM.


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