LinuxSir.cn,穿越时空的Linuxsir!

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

[已解决]新装gentoo,编译samba和ncurses时都出错 config.sub:missing argument

[复制链接]
发表于 2006-9-26 20:09:30 | 显示全部楼层 |阅读模式
新安装gentoo,gcc4.1.1,在安装gnome时,装samba时出错。
出错信息:
-------------------------------------------------------------------------------
........(以上省略)
checking target system type...config.sub:missing argument
Try 'config.sub --help' for more information
configure:error: /bin/sh ./config.sub failed
!!!Please attach the ........(省略)
!!!/var/tmp/portage/samba-3.0.23a/work/samba-3.0.23a/source/config.log
!!! ERROR: net-fs/samba-3.0.23a  failed.
Call stack:
  ebuild.sh, line 1546: Called dyn_compile
  ebuild.sh, line 937: Called src_compile
  samba-3.0.23a.ebuild, line 95: Called econf '--with-fhs'.........(省略)注:我的use是默认的,cups,pam,readline,python

  ebuild.sh, line540: Called die
!!! econf failed
!!! If you need ...(省略)
----------------------------------------------------------------------------
因为是在安装gnome,所以跳过了samba的安装,接下来两个包编译成功后,到sys-libs/ncurses-5.5-r3也出现了与上面samba一样的错误。
不知道是什么原因,各位教教,谢谢
发表于 2006-9-26 21:23:31 | 显示全部楼层
你帖的太不明确了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-26 21:30:13 | 显示全部楼层
啊,我还应该提供什么?我把出错信息贴全一点
....
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/samba-3.0.23a/work/samba-3.0.23a/source ...
* Running autoconf ...
  [ ok ]
* econf: updating samba-3.0.23a/source/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating samba-3.0.23a/source/config.sub with /usr/share/gnuconfig/config.sub
/usr/bin/confcache --confcache-ignore /var/tmp/ccache:/var/tmp/.distcc --confcache-dir /var/tmp/confcache ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-fhs --sysconfdir=/etc/samba --localstatedir=/var --with-configdir=/etc/samba --with-libdir=/usr/lib/samba --with-swatdir=/usr/share/doc/samba-3.0.23a/swat --with-piddir=/var/run/samba --with-lockdir=/var/cache/samba --with-logfilebase=/var/log/samba --with-privatedir=/var/lib/samba/private --with-libsmbclient --without-spinlocks --enable-socket-wrapper --without-acl-support --without-aio-support --without-automount --enable-cups --without-krb5 --without-ldap --with-pam --with-pam_smbpass --with-python --without-quotas --without-sys-quotas --with-readline --with-smbmount --without-syslog --without-winbind --with-manpages-langs=en --build=i686-pc-linux-gnu
configure: loading cache config.cache
SAMBA VERSION: 3.0.23a
checking for -fPIE... yes
checking for i686-pc-linux-gnu-gcc... (cached) i686-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether i686-pc-linux-gnu-gcc accepts -g... (cached) yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... (cached) none needed
checking whether to use profiling... no
checking for i686-pc-linux-gnu-gcc... (cached) i686-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether i686-pc-linux-gnu-gcc accepts -g... (cached) yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... (cached) none needed
checking how to run the C preprocessor... (cached) i686-pc-linux-gnu-gcc -E
checking for a BSD-compatible install... (cached) /bin/install -c
checking for gawk... (cached) gawk
checking for perl... (cached) /usr/bin/perl
checking for i686-pc-linux-gnu-ar... (cached) i686-pc-linux-gnu-ar
checking if the linker (ld) is GNU ld... yes
checking GNU ld release date...
checking GNU ld release version... 6.1
checking GNU ld release version major... 6
checking GNU ld release version minor... 1
checking for library containing strerror... (cached) none required
checking whether i686-pc-linux-gnu-gcc and cc understand -c and -o together... yes
checking that the C compiler understands -Werror... yes
checking that the C compiler understands volatile... yes
checking uname -s... Linux
checking uname -r... 2.6.18-gentoovvgloo
checking uname -m... i686
checking uname -p... AMD Athlon(tm) XP 2500+
checking build system type... (cached) i686-pc-linux-gnu
checking host system type... (cached) i686-pc-linux-gnu
checking target system type...config.sub:missing argument
Try 'config.sub --help' for more information
configure:error: /bin/sh ./config.sub failed
!!!Please attach the ........(省略)
!!!/var/tmp/portage/samba-3.0.23a/work/samba-3.0.23a/source/config.log
!!! ERROR: net-fs/samba-3.0.23a failed.
Call stack:
  ebuild.sh, line 1546: Called dyn_compile
  ebuild.sh, line 937: Called src_compile
  samba-3.0.23a.ebuild, line 95: Called econf '--with-fhs'.........(省略)注:我的use是默认的,cups,pam,readline,python

  ebuild.sh, line540: Called die
!!! econf failed
!!! If you need ...(省略)


附件我带上config.log和config.sub

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2006-9-26 23:38:27 | 显示全部楼层
试试把/var/tmp/confcache删了,如果你有的话
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-27 01:38:42 | 显示全部楼层
呵呵,版主我要是早看到你的回答就好了
看到你的回答之前,误打误撞我把config.cache这个文件删了就好了
为什么啊?
回复 支持 反对

使用道具 举报

发表于 2006-9-27 09:34:29 | 显示全部楼层
上次的检查结果被cache了,但是这个结果是失败的
以后在检查同样的东西,自然就是失败的
所以confcache还是存在一定风险
回复 支持 反对

使用道具 举报

发表于 2006-10-26 10:48:48 | 显示全部楼层
原来这样呀,呵呵,今天搜索到的,解决了我的困惑。
confcache的确有风险阿。
回复 支持 反对

使用道具 举报

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

本版积分规则

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