LFS 6.2 -> procps-3.2.6 compile prob

Kevin Walker indigoskywalker at gmail.com
Sun Aug 13 23:23:20 PDT 2006


Hi list, I am trying to compile procps-3.2.6 via the LFS book 6.2. I
am at chapter 6.19, when I issue the make command.....

make....

cc -D_GNU_SOURCE -I proc -I/usr/include/ncurses -MM -MG proc/alloc.c
proc/devname.c proc/escape.c proc/ksym.c proc/pwcache.c
proc/readproc.c proc/sig.c proc/slab.c proc/sysinfo.c proc/version.c
proc/whattime.c > proc/.depend
cc -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common
-ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls
-Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -O2 -s         -c -o uptime.o
uptime.c
cc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common
-ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls
-Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -O2 -s         -DSHARED=1
-fpic proc/alloc.c -o proc/alloc.o
cc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common
-ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls
-Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -O2 -s         -DSHARED=1
-fpic proc/devname.c -o proc/devname.o
cc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common
-ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls
-Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -O2 -s         -DSHARED=1
-fpic proc/escape.c -o proc/escape.o
cc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common
-ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls
-Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -O2 -s         -DSHARED=1
-fpic proc/ksym.c -o proc/ksym.o
cc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common
-ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls
-Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -O2 -s         -DSHARED=1
-fpic proc/pwcache.c -o proc/pwcache.o
cc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common
-ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls
-Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -O2 -s         -DSHARED=1
-fpic proc/readproc.c -o proc/readproc.o
proc/readproc.c: In function 'status2proc':
proc/readproc.c:176: warning: array subscript has type 'char'
proc/readproc.c:176: warning: array subscript has type 'char'
proc/readproc.c:176: warning: array subscript has type 'char'
proc/readproc.c: In function 'stat2proc':
proc/readproc.c:391: warning: use of assignment suppression and length
modifier together in scanf format
proc/readproc.c:391: warning: use of assignment suppression and length
modifier together in scanf format
proc/readproc.c: At top level:
proc/readproc.c:41: warning: 'unhex' defined but not used
cc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common
-ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls
-Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -O2 -s         -DSHARED=1
-fpic proc/sig.c -o proc/sig.o
cc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common
-ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls
-Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -O2 -s         -DSHARED=1
-fpic proc/slab.c -o proc/slab.o
proc/slab.c:99:1: warning: multi-line comment
proc/slab.c:104:1: warning: multi-line comment
proc/slab.c:111:1: warning: multi-line comment
proc/slab.c:116:1: warning: multi-line comment
cc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common
-ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls
-Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -O2 -s         -DSHARED=1
-fpic proc/sysinfo.c -o proc/sysinfo.o
cc -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common
-ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls
-Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -O2 -s         -DSHARED=1
-fpic -DVERSION=\"3\" -DSUBVERSION=\"2\" -DMINORVERSION=\"7\" -c -o
proc/version.o proc/version.c
cc -c -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common
-ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls
-Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -O2 -s         -DSHARED=1
-fpic proc/whattime.c -o proc/whattime.o
cc -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align
-Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings
-Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -O2 -s
    -Wl,-warn-common  -shared -Wl,-soname,libproc-3.2.7.so
-Wl,--version-script=proc/library.map -o proc/libproc-3.2.7.so
proc/alloc.o proc/devname.o proc/escape.o proc/ksym.o proc/pwcache.o
proc/readproc.o proc/sig.o proc/slab.o proc/sysinfo.o proc/version.o
proc/whattime.o -lc
cc -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align
-Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings
-Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -O2 -s
    uptime.o proc/libproc-3.2.7.so -Wl,-warn-common  -o uptime
cc -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common
-ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls
-Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -O2 -s         -c -o tload.o
tload.c
tload.c:33: warning: redundant redeclaration of 'optind'
/usr/include/getopt.h:73: warning: previous declaration of 'optind' was here
tload.c:34: warning: redundant redeclaration of 'optarg'
/usr/include/getopt.h:59: warning: previous declaration of 'optarg' was here
cc -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align
-Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings
-Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -O2 -s
    tload.o proc/libproc-3.2.7.so -Wl,-warn-common  -o tload
cc -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common
-ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls
-Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -O2 -s         -c -o free.o
free.c
cc -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align
-Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings
-Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -O2 -s
    free.o proc/libproc-3.2.7.so -Wl,-warn-common  -o free
cc -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common
-ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls
-Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -O2 -s          -c w.c
w.c: In function 'getproc':
w.c:161: warning: comparison between signed and unsigned
w.c:161: warning: comparison between signed and unsigned
cc -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align
-Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings
-Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -O2 -s
    w.o proc/libproc-3.2.7.so -Wl,-warn-common  -o w
cc -D_GNU_SOURCE -I proc -I/usr/include/ncurses -fno-common
-ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls
-Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -O2 -s         -c -o top.o
top.c
top.c: In function 'show_special':
top.c:682: warning: assignment discards qualifiers from pointer target type
top.c: In function 'good_uid':
top.c:845: warning: comparison between signed and unsigned
top.c:846: warning: comparison between signed and unsigned
top.c:847: warning: comparison between signed and unsigned
top.c:850: warning: comparison between signed and unsigned
top.c: In function 'prochlp':
top.c:1066: warning: passing argument 5 of 'bsearch' from incompatible
pointer type
top.c: In function 'whack_terminal':
top.c:1928: warning: passing argument 1 of 'setupterm' discards
qualifiers from pointer target type
top.c: In function 'summary_show':
top.c:2950: warning: passing argument 5 of 'select' discards
qualifiers from pointer target type
top.c: In function 'task_show':
top.c:3170: warning: assignment discards qualifiers from pointer target type
top.c: In function 'window_show':
top.c:3196: warning: assignment discards qualifiers from pointer target type
top.c: In function 'main':
top.c:3370: warning: passing argument 5 of 'select' discards
qualifiers from pointer target type
top.c:3389: warning: passing argument 5 of 'select' discards
qualifiers from pointer target type
cc -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align
-Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings
-Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -O2 -s
    top.o proc/libproc-3.2.7.so -Wl,-warn-common  -o top -lncurses
/usr/bin/ld: cannot open linker script file
/usr/lib/gcc/i686-pc-linux-gnu/4.0.3/../../../libncursesw.so: Too many
open files
collect2: ld returned 1 exit status
make: *** [top] Error 1

make bombs out with the error above... Can anyone help?

thanks

kev



More information about the lfs-support mailing list