|
|

楼主 |
发表于 2008-4-21 14:32:40
|
显示全部楼层
如下:不能生成top.o文件,我想是cpu特性的问题!
root:/sources/procps-3.2.6# 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:165: warning: array subscript has type 'char'
proc/readproc.c:165: warning: array subscript has type 'char'
proc/readproc.c:165: warning: array subscript has type 'char'
proc/readproc.c: In function 'stat2proc':
proc/readproc.c:348: warning: use of assignment suppression and length modifier together in scanf format
proc/readproc.c:348: warning: use of assignment suppression and length modifier together in scanf format
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=\"6\" -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.6.so -Wl,--version-script=proc/library.map -o proc/libproc-3.2.6.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.6.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.6.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.6.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
w.c: In function 'showinfo':
w.c:173: warning: 'ut_pid_found' may be used uninitialized in this function
w.c:172: warning: 'jcpu' may be used uninitialized in this function
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.6.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:28:20: error: curses.h: No such file or directory
top.c:38:18: error: term.h: No such file or directory
top.c:72: error: 'COLOR_RED' undeclared here (not in a function)
top.c:72: error: 'COLOR_YELLOW' undeclared here (not in a function)
top.c:72: error: 'COLOR_CYAN' undeclared here (not in a function)
top.c:72: error: 'COLOR_WHITE' undeclared here (not in a function)
top.c:72: error: 'COLOR_MAGENTA' undeclared here (not in a function)
top.c:72: error: 'COLOR_BLUE' undeclared here (not in a function)
top.c:72: error: 'COLOR_GREEN' undeclared here (not in a function)
top.c:72: warning: missing initializer
top.c:72: warning: (near initialization for 'Rc.win')
top.c: In function 'tg2':
top.c:315: warning: implicit declaration of function 'tgoto'
top.c:315: error: 'cursor_address' undeclared (first use in this function)
top.c:315: error: (Each undeclared identifier is reported only once
top.c:315: error: for each function it appears in.)
top.c:315: warning: pointer/integer type mismatch in conditional expression
top.c: In function 'bye_bye':
top.c:327: warning: implicit declaration of function 'putp'
top.c: In function 'capsmk':
top.c:502: error: 'clr_eol' undeclared (first use in this function)
top.c:503: error: 'clr_eos' undeclared (first use in this function)
top.c:504: error: 'clear_screen' undeclared (first use in this function)
top.c:506: error: 'eat_newline_glitch' undeclared (first use in this function)
top.c:507: error: 'exit_am_mode' undeclared (first use in this function)
top.c:508: error: 'enter_am_mode' undeclared (first use in this function)
top.c:512: error: 'auto_right_margin' undeclared (first use in this function)
top.c:518: error: 'cursor_visible' undeclared (first use in this function)
top.c:519: error: 'cursor_normal' undeclared (first use in this function)
top.c:520: error: 'cursor_home' undeclared (first use in this function)
top.c:521: error: 'exit_attribute_mode' undeclared (first use in this function)
top.c:522: error: 'enter_reverse_mode' undeclared (first use in this function)
top.c:524: error: 'orig_pair' undeclared (first use in this function)
top.c:525: error: 'cursor_address' undeclared (first use in this function)
top.c:531: error: 'enter_bold_mode' undeclared (first use in this function)
top.c:532: error: 'max_colors' undeclared (first use in this function)
top.c:533: warning: implicit declaration of function 'tparm'
top.c:533: error: 'set_a_foreground' undeclared (first use in this function)
top.c:533: warning: passing argument 2 of 'strcpy' makes pointer from integer without a cast
top.c:535: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
top.c:535: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
top.c:537: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
top.c:537: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
top.c:539: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
top.c:539: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
top.c:541: warning: format '%s' expects type 'char *', but argument 5 has type 'int'
top.c:541: warning: format '%s' expects type 'char *', but argument 5 has type 'int'
top.c: In function 'show_special':
top.c:680: warning: assignment discards qualifiers from pointer target type
top.c: In function 'good_uid':
top.c:842: warning: comparison between signed and unsigned
top.c:843: warning: comparison between signed and unsigned
top.c:844: warning: comparison between signed and unsigned
top.c:847: warning: comparison between signed and unsigned
top.c: In function 'prochlp':
top.c:1060: warning: passing argument 5 of 'bsearch' from incompatible pointer type
top.c: In function 'configs_read':
top.c:1714: warning: missing initializer
top.c:1714: warning: (near initialization for 'def_rcf.win')
top.c: In function 'whack_terminal':
top.c:1922: warning: implicit declaration of function 'setupterm'
top.c: In function 'wins_colors':
top.c:2245: error: 'max_colors' undeclared (first use in this function)
top.c: In function 'wins_resize':
top.c:2373: error: 'columns' undeclared (first use in this function)
top.c:2374: error: 'lines' undeclared (first use in this function)
top.c: In function 'summary_show':
top.c:2928: warning: passing argument 5 of 'select' discards qualifiers from pointer target type
top.c: In function 'task_show':
top.c:3148: warning: assignment discards qualifiers from pointer target type
top.c: In function 'window_show':
top.c:3174: warning: assignment discards qualifiers from pointer target type
top.c: In function 'main':
top.c:3348: warning: passing argument 5 of 'select' discards qualifiers from pointer target type
top.c:3367: warning: passing argument 5 of 'select' discards qualifiers from pointer target type
make: *** [top.o] Error 1
root:/sources/procps-3.2.6# |
|