Red Hat Bugzilla – Bug 457383
can't unpack kernel source (fixdep.c errors)
Last modified: 2008-09-13 23:21:04 EDT
Description of problem:
as I need ful kernel sources to compile some modules I downloader source rpm and
tried to unpack it. rpmbuild-bp ends with fixdep errors
Version-Release number of selected component (if applicable):
had kernel-headers and kernel-devel packages installed, were not sufficient.
- installed (yum install) yum-utils rpmdevtools
- downloaded (yumdownloader --source kernel) kernel source
- installed (rpm -ivh kernel-18.104.22.168-97.fc9.src.rpm)
Steps to Reproduce:
1.rpmbuild -bp --target=$(uname -m) /usr/src/redhat/SPECS/kernel.spec
scripts/basic/fixdep.c:107:23: error: sys/types.h: No such file or directory
scripts/basic/fixdep.c:108:22: error: sys/stat.h: No such file or directory
scripts/basic/fixdep.c:109:22: error: sys/mman.h: No such file or directory
scripts/basic/fixdep.c:380: warning: incompatible implicit declaration of
built-in function 'exit'
make: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.67858 (%prep)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.67858 (%prep)
Have kernel sources ready
I just found that "glibc-headers" package was missing. There must be some
dependency problem as I had "Development Libraries" and "Development Tools" yum
1) move to appropriate category
2) check package dependency
∄ glibc-kernheaders, so assigning the bug there certainly doesn't make sense.
There are some packages -- gcc, glibc-headers, make, etc. -- which are assumed to be present. Building _anything_ will fail if those core packages are not installed, and we're not expected to put in explicit dependencies on them.
This is classed as user error -- although perhaps the rpmbuild package should have an explicit dependency on all the others?