Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 410705

Summary: sys-apps/net-tools should depend on virtual/os-headers
Product: Gentoo/Alt Reporter: Palmer Dabbelt <palmer>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Palmer Dabbelt 2012-04-03 19:45:32 UTC
I was installing a fresh Gentoo prefix today on my Red Hat 5 machine and I noticed that net-tools failed to build.  The compilation error mentioned a file in /usr/include/linux (the RH version of the include files) so on a hunch I installed linux-headers and the problem went away.  I'm assuming that the RH kernel headers are very old and are missing something net-tools wants.  I think an easy fix would be to make net-tools depend on virtual/os-headers (I believe this will pull in linux-headers).

Reproducible: Always

Steps to Reproduce:
1.  Follow the prefix install guide on a Red Hat 5 host
2.  Reach the "emerge -u system" step

Actual Results:  
sys-apps/net-tools fails to build with

In file included from /usr/include/netinet/if_fddi.h:26:0,
                 from fddi.c:30:
/usr/include/linux/if_fddi.h:88:2: error: expected specifier-qualifier-list before ‘__be16’


Expected Results:  
net-tools builds successfully

If I run

emerge --oneshot linux-headers

before running

emerge --oneshot net-tools

net-tools will build successfully.  If I run

emerge -C linux-headers

before running

emerge --oneshot net-tools

net-tools will fail to build.
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-04-03 19:53:18 UTC
Thanks for the report. As discussed with the base-system team, a dep there doesn't make sense. Instead, we are updating the bootstraping instructions.

*** This bug has been marked as a duplicate of bug 410245 ***