Problem with creating rpm for navidia kernel and glx for Fedora core
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Problem with creating rpm for navidia kernel and glx for Fedora core
When I try to build the rpm for navidia kernel and navidia glx to make openGL works this error occurs
As my knowledge what here asking is for rebus
What is this ?
How to solve this and make the rpm ?
Thanks
Lakshan
This is what it gives
[root@L-NET new1]# rpmbuild --rebuild NVIDIA_kernel-1.0-4496.src.rpm
Installing NVIDIA_kernel-1.0-4496.src.rpm
warning: user rebus does not exist - using root
warning: group rebus does not exist - using root
warning: user rebus does not exist - using root
warning: group rebus does not exist - using root
warning: user rebus does not exist - using root
warning: group rebus does not exist - using root
warning: user rebus does not exist - using root
warning: group rebus does not exist - using root
warning: user rebus does not exist - using root
warning: group rebus does not exist - using root
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.74094
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /usr/src/redhat/BUILD
+ rm -rf NVIDIA_kernel-1.0-4496
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/NVIDIA_kernel-1.0-4496.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd NVIDIA_kernel-1.0-4496
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.74094
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd NVIDIA_kernel-1.0-4496
+ LANG=C
+ export LANG
+ unset DISPLAY
++ cat /proc/version
++ cut -d ' ' -f 7
+ KERNELCC=3.2.3
++ gcc --version
++ head -1
++ cut -d ' ' -f 3
+ MODULECC=3.3.2
+ '[' 3.2.3 '!=' 3.3.2 ']'
+ export CC=gcc32
+ CC=gcc32
+ set +e
++ rpm -q --queryformat '%{VERSION}' rpm
+ RPMVERSION=4.2.1
++ echo 4.2.1
++ awk -F . '{print $1;}'
+ RPMMAJOR=4
++ echo 4.2.1
++ awk -F . '{print $2;}'
+ RPMMINOR=2
++ echo 4.2.1
++ awk -F . '{print $3;}'
+ RPMPATCH=1
+ '[' 4 -le 3 -a 2 -le 0 -a 1 -lt 4 ']'
+ make nvidia.o
echo \#define NV_COMPILER \"`gcc32 -v 2>&1 | tail -n 1`\" > nv_compiler.h
gcc32 -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 -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4496 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -DREMAP_PAGE_RANGE_4 -I. -I/lib/modules/2.4.22-1.2115.nptl/build/include -Wno-cast-qual nv.c
In file included from nv-linux.h:27,
from nv.c:14:
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:60: invalid suffix on integer constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:60: syntax error before numeric constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:61: invalid suffix on integer constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:61: syntax error before numeric constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:62: `panic_R_ver_str' declared as function returning a function
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:68: syntax error before numeric constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:68: `simple_strtoul_R_ver_str' declared as function returning a function
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:69: invalid suffix on integer constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:69: syntax error before numeric constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:69: `simple_strtol_R_ver_str' declared as function returning a function
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:70: invalid suffix on integer constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:70: syntax error before numeric constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:70: `simple_strtoull_R_ver_str' declared as function returning a function
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:72: invalid suffix on integer constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:72: syntax error before numeric constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:73: `sprintf_R_ver_str' declared as function returning a function
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:74: invalid suffix on integer constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:74: syntax error before numeric constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:74: `vsprintf_R_ver_str' declared as function returning a function
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:75: invalid suffix on integer constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:75: syntax error before numeric constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:76: `snprintf_R_ver_str' declared as function returning a function
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:77: invalid suffix on integer constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:77: syntax error before numeric constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:77: `vsnprintf_R_ver_str' declared as function returning a function
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:79: invalid suffix on integer constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:79: syntax error before numeric constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:80: `sscanf_R_ver_str' declared as function returning a function
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:81: `vsscanf_R_ver_str' declared as function returning a function
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:81: warning: parameter names (without types) in function declaration
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:83: `get_option_R_ver_str' declared as function returning a function
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:83: warning: parameter names (without types) in function declaration
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:84: invalid suffix on integer constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:84: syntax error before numeric constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:84: `get_options_R_ver_str' declared as function returning a function
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:85: invalid suffix on integer constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:85: syntax error before numeric constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:85: `memparse_R_ver_str' declared as function returning a function
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:93: invalid suffix on integer constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:93: syntax error before numeric constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:94: `printk_R_ver_str' declared as function returning a function
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:110: syntax error before numeric constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:111: warning: parameter names (without types) in function declaration
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:116: invalid suffix on integer constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:116: syntax error before numeric constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:116: `dump_stack_R_ver_str' declared as function returning a function
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:194: invalid suffix on integer constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:194: syntax error before numeric constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/kernel.h:194: `__out_of_line_bug_R_ver_str' declared as function returning a function
In file included from /lib/modules/2.4.22-1.2115.nptl/build/include/linux/spinlock.h:56,
from /lib/modules/2.4.22-1.2115.nptl/build/include/linux/module.h:11,
from nv-linux.h:28,
from nv.c:14:
/lib/modules/2.4.22-1.2115.nptl/build/include/asm/spinlock.h:9: invalid suffix on integer constant
/lib/modules/2.4.22-1.2115.nptl/build/include/asm/spinlock.h:9: syntax error before numeric constant
/lib/modules/2.4.22-1.2115.nptl/build/include/asm/spinlock.h:10: `printk_R_ver_str' declared as function returning a function
In file included from /lib/modules/2.4.22-1.2115.nptl/build/include/linux/prefetch.h:13,
from /lib/modules/2.4.22-1.2115.nptl/build/include/linux/list.h:6,
from /lib/modules/2.4.22-1.2115.nptl/build/include/linux/module.h:12,
from nv-linux.h:28,
from nv.c:14:
/lib/modules/2.4.22-1.2115.nptl/build/include/asm/processor.h:60: warning: parameter names (without types) in function declaration
/lib/modules/2.4.22-1.2115.nptl/build/include/asm/processor.h:60: field `loops_per_jiffy_R_ver_str' declared as a function
/lib/modules/2.4.22-1.2115.nptl/build/include/asm/processor.h:83: invalid suffix on integer constant
/lib/modules/2.4.22-1.2115.nptl/build/include/asm/processor.h:83: syntax error before numeric constant
/lib/modules/2.4.22-1.2115.nptl/build/include/asm/processor.h:202: warning: parameter names (without types) in function declaration
/lib/modules/2.4.22-1.2115.nptl/build/include/asm/processor.h: In function `set_in_cr4':
/lib/modules/2.4.22-1.2115.nptl/build/include/asm/processor.h:206: `dad5638d' undeclared (first use in this function)
/lib/modules/2.4.22-1.2115.nptl/build/include/asm/processor.h:206: (Each undeclared identifier is reported only once
/lib/modules/2.4.22-1.2115.nptl/build/include/asm/processor.h:206: for each function it appears in.)
/lib/modules/2.4.22-1.2115.nptl/build/include/asm/processor.h:206: invalid lvalue in assignment
/lib/modules/2.4.22-1.2115.nptl/build/include/asm/processor.h: In function `clear_in_cr4':
/lib/modules/2.4.22-1.2115.nptl/build/include/asm/processor.h:216: `dad5638d' undeclared (first use in this function)
/lib/modules/2.4.22-1.2115.nptl/build/include/asm/processor.h:216: invalid lvalue in assignment
In file included from /lib/modules/2.4.22-1.2115.nptl/build/include/linux/prefetch.h:13,
from /lib/modules/2.4.22-1.2115.nptl/build/include/linux/list.h:6,
from /lib/modules/2.4.22-1.2115.nptl/build/include/linux/module.h:12,
from nv-linux.h:28,
from nv.c:14:
/lib/modules/2.4.22-1.2115.nptl/build/include/asm/processor.h:257:1: warning: "EISA_bus" redefined
In file included from /lib/modules/2.4.22-1.2115.nptl/build/include/linux/modversions.h:141,
from nv-linux.h:24,
from nv.c:14:
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/modules/i386_ksyms.ver:228:1: warning: this is the location of the previous definition
/lib/modules/2.4.22-1.2115.nptl/build/include/asm/processor.h: At top level:
/lib/modules/2.4.22-1.2115.nptl/build/include/asm/processor.h:259: warning: parameter names (without types) in function declaration
In file included from nv-linux.h:28,
from nv.c:14:
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/module.h:190: invalid suffix on integer constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/module.h:190: syntax error before numeric constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/module.h:190: `inter_module_register_R_ver_str' declared as function returning a function/lib/modules/2.4.22-1.2115.nptl/build/include/linux/module.h:191: invalid suffix on integer constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/module.h:191: syntax error before numeric constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/module.h:191: `inter_module_unregister_R_ver_str' declared as function returning a function
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/module.h:192: `inter_module_get_R_ver_str' declared as function returning a function
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/module.h:192: warning: parameter names (without types) in function declaration
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/module.h:193: `inter_module_get_request_R_ver_str' declared as function returning a function
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/module.h:193: warning: parameter names (without types) in function declaration
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/module.h:194: invalid suffix on integer constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/module.h:194: syntax error before numeric constant
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/module.h:194: `inter_module_put_R_ver_str' declared as function returning a function
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/module.h:203: `try_inc_mod_count_R_ver_str' declared as function returning a function
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/module.h:203: warning: parameter names (without types) in function declaration
In file included from /lib/modules/2.4.22-1.2115.nptl/build/include/linux/fs.h:19,
from /lib/modules/2.4.22-1.2115.nptl/build/include/linux/capability.h:17,
from /lib/modules/2.4.22-1.2115.nptl/build/include/linux/binfmts.h:4,
from /lib/modules/2.4.22-1.2115.nptl/build/include/linux/sched.h:10,
from /lib/modules/2.4.22-1.2115.nptl/build/include/linux/mm.h:4,
from /lib/modules/2.4.22-1.2115.nptl/build/include/linux/slab.h:14,
from nv-linux.h:71,
from nv.c:14:
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/dcache.h: In function `dget':
/lib/modules/2.4.22-1.2115.nptl/build/include/linux/dcache.h:252: warning: implicit declaration of function `__out_of_line_bug_R8b0fd3c5'
In file included from nv.c:14:
nv-linux.h: In function `pgprot_noncached':
nv-linux.h:508: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function)
nv.c: In function `nvos_proc_create':
nv.c:623: warning: implicit declaration of function `sprintf_R1d26aa98'
nv.c: In function `nv_agp_init':
nv.c:2700: warning: implicit declaration of function `inter_module_get_Rf6a0ce24'
nv.c:2701: warning: implicit declaration of function `inter_module_put_R6b99f7d8'
make: *** [nv.o] Error 1
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.3219
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd NVIDIA_kernel-1.0-4496
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -f /tmp/files.lst
+ '[' -z '' ']'
++ uname -r
+ export TARGET_KERNEL=2.4.22-1.2115.nptl
+ TARGET_KERNEL=2.4.22-1.2115.nptl
+ '[' -d /lib/modules/2.4.22-1.2115.nptl/kernel ']'
+ INSTALLPATH=/lib/modules/2.4.22-1.2115.nptl/kernel/drivers/video
+ mkdir -p /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.22-1.2115.nptl/kernel/drivers/video
+ install -m 0444 nvidia.o /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.22-1.2115.nptl/kernel/drivers/video
install: cannot stat `nvidia.o': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.3219 (%install)
RPM build errors:
user rebus does not exist - using root
group rebus does not exist - using root
user rebus does not exist - using root
group rebus does not exist - using root
user rebus does not exist - using root
group rebus does not exist - using root
user rebus does not exist - using root
group rebus does not exist - using root
user rebus does not exist - using root
group rebus does not exist - using root
Bad exit status from /var/tmp/rpm-tmp.3219 (%install)
You didn't say what distro you're using, but from some of the code it appears you are using Red Hat. If this is the case, you should be using the NVIDIA-Linux-x86-1.0-4496-pkg2.run file which you can get from here. There is an excellent faq on LinuxQuestions here . Just follow the instructions
Fedora core 2.4.22-1.2115.nptl_22 kernel when i try to compile NVIDIA_kernel it give that error and i tried with
export CC=gcc32
export IGNORE_CC_MISSMATCH="1"
still the same how can i over come with this and install nvidia work,
i have knowledge og doing every thing but i dont no what to do to make it work
Sorry ... it was late here when I posted and I missed the Fedora part of the post.
Another question though, Do you have the kernel source installed? And are you sure that the 2-part driver will work for Fedora? It appears that the RPM's for the 44.96 version are for SuSE only, unless RedHat has made some RPM's.
when it says error compiling kernel interface DONT HIT OK! follow the
steps below:
a) open a second virtual terminal (alt+F2, or alt+F3, etc)
b) cp /boot/config-2.4.22-1.2115.nptl /usr/src/linux-2.4/.config
(version numbers might differ)
c) cd /tmp/ ; ls
there should be a directory like "selfgz6310" [ the number part will
change ]
d) cp -r /tmp/selfgz*/NVIDIA-Linux-x86-1.0-4496-pkg2/usr/src/nv /usr/src/
e) vi /usr/src/nv/Makefile
and on the third line add "CC=gcc32" save that.
f) cd /tmp/selfgz*/NVIDIA-Linux-x86-1.0-4496-pkg2/
g) vi Makefile
and edit that Makefile and change (about 12% into the file) the following
single line:
kernel_module_install:
cd usr/src/nv; make install
## to ##
kernel_module_install:
cd /usr/src/nv; make install
in essence, you're adding 1 character: a / to the beginning of the
path the /usr/src/nv directory.
h) make install
i) if no errors occur, you're done. go back to the first virtual terminal
with the NVIDIA installer (which still says "ERROR: blah blah" in it)
and press OK to exit.
And what happened?
I'm kinda glad I use Mandrake and not Fedora Core 1
but finaly when i do make install this is the out put what i get
[root@L-NET nv]# make install
ld -r -o nvidia.o nv-linux.o nv-kernel.o
depmod: *** Unresolved symbols in /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/video/nvidia.o
/lib/modules/2.4.22-1.2115.nptl/kernel/drivers/video/nvidia.o: kernel-module version mismatch
/lib/modules/2.4.22-1.2115.nptl/kernel/drivers/video/nvidia.o was compiled for kernel version 2.4.22-1.2115.nptlcustom
while this kernel is version 2.4.22-1.2115.nptl.
/lib/modules/2.4.22-1.2115.nptl/kernel/drivers/video/nvidia.o: insmod /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/video/nvidia.o failed
/lib/modules/2.4.22-1.2115.nptl/kernel/drivers/video/nvidia.o: insmod nvidia failed
make: *** [package-install] Error 255
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.