LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 500|回复: 1

编译SASH错误

[复制链接]
发表于 2005-4-29 19:36:50 | 显示全部楼层 |阅读模式
arknest sash # emerge system
Calculating system dependencies ...done!
>>> emerge (1 of 66) app-shells/sash-3.7 to /
>>> md5 files   ;-) sash-3.7.ebuild
>>> md5 files   ;-) files/sash-3.6-fix-includes.patch
>>> md5 files   ;-) files/sash-3.7-builtin.patch
>>> md5 files   ;-) files/digest-sash-3.7
>>> md5 files   ;-) files/sash-3.6-readline.patch
>>> md5 src_uri ;-) sash-3.7.tar.gz
>>> Unpacking source...
>>> Unpacking sash-3.7.tar.gz to /var/tmp/portage/sash-3.7/work
* Applying sash-3.6-fix-includes.patch ...                               [ ok ]
* Applying sash-3.7-builtin.patch ...                                    [ ok ]
* Applying sash-3.6-readline.patch ...                                   [ ok ]
>>> Source unpacked.
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o sash.o sash.c
sash.c: In function `fileman_completion':
sash.c:536: warning: implicit declaration of function `completion_matches'
sash.c:536: warning: assignment makes pointer from integer without a cast
sash.c: In function `command_generator':
sash.c:561: warning: suggest parentheses around assignment used as truth value
sash.c: At top level:
sash.c:1458: warning: 'showPrompt' defined but not used
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o cmds.o cmds.c
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o cmd_dd.o cmd_dd.c
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o cmd_ed.o cmd_ed.c
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o cmd_grep.o cmd_grep.c
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o cmd_ls.o cmd_ls.c
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o cmd_tar.o cmd_tar.c
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o cmd_gzip.o cmd_gzip.c
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o cmd_find.o cmd_find.c
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o cmd_file.o cmd_file.c
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o cmd_chattr.o cmd_chattr.c
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o cmd_ar.o cmd_ar.c
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o utils.o utils.c
i686-pc-linux-gnu-gcc --disable-shared -static -s -Wl,-O3 -Wl,--enable-new-dtags -Wl,--sort-common -s -o sash sash.o cmds.o cmd_dd.o cmd_ed.o cmd_grep.o cmd_ls.o cmd_tar.o cmd_gzip.o cmd_find.o cmd_file.o cmd_chattr.o cmd_ar.o utils.o -lz -lreadline -lncurses
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make: *** [sash] Error 1

!!! ERROR: app-shells/sash-3.7 failed.
!!! Function src_compile, Line 35, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.



怎么改下才能进行?现在去吃饭,回来希望能有答案!
 楼主| 发表于 2005-4-29 23:03:09 | 显示全部楼层
Post by lomat
arknest sash # emerge system
Calculating system dependencies ...done!
>>> emerge (1 of 66) app-shells/sash-3.7 to /
>>> md5 files   ;-) sash-3.7.ebuild
>>> md5 files   ;-) files/sash-3.6-fix-includes.patch
>>> md5 files   ;-) files/sash-3.7-builtin.patch
>>> md5 files   ;-) files/digest-sash-3.7
>>> md5 files   ;-) files/sash-3.6-readline.patch
>>> md5 src_uri ;-) sash-3.7.tar.gz
>>> Unpacking source...
>>> Unpacking sash-3.7.tar.gz to /var/tmp/portage/sash-3.7/work
* Applying sash-3.6-fix-includes.patch ...                               [ ok ]
* Applying sash-3.7-builtin.patch ...                                    [ ok ]
* Applying sash-3.6-readline.patch ...                                   [ ok ]
>>> Source unpacked.
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o sash.o sash.c
sash.c: In function `fileman_completion':
sash.c:536: warning: implicit declaration of function `completion_matches'
sash.c:536: warning: assignment makes pointer from integer without a cast
sash.c: In function `command_generator':
sash.c:561: warning: suggest parentheses around assignment used as truth value
sash.c: At top level:
sash.c:1458: warning: 'showPrompt' defined but not used
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o cmds.o cmds.c
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o cmd_dd.o cmd_dd.c
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o cmd_ed.o cmd_ed.c
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o cmd_grep.o cmd_grep.c
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o cmd_ls.o cmd_ls.c
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o cmd_tar.o cmd_tar.c
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o cmd_gzip.o cmd_gzip.c
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o cmd_find.o cmd_find.c
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o cmd_file.o cmd_file.c
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o cmd_chattr.o cmd_chattr.c
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o cmd_ar.o cmd_ar.c
i686-pc-linux-gnu-gcc -pipe -march=athlon-xp -mfpmath=sse -mmmx  -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops  -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o utils.o utils.c
i686-pc-linux-gnu-gcc --disable-shared -static -s -Wl,-O3 -Wl,--enable-new-dtags -Wl,--sort-common -s -o sash sash.o cmds.o cmd_dd.o cmd_ed.o cmd_grep.o cmd_ls.o cmd_tar.o cmd_gzip.o cmd_find.o cmd_file.o cmd_chattr.o cmd_ar.o utils.o -lz -lreadline -lncurses
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make: *** [sash] Error 1

!!! ERROR: app-shells/sash-3.7 failed.
!!! Function src_compile, Line 35, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.



怎么改下才能进行?现在去吃饭,回来希望能有答案!



把现有的/bin/sash拷贝到了新系统中,然后emerge --inject了一下,现在正在用新优化参数编译,不知结果如何,期待中……
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表