Error compiling lilo

Gerard Beekmans gerard at linuxfromscratch.org
Thu Oct 11 14:53:45 PDT 2001


On Thu, Oct 11, 2001 at 09:59:56PM +0100, Adam Mercer wrote:
> Hi
> 
> I've been having problems compiling lilo-22.0.1 on lfs-3.0, using 
> linux-2.4.10-ac12.  It quits with the error
> 
> cc -c -O2 -Wall -g `( if [ -r $ROOT/etc/lilo.defines ]; then cat 
> $ROOT/etc/lilo.defines; else echo -DBDATA -DIGNORECASE -DLBA32 -DM386 
> -DONE_SHOT -DREISERFS -DREWRITE_TABLE -DVARSETUP -DVERSION -DSOLO_CHAIN; 
> fi ) | sed 's/-D/-DLCF_/g'` `[ -r /usr/include/asm/boot.h ] && echo 
> -DHAS_BOOT_H` `cat mylilo.h` partition.c
> partition.c: In function `part_verify':
> partition.c:66: `EXTENDED_PARTITION' undeclared (first use in this function)
> partition.c:66: (Each undeclared identifier is reported only once
> partition.c:66: for each function it appears in.)
> make: *** [partition.o] Error 1
> rm temp2.img

partition.c inludes the common.h file
common.h includes the /usr/include/linux/genhd.h file

genhd defined LINUX_EXTENDED_PARTITION and DOS_EXTENDED_PARTITION

"EXTENDED_PARTITION" is only defined is DOS_EXTENDED_PARTITION and
LINUX_EXTENDED_PARTITION aren't defined, which they should.

so let's start by you checking your /usr/include/linux/genhd.h file:

Do you have these lines in it:
/* These three have identical behaviour; use the second one if DOS fdisk
 * gets
   confused about extended/logical partitions starting past cylinder 1023.
*/
#define DOS_EXTENDED_PARTITION 5
#define LINUX_EXTENDED_PARTITION 0x85
#define WIN98_EXTENDED_PARTITION 0x0f



-- 
Gerard Beekmans
www.linuxfromscratch.org

-*- If Linux doesn't have the solution, you have the wrong problem -*-
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list