LinuxSir.cn,穿越时空的Linuxsir!

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

第一遍Glib中出问题!

[复制链接]
发表于 2005-6-29 21:22:56 | 显示全部楼层 |阅读模式
系统:
Linux version 2.6.9-1.667 (bhcompile@tweety.build.redhat.com) (gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)) #1 Tue Nov 2 14:41:25 EST 2004

前面的一切正常,到了glib中,运行到下列命令出了问题(glib-2.3.4文件夹中):

#cc dummy.c #/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lc
#collect2: ld returned 1 exit status

#readelf -l a.out | grep ': /tools'
#readelf: Error: 'a.out': No such file

怎么回事啊?完全按照lfs6.0来的
发表于 2005-6-30 09:03:29 | 显示全部楼层
你前面的安装好像有问题。重新安装前面的按照参考手册
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-30 15:14:01 | 显示全部楼层
谢谢,我先试试
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-7-3 13:42:13 | 显示全部楼层
还是不行。有几个问题:
Linux-Libc-Headers -2.6.8.1包只需要
cp -R include/asm-i386 /tools/include/asm
cp -R include/linux /tools/include
这两个命令就行了吗?


SPECFILE=`gcc --print-file specs` &&
sed 's@ /lib/ld-linux.so.2@ /tools/lib/ld-linux.so.2@g' \
    $SPECFILE > tempspecfile &&
mv -f tempspecfile $SPECFILE &&
unset SPECFILE

这是干什么的?我的这句命令运行后没有反应,可是运行后也找不到在/tools/lib中有ld-linux.so.2的文件
回复 支持 反对

使用道具 举报

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

本版积分规则

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