[Clfs-support] Problems with util-linux-2.12r

Nicolás Coronel ncoronel at pla.net.py
Sat Apr 12 08:51:18 PDT 2008



Hello everybody, I would like to see if someone has already had a 
mistake in trying to carry out the steps outlined in the following 
paragraph:

Cross-Compiled Linux From Scratch - Version 1.0.0-MIPS
Chapter 7. If You Are Going to Boot

Running

 Make HAVE_KILL yes HAVE_SLN = = = yes HAVE_SHADOW not CPUOPT = "" ARCH 
= "" CPU = ""


After a while throws the following error, and find a lot in google and 
it is not a solution or a hint that I lead to the resolution of my problem.

This is the mistake


_OFFSET_BITS=64 -DSBINDIR=\"/sbin\" -DUSRSBINDIR=\"/usr/sbin\" 
-DLOGDIR=\"/var/log\" -DVARPATH=\"/var\" 
-DLOCALEDIR=\"/usr/share/locale\" -O2  -s  tunelp.c   -o tunelp
make[1]: Leaving directory `/mnt/clfs/sources/util-linux-2.12r/sys-utils'
make[1]: Entering directory `/mnt/clfs/sources/util-linux-2.12r/text-utils'
mips-unknown-linux-gnu-gcc -c -O2 -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 more.c -o more.o
more.c: In function 'my_setupterm':
more.c:188: warning: passing argument 1 of 'setupterm' discards 
qualifiers from pointer target type
more.c: In function 'my_tgoto':
more.c:208: warning: passing argument 1 of 'tparm' discards qualifiers 
from pointer target type
more.c: In function 'get_line':
more.c:814: warning: pointer targets in passing argument 2 of 'mbrtowc' 
differ in signedness
more.c:933: warning: pointer targets in passing argument 2 of 'mbrtowc' 
differ in signedness
more.c: In function 'command':
more.c:1271: warning: pointer targets in passing argument 1 of 'ttyin' 
differ in signedness
more.c: In function 'do_shell':
more.c:1472: warning: pointer targets in passing argument 1 of 'ttyin' 
differ in signedness
more.c: In function 'ttyin':
more.c:1865: warning: pointer targets in passing argument 2 of 'mbrtowc' 
differ in signedness
mips-unknown-linux-gnu-gcc -O2 -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 -s more.o ../lib/xstrncpy.o -o 
more -lncurses
mips-unknown-linux-gnu-gcc -c -O2 -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 col.c -o col.o
mips-unknown-linux-gnu-gcc -s  col.o   -o col
mips-unknown-linux-gnu-gcc -c -O2 -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 colcrt.c -o colcrt.o
mips-unknown-linux-gnu-gcc -s  colcrt.o   -o colcrt
mips-unknown-linux-gnu-gcc -c -O2 -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 colrm.c -o colrm.o
mips-unknown-linux-gnu-gcc -s  colrm.o   -o colrm
mips-unknown-linux-gnu-gcc -c -O2 -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 column.c -o column.o
column.c: In function 'input':
column.c:288: error: 'LINE_MAX' undeclared (first use in this function)
column.c:288: error: (Each undeclared identifier is reported only once
column.c:288: error: for each function it appears in.)
column.c:288: warning: unused variable 'buf'
make[1]: *** [column.o] Error 1
make[1]: Leaving directory `/mnt/clfs/sources/util-linux-2.12r/text-utils'
make: *** [all] Error 1




Thank you

-- 
Nicolás Coronel
Planet SA
Dpto. I+D
ncoronel at pla.net.py
021 615-999
0981 206-315 




More information about the Clfs-support mailing list