LFS-5.1.1 Ch.6 - Util-linux-2.12a build problems

Jan Mattila jan.mattila at helsinki.fi
Wed Aug 18 15:40:39 PDT 2004


Hello.


I've beed going by the book LFS-5.1.1 and have had no significant 
problems until Ch. 6 Util-linux-2.12a make gave me this:

# make HAVE_KILL=yes HAVE_SLN=yes
<snip>
make[1]: Entering directory `/src/u/util-linux-2.12a/hwclock'
cc -c -pipe -O2 -mcpu=i486 -fomit-frame-pointer -I../lib -Wall
-Wmissing-prototypes -Wstrict-prototypes -DNCH=1   -D_FILE_OFFSET_BITS=64
-DSBINDIR=\"/sbin\" -DUSRSBINDIR=\"/usr/sbin\" -DLOGDIR=\"/var/log\"
-DVARPATH=\"/var\" -DLOCALEDIR=\"/usr/share/locale\" -O2 hwclock.c -o hwclock.o
cc -pipe -O2 -mcpu=i486 -fomit-frame-pointer -I../lib -Wall 
-Wstrict-prototypes -DNCH=1   -D_FILE_OFFSET_BITS=64 -DSBINDIR=\"/sbin\"
-DUSRSBINDIR=\"/usr/sbin\" -DLOGDIR=\"/var/log\" -DVARPATH=\"/var\"
-DLOCALEDIR=\"/usr/share/locale\" -O2 -c cmos.c -o cmos.o
In file included from /ktools/include/asm/io.h:4,
                 from cmos.c:53:
/ktools/include/linux/config.h:4:28: linux/autoconf.h: No such file or directory
make[1]: *** [cmos.o] Error 1
make[1]: Leaving directory `/src/u/util-linux-2.12a/hwclock'
make: *** [all] Error 1


It's treu there is no autoconf.h in /ktools/include/linux. There
is however one in /usr/include/linux/autoconf.h just like I think 
there's supposed to be, but I can't seem to tell that to Util-linux. 
I've tried changing line 53 in cmos.c from <asm/io.h> 
to </usr/include/asm/io.h> but that only resulted in:

<snip>
In file included from /usr/include/asm/io.h:4,
                 from cmos.c:53:
/ktools/include/linux/config.h:4:28: linux/autoconf.h: No such file or directory
make[1]: *** [cmos.o] Error 1
make[1]: Leaving directory `/src/u/util-linux-2.12a/hwclock'
make: *** [all] Error 1


Also, the configure says that 

<snip>
cannot find any C preprocessor (cpp)
Your rpcgen output does not compile - using pregenerated code
You don't have zlib

Although I have libz.so in both /usr/lib and libz.so.1 in /lib,
by the book.

Possible sources of problems:

I've used /ktools instead of /tools, because I've been building
an HLFS-system on the side until I ran into problems with that.
I've used /ktools consistently, so that shouldn't count as 
deviating from the book unless the /tools is hardcoded into some
of the patches or something like that. I've also used separate
alphabetical directories under src/ for storing the sources, which 
has had me double checking every relative directory move (since 
../ in the book would usually be ../../ for me...), but I'm pretty 
sure I haven't missed anything. At least I think that I should 
have failed some make checks or make tests if I had messed up the 
relative subdirectories. The only checks that I've failed are 
2 math test from Glibc-2.3.3-lfs-5.1 but I've googled that they 
are due to my processor not being good at counting and that they
are nothing to worry about. Other than that all tests and checks
have passed.


My initial build system is based on LFS-3.3, I've only upgraded
my kernel. I think my initial build system shuoldn't matter in
Ch. 6, but here are some specs anyway:

# uname -a
Linux terry 2.4.26 #1 to elo  5 14:17:10 EEST 2004 i586 unknown

# gcc -dumpversion
2.95.3

# gcc -dumpmachine
i586-pc-linux-gnu

# /lib/libc.so.6
GNU C Library stable release version 2.2.5<snip>

# cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 5
model           : 13
model name      : AMD-K6(tm)-III Processor
stepping        : 4
cpu MHz         : 501.155
<snip>


I'll be happy to provide any more detailed information to help 
debug this curious Util-linux-2.12a problem. I'm a little anxious 
about continuing with the build before the problem is solved at
least to some extent.


PaX.
-- 

 Jan Mattila <jan.mattila at helsinki.fi>

 "Finland, Finland, Finland, Finland has it all."
                             - Michael Palin



More information about the lfs-support mailing list