在Solaris上构建Boost

Building Boost on Solaris

本文关键字:Boost 构建 Solaris      更新时间:2023-10-16

Boost将在Solaris上完全构建吗?

我想知道是否有人在这方面取得了成功(特别是Proto/Spirit),然后我去支付支持合同以将Sun Studio 12.2补丁到最新版本。我得到了一些错误,有些看起来已经在补丁中解决了,但是向Oracle支付支持费用并不便宜,所以我宁愿希望它能在我做之前工作。

现在,我只是想在Solaris上使用cpp-netlib,并使用Boost属性树解码HTTP上获取的一些JSON。它在Mac OS X上运行良好-所以我希望我可以在Solaris上使用相同的代码。

如果查看http://www.boost.org/users/history/version_1_48_0.html,将看到两个编译器列表。"主"编译器是对发行版进行测试的编译器。那里没有基于solaris的编译器。

第二个列表是对主干进行测试的对象(或多或少每天一次)。Sun编译器v5.10在这个列表中。

现在,您可以查看http://www.boost.org/development/tests/trunk/developer/summary.html,并找到该编译器的测试结果。从那里,您可以找到Sun编译器的列,并检查哪些测试失败(以及原因)。

然而,看起来在这个编译器上几乎所有的精神测试都失败了,所以我不抱太大希望。

…后来……但是,由于您使用的是与此不同的编译器,因此您可能希望查看http://www.boost.org/development/running_regression_tests.html,它向您展示了如何使用您的安装运行回归测试。然后您可以看到boost在编译器中的工作效果。

我在Solaris上编译了boost 1.54.0,使用Apache stdcxx 4.2.1 c++库。有一些差异涉及和CLI配方,但它是99%建成:)如果我找到一个合适的地方上传差异,我会更新这个。

Intel Solaris 10 &11

[...]
common.copy /usr/local/lib/libboost_timer.a
common.copy /usr/local/lib/libboost_wave.a
...failed updating 53 targets...
...skipped 37 targets...
...updated 10652 targets...

SPARC 10

[...]
common.copy /usr/local/lib/libboost_timer.a
common.copy /usr/local/lib/libboost_wave.a
...failed updating 49 targets...
...skipped 42 targets...
...updated 10649 targets...

这些软件包可以在我的软件包存档中找到:

http://www.ibiblio.org/pub/packages/solaris/sparc/

boost.1.54.0.SPARC.64bit.Solaris.10.pkg
boost.1.54.0.i86pc.Solaris.10.pkg
boost.1.54.0.i86pc.Solaris.11.pkg