LinuxSir.cn,穿越时空的Linuxsir!

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

Make TCL-8.4.4出错,

[复制链接]
发表于 2004-3-6 17:42:19 | 显示全部楼层 |阅读模式
前面的操作都成功了,就是在编译TCL的时候出现了问题,
命令:make
出错提示:
../compat/strstr.c:In function 'strstr'
../compat/strstr.c:error:'NULL' undeclared(first use in this function)
../compat/strstr.c:errorEach undeclared identifier is reported only once
../compat/strstr.c:error:for each function it appears in.
make :***[strstr.o] Error 1

我是在RH9下面进行编译的,
LFS5.0稳定版
发表于 2004-3-6 19:05:31 | 显示全部楼层
http://archives.linuxfromscratch ... 03-June/017823.html
NULL is a constant, normally defined in GCC includes, normal includes,
and even in TCL's own header files.

Did the specs file sed work? The command

fgrep 'linker /stage1/lib/' /stage1/lib/gcc-lib/*/*/specs

should produce some output - one line, actually.

But if you got no output, you forgot or had a typo in the
'"Locking in" the glibc' step. Don't worry, you only
need to edit /stage1/lib/gcc-lib/*/*/specs
specifically the line with '-dynamic-linker' in it, and make sure
the stuff between the braces '{}' is something like
   {!dynamic-linker:-dynamic-linker /stage1/lib/ld-linux.so.2}
You might have, say, /lib/ld.so.1, after the linker, just add
/stage1 before it and retry. Only touch the portion after the
space upto and including the number.
发表于 2004-3-6 19:06:52 | 显示全部楼层
后面贴子里,出错的那人发现:
I copied and pasted the locking in glibc step from my web browser into
konsole and pressed enter it produced no output. Which I guess means I have
a problem.

I used kate to check the -dynamic-linker line in specs file is was
"/stage1/stage1/stage1/lib/ld.so.1", I changed that to
"/stage1/lib/ld.so.1" and ran make, it completed sucessfully.
 楼主| 发表于 2004-3-8 12:52:35 | 显示全部楼层
谢谢,我昨天自己也找到了
确实是/stage1/lib/gcc-lib/*/*/specs
文件里面一些设置的问题,在前面的步骤中sed的时候写错了
导致了这个问题的出现。
现在已经解决了。。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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