Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36382 - [[ headers ]] sys-fs/dosfstools fails with 2.6 linux headers
Summary: [[ headers ]] sys-fs/dosfstools fails with 2.6 linux headers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 31285
Blocks:
  Show dependency tree
 
Reported: 2003-12-23 11:23 UTC by SpanKY
Modified: 2004-01-01 13:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2003-12-23 11:23:24 UTC
There are two parts to this ...

the first is the same as Bug 35784 ... i've included the fix there

the second is that dosfsck/boot.c fails because of linux/msdos_fs.h
root@vapier 3 dosfsck # make
gcc -c  boot.c
In file included from /usr/include/linux/msdos_fs.h:8,
                 from dosfsck.h:16,
                 from boot.c:13:
/usr/include/linux/buffer_head.h:54: error: syntax error before "sector_t"
/usr/include/linux/buffer_head.h:62: error: syntax error before '}' token
<yatta yatta yatta>

anyways, the fix is easy, just ifdef the include in linux/msdos_fs.h:
#ifdef __KERNEL__
#include <linux/buffer_head.h>
#endif
the only code that uses the buffer head stuff is also inside an #ifdef __KERNEL__
so no breakage should happen
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2003-12-24 04:12:51 UTC
Fixed in linux-headers-2.6.0.