回复:Linux 构建

中本聪SN-10082

heapchk() 只是一个没在用的 MSVCRT 调试功能。在 Linux 上可以让它什么也不做。OpenSSL 在 Linux 上会自动使用 /dev/urandom 提供随机种子,所以 RandAddSeedPerfmon 也可以什么都不做。

heapchk() is just a MSVCRT debugging thing that's not being used. It can be a no-op on Linux. OpenSSL automatically uses /dev/urandom to seed on Linux, so RandAddSeedPerfmon can also be a no-op.

在我们充分完成离线测试之前,别让它连接网络。如果你有两台电脑,先断开互联网,用“bitcoin -connect=<ip>”让它们互连,一台 windows,一台 linux。-connect 允许连接 192.168.x.x 这样的不可路由地址。如果它发出某种我们还没想到要检查的畸形垃圾数据,或者以其他方式干扰网络,我们可不想因此损害网络的可靠性声誉。

Don't let it connect to the network before we've tested it thoroughly off-net. If you have two computers, unplug the internet and use "bitcoin -connect=<ip>" to connect to each other, one windows and one linux. -connect will allow you to connect to non-routable addresses like 192.168.x.x. We don't want to reflect badly on the reliability of the network if it throws off some malformed crud we hadn't thought to check for yet, or discovers something else anti-social to do on the network.

等你有能编译、可供测试的版本时,我有时间做些测试。我可以把它加入目前正在针对已有改动运行的压力测试。

I have time that I can do some testing when you've got something buildable to test. I can include it in the stress test I'm currently running on the changes so far.

引用 Martti Malmi 的文字Martti Malmi来源 ↗

我在 util.h 中加了一个 #ifdef,用 Linux 的 gettimeofday 替换 QueryPerformanceCounter。更新到 wxWidgets 2.9 后,一些 Unicode/ANSI 错误没有改代码就解决了。目前我在 Linux 上遇到的唯一编译错误,来自 util.h 中的 heapchk()。

I made an #ifdef to replace QueryPerformanceCounter with Linux's gettimeofday in util.h. Some Unicode/ANSI errors were resolved without code changes when I updated to wxWidgets 2.9. The only compile error I'm getting in Linux at the moment is from heapchk() in util.h.

引用中本聪此前的文字中本聪来源 ↗

我修复了遇到的一些不可移植的内容: QueryPerformanceCounter printf 格式字符串中的 %I64d Sleep CheckDiskSpace

I fixed some non-portable stuff I came across: QueryPerformanceCounter %I64d in printf format strings Sleep CheckDiskSpace

如果你知道还有其他应该由我修复的不可移植内容,请告诉我。

If there's any other unportable stuff you know of I should fix, let me know.

我想把 debug.log 和 db.log 移到数据文件所在的目录(%appdata%\Bitcoin),而不再放到碰巧作为当前目录的位置。

I think I'll move debug.log and db.log into the same directory as the data files (%appdata%\Bitcoin), rather than whatever the current directory happens to be.

译文校对、修订与纠错

当前版本尚未建立逐条校对状态记录。来源核验、历史审校与当前译文校对是不同事项。

查看历史审校与代表修订 →

译文内容版本:c4e53be85f71。用于比对文本,不代表校对等级或更新时间。

准备纠错说明

请填写对应原文、现译文、建议译法和理由。复制后通过你联系本站作者的渠道提交;此处不会自动发送。

来源
英文原标题

Re: Linux build

Martti Malmi 通信 · 收件人公开存档 ↗ 下载英文正文 COPA v. Wright Trial Exhibits ↗ 原始通信编号 #51 · 阅读完整往来 ↗ 记录编号 SN-10082

阅读字号

选择适合你的字号,之后阅读会继续使用。