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

Bug 58185

Summary: /usr/include/linux/sem.h causes compile fail.
Product: Gentoo Linux Reporter: Ronald Hummelink <ronald>
Component: [OLD] Core systemAssignee: Tim Yamin (RETIRED) <plasmaroo>
Status: VERIFIED FIXED    
Severity: normal    
Priority: High    
Version: 2004.1   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ronald Hummelink 2004-07-24 07:36:10 UTC
This file is part of linux26-headers 

error during compile of dc-gui:

In file included from callbacks.c:33:
/usr/include/linux/sem.h:48: error: syntax error before '*' token
/usr/include/linux/sem.h:49: error: syntax error before '*' token
/usr/include/linux/sem.h:50: error: syntax error before '*' token
/usr/include/linux/sem.h:51: error: syntax error before '*' token
/usr/include/linux/sem.h:52: error: syntax error before '}' token

I replaced the file with a corrected sem.h file from Mariusz Mazur <mmazur /at/ kernel.pl> his linux-libc header package.

May I express my discontent of gentoo reinventing the wheel by trying to sanitise/clean/fix the linux header crap by themselfes, instead of using the proven to be not so troublesome headers from Mariusz. I knew this sort of error would crop up the moment i saw the 'news' about it :(

Also note, linux26-headers install is not clean. it overwrites the linux-headers package files all over (no big suprise) (leaving linux-headers installed, what now if linux-headers gets a version bumb :P)

qpkg -f /usr/include/linux/sem.h
sys-kernel/linux-headers *
sys-kernel/linux26-headers *
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2004-07-27 03:50:06 UTC
Add in <linux/compiler.h> to line 3 of that file and it'll work; I'll add this to the patch shortly.

> Also note, linux26-headers install is not clean. it overwrites the linux-headers 
> package files all over (no big suprise) (leaving linux-headers installed, what 
> now if linux-headers gets a version bumb :P)

linux-headers-2.6.99 is designed for this purpose; it unmerges your existing headers leaving a blank tree; then RDEPENDing on linux26-headers.
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2004-07-27 08:11:04 UTC
Fixed - emerge sync, re-merge linux26-headers and it should compile without any issues - if you still have some then please REOPEN this bug. Thanks!
Comment 3 Ronald Hummelink 2004-07-27 18:06:12 UTC
Works for me now :)


> linux-headers-2.6.99 is designed for this purpose; it unmerges your existing headers leaving a blank tree; then RDEPENDing on linux26-headers.

Its currently marked only "arm" so on my system i have the dual install still.