From: "Simon Scheiwiller" <simon@hornweb.ch>
To: <linux-kernel@vger.kernel.org>
Subject: kobject.h makes lilo compile break
Date: Sat, 4 Jan 2003 14:39:31 +0100 [thread overview]
Message-ID: <005f01c2b3f6$b66ba5b0$0400a8c0@gwaihir> (raw)
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
next reply other threads:[~2003-01-04 13:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-04 13:39 Simon Scheiwiller [this message]
2003-01-08 5:32 ` kobject.h makes lilo compile break Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='005f01c2b3f6$b66ba5b0$0400a8c0@gwaihir' \
--to=simon@hornweb.ch \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox