原始文献 / 论坛帖 / Re: Is there a way to automate bitcoin payments for a website?
Re: Is there a way to automate bitcoin payments for a website?
Bitcointalk · 2010-05-18 02:58:11 UTC
有点晚了,不过万一别人也遇到同样的问题。编译输出里有 2 个警告(每个 20 行长)和 2 个链接错误。错误是:
Quote:
obj/nogui/init.o(.gnu.linkonce.t._ZNK13wxArrayString4ItemEm+0x13): In function `wxArrayString::Item(unsigned long) const':
/usr/local/include/wx-2.9/wx/buffer.h:42: undefined reference to `wxTheAssertHandler'
obj/nogui/init.o(.gnu.linkonce.t._ZNK13wxArrayString4ItemEm+0x45): In function `wxArrayString::Item(unsigned long) const':
/usr/src/bitcoin/trunk/uint256.h:526: undefined reference to `wxOnAssert(char const*, int, char const*, char const*, wchar_t const*)'
大概是因为切到了 wxWidgets 的 release 构建而不是 debug 构建。它们正在往只保留 debug 构建、砍掉 release 构建的方向走,所以 release 构建里引用了不存在的 assert 东西、坏了它们大概也不在乎。debug 构建没什么可怕的,完全适合拿来发布。
bitcoind 以守护进程运行,可以通过命令行或 JSON-RPC 控制。
感谢 madhatter 和 generica 详细写了在 freebsd 上构建的步骤。
英文原文
A little late, but in case anyone else has the same issue. The compile dump had 2 warnings (that were 20 lines long) and 2 link errors. The errors were:
Quote:
> obj/nogui/init.o(.gnu.linkonce.t._ZNK13wxArrayString4ItemEm+0x13): In function `wxArrayString::Item(unsigned long) const':
> /usr/local/include/wx-2.9/wx/buffer.h:42: undefined reference to `wxTheAssertHandler'
>
> obj/nogui/init.o(.gnu.linkonce.t._ZNK13wxArrayString4ItemEm+0x45): In function `wxArrayString::Item(unsigned long) const':
> /usr/src/bitcoin/trunk/uint256.h:526: undefined reference to `wxOnAssert(char const*, int, char const*, char const*, wchar_t const*)'
>
Those are probably due to switching to the release build of wxWidgets instead of debug. They're moving towards only debug build and ditching the release build, so they probably don't care that their release build is broken by referring to non-existent assert stuff. There's nothing to fear about the debug build. It's fully suitable for releases.
bitcoind runs as a daemon and can either be controlled by command line or JSON-RPC.
Thanks madhatter and generica for detailing the instructions for building on freebsd.
