Bitcointalk · *** ALERT *** Upgrade to 0.3.6

中本聪,2010 年 7 月 29 日

SN-1767 已核对来源,附原文与上下文。

阅读语言
中文译文

在 Debian testing 32 位上,我遇到几个编译错误,都类似这样:

script.cpp:114: error: ‘OP_NOP1’ was not declared in this scope

这些错误是在没先 "make clean" 或 "make" 的情况下直接 "make bitcoind" 时出现的。看起来 bitcoind 的构建说明没有先编译头文件,但也不删除 headers.h.gch,于是只要旧的在,就用旧的。

其他遇到这个错误的人,最简单的解决办法是 "make clean" 然后重新构建。

我们其实不需要预编译头。它只是让编译稍微快一点。我想干脆去掉它。即便如此,你还是得记得 "make -f makefile.unix clean" 或者再删一次 headers.h.gch,把残留文件清掉。

该死的 GLIBC_2.11。我明明一直小心没接受任何更新。

ORIGINAL · 英文原文
On Debian testing 32-bit, I get a few build errors, all resembling:
Code:
script.cpp:114: error: ‘OP_NOP1’ was not declared in this scope
I got these when attempting to "make bitcoind" without "make clean" or "make" first. It looks like the bitcoind build instructions don't compile the headers first, but they also don't delete the headers.h.gch, so the old headers are used if present.

If anyone else gets this error, the simplest solution is to "make clean" and retry the build.
We don't really need pre-compiled header.  It only makes it compile slightly faster.  I think I'll just get rid of it.  Even still, you'd still need to remember to "make -f makefile.unix clean" or delete headers.h.gch one more time to get rid of the leftover file.

Damn that GLIBC_2.11.  I thought I'd been careful not to accept any of the updates.
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-1767