LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-08-2002, 02:29 PM   #1
aze
Member
 
Registered: Dec 2002
Location: Brazil
Posts: 31

Rep: Reputation: 15
rpm rebuild nvidia mdk9


Hello!

I'm having a trouble when installing nvidia driver for linux (mdk9).
I downloaded the following files:

NVIDIA_GLX-1.0-3123.src.rpm
NVIDIA_GLX-1.0-3123.tar.gz
NVIDIA_kernel-1.0-3123.src.rpm
NVIDIA_kernel-1.0-3123.tar.gz

So I tried this command line (as root):
$ rpm --rebuild NVIDIA_kernel-1.0-3123.src.rpm

the console returns:
/usr/lib/rpm/rpmb: Permission denied

At the first time I run the command ($ rpm --rebuild NVIDIA_kernel-1.0-3123.src.rpm) the console returned "/usr/lib/rpm/rpm : No such file or directory" so I created this dir (/usr/lib/rpm/rpm) and checked out its permissions. After that I tried the command ($ rpm ...) and the error still the same:
/usr/lib/rpm/rpmb: Permission denied

Also I tried the installation with the tar.gz files like below:

$ tar xzvf NVIDIA_kernel-1.0-3123.tar.gz
$ tar xzvf NVIDIA_GLX-1.0-3123.tar.gz
$ cd NVIDIA_GLX-1.0-3123

But when I try to install another error:


$ make install

You appear to be compiling the NVdriver kernel module with
a compiler different from the one that was used to compile
the running kernel. This may be perfectly fine, but there
are cases where this can lead to unexpected behaviour and
system crashes.

If you know what you are doing and want to override this
check, you can do so by setting IGNORE_CC_MISMATCH.

In any other case, set the CC environment variable to the
name of the compiler that was used to compile the kernel.

*** Failed cc sanity check. Bailing out! ***
make: *** [gcc-check] Error 1


Everyting I did was as root. Please what should I do to fix those problems and install NVIDIA driver?

Thanks a lot!
 
Old 12-08-2002, 02:34 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Mismatch of gcc version is quickly fixed if you issue
export IGNORE_CC_MISMATCH=1
and tehn try to compile drivers,
as for RPM database it might be misconfigured or corrupted, so plain
rpm --rebuilddb
could fix it, otherwise you can start from scratch with
rpm --initdb
 
Old 12-08-2002, 03:48 PM   #3
aze
Member
 
Registered: Dec 2002
Location: Brazil
Posts: 31

Original Poster
Rep: Reputation: 15
Hi Neo!
Thanks for your attention!

"export IGNORE_CC_MISMATCH=1" worked fine but generated some errors:

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

# make install
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/usr/src/linux/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 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
[root@localhost NVIDIA_kernel-1.0-3123]#
[root@localhost NVIDIA_kernel-1.0-3123]# cd..
[root@localhost nvidia]# rpm --rebuilddb
rmp
sd

--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
when I typed "rpm --rebuilddb" and "rpm --initdb" the console stopped responding.
What sould I do? I'm tring to install this driver since 3 weeks ago! plz help me! help plz!!
do you have icq?

Thank you!
 
Old 12-09-2002, 01:44 PM   #4
js72
Member
 
Registered: Dec 2002
Posts: 102

Rep: Reputation: 15
Have you tried to install rpms. You can found those in www.mandrakeuser.org or www.mandrakeusers.org dont remember which one was it. But to me rpms worked just fine. But now im running rh8.0. With nvidia also working fine. Gooooood luck!
 
Old 12-09-2002, 03:12 PM   #5
aze
Member
 
Registered: Dec 2002
Location: Brazil
Posts: 31

Original Poster
Rep: Reputation: 15
Thanks all!
Maybe this link (http://www.mandrakeusers.org) could help me!
Thank you!
 
Old 04-27-2004, 03:42 AM   #6
sharkenshtein
LQ Newbie
 
Registered: Apr 2004
Location: Russia
Posts: 1

Rep: Reputation: 0
Re: rpm rebuild nvidia mdk9

Quote:
Originally posted by aze
Hello!

I'm having a trouble when installing nvidia driver for linux (mdk9).
I downloaded the following files:

NVIDIA_GLX-1.0-3123.src.rpm
NVIDIA_GLX-1.0-3123.tar.gz
NVIDIA_kernel-1.0-3123.src.rpm
NVIDIA_kernel-1.0-3123.tar.gz

So I tried this command line (as root):
$ rpm --rebuild NVIDIA_kernel-1.0-3123.src.rpm

the console returns:
/usr/lib/rpm/rpmb: Permission denied

At the first time I run the command ($ rpm --rebuild NVIDIA_kernel-1.0-3123.src.rpm) the console returned "/usr/lib/rpm/rpm : No such file or directory" so I created this dir (/usr/lib/rpm/rpm) and checked out its permissions. After that I tried the command ($ rpm ...) and the error still the same:
/usr/lib/rpm/rpmb: Permission denied
rpm-build-x.x.x-10mdk package just help you
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rpm rebuild Xris718 Linux - General 2 05-06-2005 01:34 PM
rpm --rebuild juworld Linux - Newbie 1 02-27-2004 02:30 PM
rpm --rebuild chrisknight Linux - General 1 07-13-2003 08:12 PM
Help on RPM --rebuild ztopher Linux - Software 3 03-28-2003 06:46 AM
RPM rebuild? GT I.N.C Linux - Software 4 10-20-2002 01:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration