[pkg-boost-devel] Bug#810128: Bug#810128: libboost-all-dev: Linking problems with latest 1.58 release

Dimitri John Ledkov xnox at debian.org
Thu Jan 7 12:02:34 UTC 2016


Hi,

On 6 January 2016 at 18:52, <r.haeder at web.de> wrote:

> Package: libboost-all-dev
> Version: 1.58.0.1
> Severity: important
>
> Dear Maintainer,
>
> linking programs against latest version (1.58.0.1) fails with similar
> messages:
> ---------------------------------------------
> /bin/sh ../share/genbuild.sh obj/build.h
> g++-4.8 -pthread -Wall -Wextra -Wno-sign-compare -Wno-invalid-offsetof
> -Wno-
>

g++-4.8 in debian is acient compared with boost 1.58 and the two use
different c++ ABI.
g++-4.8 defaults to 98 abi, which was used by boost in debian up to 1.55.
g++-5 and better use c++ 11 abi, and boost 1.58 and better use that too.
You cannot mix & match c++ abis.
Please use a matching compiler & boost libraries... this is not a bug, or
rather a won't fix one.
Why are you using such an ancient compiler in 2016? 4.8 was first released
almost three years ago...

Regards,

Dimitri.



> unused-parameter -Wformat -Wformat-security -g -DBOOST_SPIRIT_THREADSAFE
> -DUSE_IPV6 -I/home/.../git/peerunity/src -I/home/.../git/peerunity/src/obj
> -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all
> -Wstack-protector
> -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -rdynamic -o peerunityd
> obj/version.o obj/checkpoints.o obj/netbase.o obj/addrman.o obj/crypter.o
> obj/key.o obj/db.o obj/init.o obj/irc.o obj/keystore.o obj/main.o obj/net.o
> obj/protocol.o obj/kernelrecord.o obj/bitcoinrpc.o obj/rpcdump.o
> obj/script.o
> obj/util.o obj/wallet.o obj/walletdb.o obj/noui.o obj/kernel.o
>  -Wl,-Bdynamic
> -l boost_program_options -l boost_system -l boost_filesystem -l
> boost_thread -l
> db_cxx -l ssl -l crypto -l rt -Wl,-Bdynamic -l z -l dl -l pthread
> obj/util.o: In function
>
> `boost::program_options::detail::basic_config_file_iterator<char>::getline(std::string&)':
> /usr/include/boost/program_options/detail/config_file.hpp:161: undefined
> reference to `boost::program_options::to_internal(std::string const&)'
> obj/util.o: In function
>
> `boost::program_options::detail::basic_config_file_iterator<char>::basic_config_file_iterator(std::istream&,
> std::set<std::string, std::less<std::string>, std::allocator<std::string> >
> const&, bool)':
> /usr/include/boost/program_options/detail/config_file.hpp:145: undefined
> reference to
>
> `boost::program_options::detail::common_config_file_iterator::common_config_file_iterator(std::set<std::string,
> std::less<std::string>, std::allocator<std::string> > const&, bool)'
> collect2: error: ld returned 1 exit status
> Makefile:135: recipe for target 'peerunityd' failed
> make: *** [peerunityd] Error 1
> ---------------------------------------------
>
> It seems that boost was build which "clang" or so which seems to cause the
> problem:
>
> https://github.com/Peerunity/Peerunity/issues/178
>
> Someone there suggest that an ABI change causes this and rebuilding boost
> with
> gcc 5.3 fixed the problem.
>
> Can you please investigate?
>
> Best regards,
> Roland Haeder
>
>
>
> -- System Information:
> Debian Release: stretch/sid
>   APT prefers testing
>   APT policy: (990, 'testing'), (500, 'oldoldstable')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
>
> Kernel: Linux 3.18.11 (SMP w/4 CPU cores)
> Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
>
> Versions of packages libboost-all-dev depends on:
> ii  libboost-atomic-dev           1.58.0.1
> ii  libboost-chrono-dev           1.58.0.1
> ii  libboost-context-dev          1.58.0.1
> ii  libboost-coroutine-dev        1.58.0.1
> ii  libboost-date-time-dev        1.58.0.1
> ii  libboost-dev                  1.58.0.1
> ii  libboost-exception-dev        1.58.0.1
> ii  libboost-filesystem-dev       1.58.0.1
> ii  libboost-graph-dev            1.58.0.1
> ii  libboost-graph-parallel-dev   1.58.0.1
> ii  libboost-iostreams-dev        1.58.0.1
> ii  libboost-locale-dev           1.58.0.1
> ii  libboost-log-dev              1.58.0.1
> ii  libboost-math-dev             1.58.0.1
> ii  libboost-mpi-dev              1.58.0.1
> ii  libboost-mpi-python-dev       1.58.0.1
> ii  libboost-program-options-dev  1.58.0.1
> ii  libboost-python-dev           1.58.0.1
> ii  libboost-random-dev           1.58.0.1
> ii  libboost-regex-dev            1.58.0.1
> ii  libboost-serialization-dev    1.58.0.1
> ii  libboost-signals-dev          1.58.0.1
> ii  libboost-system-dev           1.58.0.1
> ii  libboost-test-dev             1.58.0.1
> ii  libboost-thread-dev           1.58.0.1
> ii  libboost-timer-dev            1.58.0.1
> ii  libboost-tools-dev            1.58.0.1
> ii  libboost-wave-dev             1.58.0.1
>
> libboost-all-dev recommends no packages.
>
> libboost-all-dev suggests no packages.
>
> -- no debconf information
>
> _______________________________________________
> pkg-boost-devel mailing list
> pkg-boost-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-boost-devel
>



-- 
Regards,

Dimitri.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-boost-devel/attachments/20160107/5387d2a4/attachment.html>


More information about the pkg-boost-devel mailing list