When emerging lilo (lilo-22.5.1) I get this error: boot.c: In function `boot_image': boot.c:76: `PAGE_SIZE' undeclared (first use in this function) boot.c:76: (Each undeclared identifier is reported only once boot.c:76: for each function it appears in.) make: *** [boot.o] Error 1 make: *** Waiting for unfinished jobs.... rm dparam.o pseudo.img pseudo.o temp2.img Here is my setup: bash-2.05b# emerge info Portage 2.0.49-r21 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.4.22-gentoo-r5) ================================================================= System uname: 2.4.22-gentoo-r5 i686 Mobile Intel(R) Celeron(R) CPU 1.70GHz Gentoo Base System version 1.4.3.10 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /usr/lib/rpm/macros /usr/local/apache_proxy /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X apache2 apm arts avi berkdb cdr crypt cups encode esd foomaticdb gdbm gif gpm gtk2 imlib java jpeg kde libg++ libwww mad mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib" Reproducible: Always Steps to Reproduce: 1.emerge lilo 2. 3. Actual Results: bash-2.05b# emerge lilo Calculating dependencies ...done! >>> emerge (1 of 1) sys-boot/lilo-22.5.1 to / >>> md5 src_uri ;-) lilo-22.5.1.tar.gz >>> Unpacking source... >>> Unpacking lilo-22.5.1.tar.gz to /var/tmp/portage/lilo-22.5.1/work >>> Source unpacked. gcc -E `( if [ -r $ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL; fi ) | sed 's/-D/-DLCF_/g'` `[ -r /usr/include/asm/boot.h ] && echo -DHAS_BOOT_H` -DBITMAP second.S -o temp2.s gcc -E -C -traditional -DLILO_ASM -o common.s common.h echo "#define CFLAGS \"" -O1 -Wall -g `( if [ -r $ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL; fi ) | sed 's/-D/-DLCF_/g'` `[ -r /usr/include/asm/boot.h ] && echo -DHAS_BOOT_H` `cat mylilo.h` "\"" >flags.i gcc -E -traditional `( if [ -r $ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL; fi ) | sed 's/-D/-DLCF_/g'` `[ -r /usr/include/asm/boot.h ] && echo -DHAS_BOOT_H` -o loader.s loader.S cp -p dparam.S dparam.s gcc -Wall -s -O -o activate activate.c cat: mylilo.h: No such file or directory cat bootsect.S pseudo.S >_TmP_.S gcc -E -traditional `( if [ -r $ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL; fi ) | sed 's/-D/-DLCF_/g'` `[ -r /usr/include/asm/boot.h ] && echo -DHAS_BOOT_H` \ -DSIZEDISKB=512 -o pseudo.s _TmP_.S rm -f _TmP_.S as86 -0 -a -w -l temp2.lis -o temp2.o temp2.s as86 -0 -a -w -l dparam.lis -o dparam.o dparam.s as86 -0 -a -w -l pseudo.lis -o pseudo.o pseudo.s ld86 -0 -s -o dparam.img dparam.o ld86 -0 -s -o pseudo.img pseudo.o ld86 -0 -s -o temp2.img temp2.o dd if=dparam.img of=dparam.com bs=288 skip=1 dd if=pseudo.img of=pseudo.b bs=32 skip=1 0+1 records in 0+1 records out 32+0 records in 32+0 records out dd if=temp2.img of=temp2.b bs=32 skip=1 288+0 records in 288+0 records out echo -DMAX_SECONDARY_FILESIZE=`wc -c <temp2.b | sed "s/ //g"` >mylilo.h gcc -c -O1 -Wall -g `( if [ -r $ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL; fi ) | sed 's/-D/-DLCF_/g'` `[ -r /usr/include/asm/boot.h ] && echo -DHAS_BOOT_H` `cat mylilo.h` lilo.c gcc -c -O1 -Wall -g `( if [ -r $ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL; fi ) | sed 's/-D/-DLCF_/g'` `[ -r /usr/include/asm/boot.h ] && echo -DHAS_BOOT_H` `cat mylilo.h` raid.c gcc -c -O1 -Wall -g `( if [ -r $ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL; fi ) | sed 's/-D/-DLCF_/g'` `[ -r /usr/include/asm/boot.h ] && echo -DHAS_BOOT_H` `cat mylilo.h` map.c gcc -c -O1 -Wall -g `( if [ -r $ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL; fi ) | sed 's/-D/-DLCF_/g'` `[ -r /usr/include/asm/boot.h ] && echo -DHAS_BOOT_H` `cat mylilo.h` geometry.c gcc -c -O1 -Wall -g `( if [ -r $ROOT/etc/lilo.defines ]; then cat $ROOT/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL; fi ) | sed 's/-D/-DLCF_/g'` `[ -r /usr/include/asm/boot.h ] && echo -DHAS_BOOT_H` `cat mylilo.h` boot.c boot.c: In function `boot_image': boot.c:76: `PAGE_SIZE' undeclared (first use in this function) boot.c:76: (Each undeclared identifier is reported only once boot.c:76: for each function it appears in.) make: *** [boot.o] Error 1 make: *** Waiting for unfinished jobs.... rm dparam.o pseudo.img pseudo.o temp2.img !!! ERROR: sys-boot/lilo-22.5.1 failed. !!! Function src_compile, Line 39, Exitcode 2 !!! (no error message) bash-2.05b# Expected Results: # emerge lilo # Hey presto, lilo is installed
*** Bug 38686 has been marked as a duplicate of this bug. ***
Err, its fixed already in 22.5.8 - mark that stable as it have had enough testing already.