pre-compiled nvidia kernel rpm for mandrake 9?

silverpig

Lifer
Jul 29, 2001
27,703
12
81
Can anyone send this to me? I had it working fine with rc3, but ever since I upgraded to final, I can't compile the bloody thing. If the compiled rpm is a decent size, could you maybe email it to me? Thanks.
 

silverpig

Lifer
Jul 29, 2001
27,703
12
81
Yep. No dice. I've found the precompiled GLX rpm (no problem as I built my own from source), and the .src.rpm for the kernel, but no pre-compiled version.
 

polm

Diamond Member
May 24, 2001
3,183
0
0
goto NVIDIA's WEB SITE and download the RPMs from there.....

if you have problems with the precompiled packages...just get the SOURCE and build it yourself.
 

manly

Lifer
Jan 25, 2000
13,330
4,100
136
Originally posted by: polm
goto NVIDIA's WEB SITE and download the RPMs from there.....

if you have problems with the precompiled packages...just get the SOURCE and build it yourself.
LOL, read his original post. :)

As for the GLX, you don't actually build that from source, even if you get the tarball. It's closed-source Nvidia IP.

If you don't get someone to email the RPM, you (silverpig) should post the compiler errors instead and we can work from there.
 

silverpig

Lifer
Jul 29, 2001
27,703
12
81
Here's my error message:

;; This buffer is for notes you don't want to save, and for Lisp evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.

[root@localhost downloads]# rpm --rebuild NVIDIA_kernel-1.0-3123.src.rpm
Installing NVIDIA_kernel-1.0-3123.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.84655
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf NVIDIA_kernel-1.0-3123
+ /bin/gzip -dc /usr/src/RPM/SOURCES/NVIDIA_kernel-1.0-3123.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd NVIDIA_kernel-1.0-3123
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.84655
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd NVIDIA_kernel-1.0-3123
+ set +e
++ rpm -q --queryformat '%{VERSION}' rpm
+ RPMVERSION=4.0.4
++ echo 4.0.4
++ awk -F . '{print $1;}'
+ RPMMAJOR=4
++ echo 4.0.4
++ awk -F . '{print $2;}'
+ RPMMINOR=0
++ echo 4.0.4
++ awk -F . '{print $3;}'
+ RPMPATCH=4
+ '[' 4 -le 3 -a 0 -le 0 -a 4 -lt 4 ']'
+ make NVdriver
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
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
o"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/inc
ude/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
he following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correc
include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/i
clude"
/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 accord
ngly."
/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 i
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
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.73221
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd NVIDIA_kernel-1.0-3123
+ rm -f /tmp/files.lst
+ '[' -z '' ']'
++ uname -r
+ export TARGET_KERNEL=2.4.19-16mdk
+ TARGET_KERNEL=2.4.19-16mdk
+ '[' -d /lib/modules/2.4.19-16mdk/kernel ']'
+ INSTALLPATH=/lib/modules/2.4.19-16mdk/kernel/drivers/video
+ mkdir -p /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.19-16mdk/kernel/drivers/
ideo
+ install -m 0444 NVdriver /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.19-16mdk
kernel/drivers/video
install: cannot stat `NVdriver': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.73221 (%install)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.73221 (%install)

I've made sure the symlinks exist and point to the correct files, but I still keep getting this error.
 

silverpig

Lifer
Jul 29, 2001
27,703
12
81
This is really bothering me now... Hasn't anyone compiled the kernel driver on their mandrake 9 system yet?
 

WinkOsmosis

Banned
Sep 18, 2002
13,990
1
0
I'm shocked that the support isn't there right out of the "box". How many people have nVidia cards?!
 

silverpig

Lifer
Jul 29, 2001
27,703
12
81
The precompiled kernel rpm comes on a cd if you buy mandrake. It doesn't come if you download it though. Licensing issues or something.

It's not a huge deal to me, as I'm downloading redhat 8.0 at 300 KB/s :)

I'm gonna try out redhat just cause I wanna, and if I do decide on mandrake, I'll either install 8.2, set everything up, and then upgrade, or I'll just stick with rc3.
 

brxndxn

Diamond Member
Apr 3, 2001
8,475
0
76
silverpig, I have the nvidia kernel on my laptop which is running mandrake 9 for the Geforce2go processor. It works fine and everything. I just followed the nvidia instructions and I got no errors..


Anyway, gimme an email address and I'll email the kernel to you.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: Jellomancer
I'm shocked that the support isn't there right out of the "box". How many people have nVidia cards?!

Because nVidia doesnt play well with others.
 

manly

Lifer
Jan 25, 2000
13,330
4,100
136
I can send you a compiled RPM, but you can compile it yourself actually.

The errors in rebuilding from src RPM are due to the fact you don't have the kernel-source package installed.

Install the kernel-source package, and for good measure build the dependencies:
cd /usr/src/linux ; make dep

Then you can rebuild the NVIDIA kernel drivers RPM.

n0cmonkey's political comment does belie the fact that Nvidia has had the best OpenGL support under Linux of any consumer product in recent years, by far. I'm not aware that any of the open-source DRI drivers (for competing hardware) yet approach Nvidia's closed source efforts. I believe ATI is now handling drivers for Radeon GPUs but I have not seen any particular press showcasing its Linux support yet. Even under windows w/ the top-notch Radeon 9700 Pro, the drivers development is generally believed to be chasing Nvidia's reputation for quality and performance.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: manly
I can send you a compiled RPM, but you can compile it yourself actually.

The errors in rebuilding from src RPM are due to the fact you don't have the kernel-source package installed.

Install the kernel-source package, and for good measure build the dependencies:
cd /usr/src/linux ; make dep

Then you can rebuild the NVIDIA kernel drivers RPM.

n0cmonkey's political comment does belie the fact that Nvidia has had the best OpenGL support under Linux of any consumer product in recent years, by far. I'm not aware that any of the open-source DRI drivers (for competing hardware) yet approach Nvidia's closed source efforts. I believe ATI is now handling drivers for Radeon GPUs but I have not seen any particular press showcasing its Linux support yet. Even under windows w/ the top-notch Radeon 9700 Pro, the drivers development is generally believed to be chasing Nvidia's reputation for quality and performance.

I dont hesitate to admit that nVidia appears to have the best drivers. If I needed a powerful consumer 3d card I would purchase an nVidia based card. Until then, Matrox cards are top notch with great open source drivers. They fit my needs :)