Bug 457383

Summary: can't unpack kernel source (fixdep.c errors)
Product: [Fedora] Fedora Reporter: Miroslav Pragl <miroslav>
Component: glibc-kernheadersAssignee: David Woodhouse <dwmw2>
Status: CLOSED NOTABUG QA Contact: Brian Brock <bbrock>
Severity: high Docs Contact:
Priority: low    
Version: 9CC: dwmw2, kernel-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-09-14 03:21:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Miroslav Pragl 2008-07-31 10:39:09 UTC
Description of problem:
Hello,
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):
kernel-2.6.25.11-97.fc9.src.rpm


How reproducible:
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-2.6.25.11-97.fc9.src.rpm)

Steps to Reproduce:
1.rpmbuild -bp --target=$(uname -m) /usr/src/redhat/SPECS/kernel.spec
2.
3.
  
Actual results:
...
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[1]: *** [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)

Expected results:
Have kernel sources ready

Additional info:

Comment 1 Miroslav Pragl 2008-07-31 13:11:51 UTC
Hello,
I just found that "glibc-headers" package was missing. There must be some
dependency problem as I had "Development Libraries" and "Development Tools" yum
groupinstall-ed 

Please 

1) move to appropriate category
2) check package dependency

Thx

MP

Comment 2 David Woodhouse 2008-09-14 03:21:04 UTC
∄ 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?