找回密码
 注册
查看: 1252|回复: 5

这是什么意思“C compiler cannot creat

[复制链接]
发表于 2003-4-18 16:30:56 | 显示全部楼层 |阅读模式
我用的是lfs-20030219。
编译第一个bash就有问题,./configure是出现“C compiler cannot create executables”,应该如何解决啊??
我是在Mandrake9。1下搞的。gcc好像是3。2。2
发表于 2003-4-18 21:58:20 | 显示全部楼层
can u run it again?
can u check config.log to see what error it is?
what version is u autoconf?
回复

使用道具 举报

 楼主| 发表于 2003-4-23 18:02:08 | 显示全部楼层
那个错误好像是我优化参数错误所致,unset后通过了configure,但是又有下面的错误:
我用的版本
lfs:20021030 PlfsXML:0.99.00->Plfs:1.0
autoconf 2.57
gcc 3.2.2
lfs-packages-4.0.tar

./configure --enable-static-link \
    --prefix=$LFS/stage1 --with-curses &&
make &&
make install

gcc  -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"i686"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"i686-pc-linux-gnu"' -DCONF_VENDOR='"pc"' -DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib -g -O2 -c shell.c
In file included from shell.h:41,
                 from shell.c:48:
externs.h:163:conflicting types for `gethostname`
/usr/include/unistd.h:752:previous declaration of `gethostname`
externs.h:196:conflicting types for `strncasecmp`
/usr/include/string.h:292:previous declaration of `strncasecmp`
make: *** [shell.o] Error 1
回复

使用道具 举报

发表于 2003-4-23 22:02:15 | 显示全部楼层
i do not know, sorry. i did it before with gcc 2.95.c. everything works fine.
回复

使用道具 举报

发表于 2003-4-24 08:09:52 | 显示全部楼层
在mandrake下面的安装会有一些问题。
http://www.linuxsir.com/bbs/showthread.php?s&threadid=16534
可以参考这里,另外就是要把开发包都装上
回复

使用道具 举报

发表于 2003-5-2 15:41:56 | 显示全部楼层
多谢,多谢.
回复

使用道具 举报

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

本版积分规则

GMT+8, 2025-2-11 13:29 , Processed in 0.029242 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

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