rpm --rebuild mol-kmods problem (Cont)

Arch & Cath mol-general@lists.maconlinux.org
Sat, 31 Aug 2002 17:58:03 -0400


Step - by - step....

Well, I figured out (I thought) that the kernel information (.h files) was
in /usr/include.   So per Stoffel's suggestion, I did:

"KHEADERS=/usr/include rpm --rebuild mol-kmods-0.9.64-2.src.rpm"

Well the build went further than it had before, however, it ended like this:

Making clean in scripts
+ make -C scripts all
make: Entering directory `/usr/src/rpm/BUILD/mol-kmods-0.9.64/scripts'
gcc -DHAVE_CONFIG_H -I. -I. -I../src/shared     -g -O2 -Wall -c
kver_approx.c
gcc  -g -O2 -Wall  -o kver_approx  kver_approx.o
make: Leaving directory `/usr/src/rpm/BUILD/mol-kmods-0.9.64/scripts'
+ '[' -d %kernel_trees ']'
+ make modules
Making all in Linux
In file included from ../../../scripts/buildtools/kuname.c:1:
/usr/include/linux/modversions.h:1: #error Modules should never use
kernel-headers system
headers,
/usr/include/linux/modversions.h:2: #error but headers from an appropriate
kernel-source
make[3]: *** [kuname] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [modules_] Error 2
make: *** [modules] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.66132 (%build)

I guess it found headers, but didn't like them?

Arch