LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: lofeng410

请教几个小问题

[复制链接]
 楼主| 发表于 2008-10-25 17:25:11 | 显示全部楼层
Post by ti8er;1899184
echo $PATH

我看看你的PATH。
输出为:
/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-25 17:27:03 | 显示全部楼层
Post by ti8er;1899183
attempt to open /lib/libc.so.6 succeeded

信息太多了,你找找这句看看。
这个是有的
[HTML]
attempt to open /lib/libc.so.6 succeeded
/lib/libc.so.6
[/HTML]
回复 支持 反对

使用道具 举报

发表于 2008-10-25 17:27:06 | 显示全部楼层
那应该没问题。你找到刚才那句看看?
回复 支持 反对

使用道具 举报

发表于 2008-10-25 17:27:47 | 显示全部楼层
Post by lofeng410;1899186
这个是有的
[HTML]
attempt to open /lib/libc.so.6 succeeded
/lib/libc.so.6
[/HTML]


那就没问题!这个是最重点的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-25 17:29:09 | 显示全部楼层
Post by ti8er;1899187
那应该没问题。你找到刚才那句看看?
我觉得也没有问题,因为最后都在正确的位置找到了库文件
从PATH 、ld的搜索路径来看,是不应该去那些地方寻找库的,所以就不明白为什么会那样。呵呵~~
回复 支持 反对

使用道具 举报

发表于 2008-10-25 17:33:22 | 显示全部楼层
Post by lofeng410;1899189
我觉得也没有问题,因为最后都在正确的位置找到了库文件
从PATH 、ld的搜索路径来看,是不应该去那些地方寻找库的,所以就不明白为什么会那样。呵呵~~


我重点关注这个glibc,

因为这是第6章的第一步。是第一个去掉“重定向”安装到“默认”位置的库,所以它的安装位置非常关键。

而其他的程序,比如ld和gcc,都还没有去掉内部的“定向”,都还是位于tools文件夹下,所以你仔细看看输出:

有关用到glibc库的,将全部会在/lib下;
而用到gcc和ld库及程序的,将全部会在/tools下。所以你刚才怀疑的地方都没有问题,如果不在/tools下了,才有问题了!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-25 23:36:34 | 显示全部楼层
6.45 Man-DB-2.4.4出错,信息如下:

[HTML]make -C src
make[1]: Entering directory `/sources/man-db-2.4.4/src'
flex -8 -B -Cem -t lexgrog.l > lexgrog.c
make[1]: Leaving directory `/sources/man-db-2.4.4/src'
make[1]: Entering directory `/sources/man-db-2.4.4/src'
gcc -g -O2 -Wall -W -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -DHAVE_CONFIG_H  -DCONFIG_FILE=\"/etc/man_db.conf\" -DLOCALEDIR=\"/usr/share/locale\" -DWHATIS=\"/usr/bin/whatis\" -DAPROPOS=\"/usr/bin/apropos\" -DSOELIM=\"/usr/bin/zsoelim\" -DMANDB=\"/usr/bin/mandb\" -I../include -I.. -I. -I../intl   -c -o man.o man.c
In file included from man.c:125:
../include/manconfig.h:457:1: warning: "WEB_BROWSER" redefined
../include/manconfig.h:117:1: warning: this is the location of the previous definition
../include/manconfig.h:458:1: warning: "COL" redefined
../include/manconfig.h:153:1: warning: this is the location of the previous definition
../include/manconfig.h:459:1: warning: "VGRIND" redefined
../include/manconfig.h:157:1: warning: this is the location of the previous definition
../include/manconfig.h:460:1: warning: "GRAP" redefined
../include/manconfig.h:165:1: warning: this is the location of the previous definition
man.c: In function 'make_roff_command':
man.c:1744: error: 'TROFF' undeclared (first use in this function)
man.c:1744: error: (Each undeclared identifier is reported only once
man.c:1744: error: for each function it appears in.)
man.c:1747: error: 'NROFF' undeclared (first use in this function)
man.c:1776: error: 'gxditview' undeclared (first use in this function)
man.c: In function 'format_display':
man.c:2269: warning: unused parameter 'man_file'
make[1]: *** [man.o] Error 1
make[1]: Leaving directory `/sources/man-db-2.4.4/src'
make: *** [src] Error 2[/HTML]

前面一路正确,这里就突然卡住了。那些工具链调整什么的确定是正确的。而这里重新编译了好几次,都是同样的错误。
回复 支持 反对

使用道具 举报

发表于 2008-10-26 11:27:37 | 显示全部楼层
是在make的时候出错的。
我看了下,这个包要做几个sed的修改,同时还打了一个补丁,你确定都对了吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-26 11:43:30 | 显示全部楼层
都做了 是通过vim复制到文件中,然后sousrce执行的 patch也做了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-26 11:45:24 | 显示全部楼层
我看了下manconfig.h,里面已经有#define WEB_BROWSER等语句,都来添加的这借个define,引起了如下的警告:
[HTML]../include/manconfig.h:457:1: warning: "WEB_BROWSER" redefined
../include/manconfig.h:117:1: warning: this is the location of the previous definition
../include/manconfig.h:458:1: warning: "COL" redefined
../include/manconfig.h:153:1: warning: this is the location of the previous definition
../include/manconfig.h:459:1: warning: "VGRIND" redefined
../include/manconfig.h:157:1: warning: this is the location of the previous definition
../include/manconfig.h:460:1: warning: "GRAP" redefined
../include/manconfig.h:165:1: warning: this is the location of the previous definition[/HTML]
回复 支持 反对

使用道具 举报

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

本版积分规则

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