0

伙计们,这个话题几乎要疯了。

我有一个要安装的大软件,它的要求之一是 boost 库。我使用英特尔工具集构建它,但是当我尝试制作软件时,它总是给我这个错误:

./libsrnd/.libs/libsrnd.so: undefined reference to `boost::serialization::singleton_module::is_locked()'
/home/igor/bie/Galphat/.libs/libGalphat.so: undefined reference to `boost::system::system_category()'
/home/igor/bie/Galphat/.libs/libGalphat.so: undefined reference to `boost::system::generic_category()'
make[3]: *** [bie_server_cli] Error 1
make[3]: *** Waiting for unfinished jobs....
../libsrnd/.libs/libsrnd.so: undefined reference to `boost::serialization::singleton_module::is_locked()'
/home/igor/bie/Galphat/.libs/libGalphat.so: undefined reference to `boost::system::system_category()'
/home/igor/bie/Galphat/.libs/libGalphat.so: undefined reference to `boost::system::generic_category()'
make[3]: *** [bie_server] Error 1
cli.o: In function `__sti__$E':
cli.cc:(.text+0xa3d2): undefined reference to `boost::system::generic_category()'
cli.cc:(.text+0xa3de): undefined reference to `boost::system::generic_category()'
cli.cc:(.text+0xa3ea): undefined reference to `boost::system::system_category()'
../libVector/.libs/libvector.so: undefined reference to `boost::serialization::singleton_module::is_locked()'

我的 boost 库是使用以下命令构建的:

./bootstrap.sh
./b2 toolset=intel address-model=64 cxxflags="-std=c++11 fPIC" --layout=versioned link=static variant=debug,release

我正在构建软件:

./configure --prefix=/usr/local/galphat --with-boost-libdir=/home/igor/boost_1_69_0/stage/lib

在 boost 测试中似乎还不错:

checking for boostlib >= 1.56.0... yes
checking whether the Boost::Filesystem library is available... yes
checking for exit in -lboost_filesystem-il-mt-x64-1_69... yes
configure: WARNING: BOOST_CPPFLAGS -I/usr/include
checking whether the Boost::Serialization library is available... yes
checking for exit in -lboost_serialization-il-mt-d-x64-1_69... yes
checking whether the Boost::Regex library is available... yes
checking for exit in -lboost_regex-il-mt-d-x64-1_69... yes
checking whether the Boost::Program_Options library is available... yes
checking for exit in -lboost_program_options-il-mt-d-x64-1_69... yes
checking whether the Boost::System library is available... yes
checking for exit in -lboost_system-il-mt-x64-1_69... yes

操作系统是 CentOS Linux release 7.4.1708 (Core)

有人可以指出进一步尝试的方向吗?

4

1 回答 1

0

由于没有人提供任何反馈,我正在进一步尝试测试。软件与较新的 boost 版本的兼容性似乎存在问题。我通过 1.63 - 1.69 构建所有版本,只有 1.61 有效,而所有其他版本几乎相同。

于 2019-04-16T13:17:30.100 回答