参考LFS-BOOK-6.1.1和youbest手把手……,做到 6.53. Psmisc-21.6,make时出错
- make all-recursive
- make[1]: Entering directory `/sources/psmisc-21.6'
- Making all in doc
- make[2]: Entering directory `/sources/psmisc-21.6/doc'
- make[2]: Nothing to be done for `all'.
- make[2]: Leaving directory `/sources/psmisc-21.6/doc'
- Making all in src
- make[2]: Entering directory `/sources/psmisc-21.6/src'
- make all-am
- make[3]: Entering directory `/sources/psmisc-21.6/src'
- if gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -DLOCALEDIR="/usr/share/locale" -g -O2 -MT pstree.o -MD -MP -MF ".deps/pstree.Tpo" -c -o pstree.o pstree.c; \
- then mv -f ".deps/pstree.Tpo" ".deps/pstree.Po"; else rm -f ".deps/pstree.Tpo"; exit 1; fi
- pstree.c:18:20: curses.h: No such file or directory
- pstree.c:19:18: term.h: No such file or directory
- pstree.c: In function `dump_tree':
- pstree.c:395: warning: implicit declaration of function `tgetstr'
- pstree.c:395: warning: assignment makes pointer from integer without a cast
- pstree.c:396: warning: implicit declaration of function `tputs'
- pstree.c:444: warning: assignment makes pointer from integer without a cast
- pstree.c: In function `main':
- pstree.c:791: warning: implicit declaration of function `setupterm'
- pstree.c:791: error: `OK' undeclared (first use in this function)
- pstree.c:791: error: (Each undeclared identifier is reported only once
- pstree.c:791: error: for each function it appears in.)
- pstree.c:791: warning: implicit declaration of function `tigetstr'
- pstree.c:827: warning: implicit declaration of function `tgetent'
- make[3]: *** [pstree.o] Error 1
- make[3]: Leaving directory `/sources/psmisc-21.6/src'
- make[2]: *** [all] Error 2
- make[2]: Leaving directory `/sources/psmisc-21.6/src'
- make[1]: *** [all-recursive] Error 1
- make[1]: Leaving directory `/sources/psmisc-21.6'
- make: *** [all] Error 2
复制代码
:thank |