View Single Post
Old 09-11-02, 04:35 PM   #1
Posts: n/a
Default Mandrake 8.2 Nvidia src.rpm problems

Using points me to the src.rpm for the kernel driver and the GLX rpm for the GLX driver.

With that said, I should point out that I have previously tried the mandrake 8.2 UP rpm with no success. Now, when I try to use the $ rpm --rebuild NVIDIA_kernel-1.0-2960.src.rpm command I end up with the following:

Installing NVIDIA_kernel-1.0-2960.src.rpm
Executing(%prep): /bin/sh -e /var.tmp/rpm-tmp.1644
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+rm -rf NVIDIA_kernel-1.0-2960
+ /bin/gzip -dc /usr/src/RPM/SOURCES/NVIDIA_kernel-1.0-2960.tar.gz
+ tar -xf-
+ '[' 0 -ne 0 ']'
+ cd NVIDIA_kernel-1.0-2960
+ exit 0
Executing(%build) : /bin/sh -e /var/tmp/rpm-tmp.1644
+umask 022
+ cd /usr/src/RPM/BUILD
+set +e
++ rpm -q --queryformat '%{VERSION} ' rpm
++ awk -F . '{print $1;}'
++ echo 4.0.3
++ echo 4.0.3
++ awk -F . '{print $3;}'
+ '[' 4 -le 3 -a 0 -le 0 -a 3 -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 -Wparenthese -Wpointer-arith -Wcast-qual -Wno-Multichar -0 -MD 0D__KERNEL__ -DMODULE
In file included from /usr/include/linux/module.h:296,
from nv.c:25:
/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)"
/urs/include/linux/version.h:8:2: #error "These files are glibc internal and many 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: " "
/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`/buils 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 Makefule accordingly."
/usr/include/linux/version.h:35:2: #error "================================================= ============="
In file included from nv-linux.h:24,
from nv.c:27:
/usr/include/linux/version.h:2:2: #error "================================================= ============="
****The Above Section repeats itself****
****Above section followed by text below****
In file included from nv.c:27:
nv-linux.h:32:40: missing binary operator before '<'
nv-linux.h:34:42: missing binary operator before '<'
nv-linux.h:36:42: missing binary operator before '<'
nv-linux.h:38:42: missing binary operator before '<'
nv-linux.h:40:42: missing binary operator before '<'
nv-linux.h:44:4: #error This driver does not support 2.6x or newer kernels!
nv-linux.h:53:28: linux/autoconf.h: No such file or directory
nv.c:180:59: missing binary operator before '>='
nv.c:784:59: missing binary operator before '>='
nv.c:1098:59: missing binary operator before '>='
nv.c:1127:59: missing binary operator before '>='
nv.c:1470:59: missing binary operator before '<'
nv.c:3020:59: missing binary operator before '>='
make: *** [nv.0] Error 1
+ exit 0
Executing (%install) : /bin/sh -e /var/tmp/rpm-tmp.1644
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd NVIDIA_kernel-1.0-2960
+ rm -f /tmp/files.lst
+ '[' -z ' ' ']'
++ uname -r
+ export TARGET_KERNEL=2.3.18-6mdkenterprise
+ TARGET_KERNEL=2.4.18-6mdkenterprise
+ '[' -d /lib/modules/2.4.18-6mdkenterprise/kernel ']'
+ INSTALLPATH=/lib/modules/2.4.18-6mdkenterprise/kernel/dri
+ mkdir -p /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.18-6
+install -m 0444 NVdriver /var/tmp/NVIDIA_kernel-1.0//lib/
install: cannot stat `NVdriver' : No such file or directory
error : Bad exit status from /var/tmp/rpm-tmp.1644 (%install

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


Can someone please translate this to n00b-speak for me. I'm rather frustrated with the amount of time that I have spent on this particular issue. I have tried the mdk82UP.rpm version of the kernel driver as well, and have run into other problems. I figured uninstalling the RPM, resetting xconfig and starting from scratch would be the best way to handle this, but now I'm up against a brick wall. Any help would be greatly appreciated. Thanks.
  Reply With Quote