lkml.org 
[lkml]   [2003]   [Jan]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectkobject.h makes lilo compile break
Date
Hello

When I'm compiling lilo on a machine with kernel 2.5.54, I get the following
error:


gcc -c -O2 -Wall -g `( if [ -r $ROOT/etc/lilo.defines ]; then cat
$ROOT/etc/lilo.defines; else
echo -DBDATA -DBUILTIN -DDSECS=3 -DIGNORECASE -DLBA32 -DLVM -DEVMS -DM386 -D
ONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVARSETUP -DVERS
ION -DUNIFY; fi ) | sed 's/-D/-DLFC_/g'` `[ -r /usr/include/asm/boot.h ] &&
echo -DHAS_BOOT_H` `cat mylilo.h` lilo.c
In file included from /usr/include/linux/kobject.h:10,
from /usr/include/linux/device.h:28,
from /usr/include/linux/genhd.h:15,
from common.h:20,
from lilo.c:25:
/usr/include/linux/list.h:323:2: warning: #warning "don't include kernel
headers in userspace"
In file included from /usr/include/linux/device.h:28,
from /usr/include/linux/genhd.h:15,
from common.h:20,
from lilo.c:25:
/usr/include/linux/kobject.h:20: field `entry` has incomplete type
/usr/include/linux/kobject.h:24: confused by earlier errors, bailing out
make: *** [lilo.o] Error 1
rm temp2.img


As far as I got it, it's the kobject.h which causes the error as it includes
list.h which can't be included in userspace, but in the end the genhd.h
should work so can compile lilo.

Can someone help me how to solve that?

TIA
Cheers, Simon

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.079 / U:0.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site