PDA

View Full Version : Compiling fronm src.rpm


Aritlaine
12-13-02, 02:44 PM
Hi all.

I have a problem with NVIDIA_kernel.1.0.2802.src.rpm.
When I compiling my src-packet, typing...
# rpmbuild --rebuild NVIDIA_kernel.1.0.2802.src.rpm, I got a error messages....

[root@localhost root]# rpm --rebuild NVIDIA_kernel-1.0-2802.src.rpm
Asennan: NVIDIA_kernel-1.0-2802.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.25322
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf NVIDIA_kernel-1.0-2802
+ /bin/gzip -dc /usr/src/redhat/SOURCES/NVIDIA_kernel-1.0-2802.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd NVIDIA_kernel-1.0-2802
++ /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.25322
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd NVIDIA_kernel-1.0-2802
+ 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
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparen
theses -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=2802 -I. -I/usr/src/linux/incl
ude -Wno-cast-qual nv.c
In file included from /usr/include/linux/timex.h:152,
from /usr/include/linux/sched.h:14,
from /usr/include/linux/vmalloc.h:4,
from nv-linux.h:29,
from nv.c:27:
/usr/include/asm/timex.h:10:21: asm/msr.h: No such file or directory
In file included from /usr/include/linux/vmalloc.h:8,
from nv-linux.h:29,
from nv.c:27:
/usr/include/asm/pgtable.h:17:24: asm/fixmap.h: No such file or directory
In file included from nv-linux.h:47,
from nv.c:27:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in user
space
In file included from nv.c:41:

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


Can anyone told me, what this mean...

Cheers Ari

Andy Mecham
12-13-02, 03:03 PM
Please make sure you have your kernel sources installed. Also, is there any reason you're using 1.0-2802 vs. 1.0-3123 or 1.0-4191?

--andy

Chalnoth
12-13-02, 04:11 PM
Just as a side note, I'd like to show a little problem that I had. I updated Redhat through the Redhat update program, and it failed to properly update the source. I needed to go to the Redhat site, manually download the updated kernel-source RPM file, then uninstall the kernel source file on my computer (rpm -e kernel-source) and reinstall the source RPM from Redhat's ftp server (rpm -ivh kernel-source-versionnumbercrap.src.rpm)