Mandriva Expert
The place where your Mandriva Linux system finds support

Here's an Nvidia challenge...

+/- details
User Kwillson
Incident Number 25430
Date 2002/06/23 04:30
Status Incident closed
Paid No

Product 8.2
Architecture x86_32
Scope Installation

Products owned
Community Support question - to convert into a paid question, click here

Lines in bold below have not yet been seen by the customer - those in blue are from the customer

Username : Date : Action : Comments [ close all ]    
 
Kwillson : 23/06/02 04:30 AM : Incident created
-   When trying to install the new Nvidia drivers, I have the following problems:
The Kernel RPM doesn't work...
Both the .tar.gz and the src.rpm give me similar error messages.
On the surface it looks like the Nvidia makefile is not compatible with current
glib..
See what you think -- sorry the error message is so long, but I wanted
this to be concise:

Installing NVIDIA_kernel-1.0-2960.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.55501
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 -
STATUS=0
'[' 0 -ne 0 ']'
cd NVIDIA_kernel-1.0-2960
exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.55501
umask 022
cd /usr/src/RPM/BUILD
cd NVIDIA_kernel-1.0-2960
set e
rpm -q --queryformat '%{VERSION}' rpm
RPMVERSION=4.0.3
echo 4.0.3
awk -F . '{print $1;}'
RPMMAJOR=4
echo 4.0.3
awk -F . '{print $2;}'
RPMMINOR=0
echo 4.0.3
awk -F . '{print $3;}'
RPMPATCH=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 -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -D_X86=1 -Di386=1 -DUNIX -DLINUX -DNV4_HW -DNTRM -DRM20 -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=2960 -I. -I/usr/src/linux/include -Wno-cast-qual nv.c
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)"
/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 or"
/usr/include/linux/version.h:12:2: #error " 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: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.6.x 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.o] Error 1
exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.55501
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.4.18-6mdk
TARGET_KERNEL=2.4.18-6mdk
'[' -d /lib/modules/2.4.18-6mdk/kernel ']'
INSTALLPATH=/lib/modules/2.4.18-6mdk/kernel/drivers/video
mkdir -p /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.18-6mdk/kernel/drivers/video
install -m 0444 NVdriver /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.18-6mdk/kernel/drivers/video
install: cannot stat `NVdriver': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.55501 (%install)

 
Linegod_7611 : 23/06/02 12:14 PM : Reply received
-   Looks like 'kernel-headers' is not installed. Either install it, or give an output of
'rpm -qa|grep kernel'.

------
Note: If this answer resolves your problem, please remember to close this incident.

 
Kwillson : 23/06/02 12:40 PM : More info provided
-   Thanks for responding! Cured it myself, in this case quite a feat for I'm now in my 6th day of Linux :)
And I don't know, if an error text of such magnitude was going to be generated
why It couldn't give more info as to a solution to the user...but the solution was
to simply install the kernel source file which I never had the need to do before).
I suppose this gave the install a place to grab the headers that it liked.
This solution was actually dicussed in the Nvidia FAQ, but not as a fix for this particular error.
Drivers working now (wound up having to use the .tar .gz version of the kernel
file -- others still wouldn't work right).
I still have an error at boot up, line 18 in rc module has bad syntax, but it is not a showstopper
and I feel secure that I can edit that problem away somehow. Hope this record helps the next guy :)

 
 
Kwillson : 23/06/02 12:43 PM : Incident closed
-   When installing the Nvidia drivers, use the basic .tar.gz files and have the
source file for your particular linux kernel installed on your box so that the
driver file has an allowed source from which to grab its header info.



This Incident is closed. It can not be edited anymore. You can create a new one by signing up/logging in your Mandriva Expert account.

  Mandriva  |  Contact  |  Legal  |  Privacy  |  Careers