[swift-users] boost-1.56.0 trouble

Kevin Smith kevin at kismith.co.uk
Fri Aug 22 09:41:57 CEST 2014


Thanks - am looking at this.

/K

On Mon, Aug 18, 2014 at 10:15 AM, Thomas Klausner <tk at giga.or.at> wrote:
> Hi!
>
> I've recently updated boost from 1.55.0 to 1.56.0. Since then,
> swift-2.0 doesn't build any longer.
>
> I've tried swift from git to find out if a solution is available, but
> swift from git doesn't build either, with nearly the same problem.
> Linking fails with:
>
> Swiften/libSwiften.a(CombinedAvatarProvider.o): In function `Swift::CombinedAvatarProvider::handleAvatarChanged(Swift::JID const&)':
> swift/Swiften/Avatars/CombinedAvatarProvider.cpp:43: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& boost::operator<< <char, std::char_traits<char>, std::string>(std::basic_ostream<char, std::char_traits<char> >&, boost::optional<std::string> const&)'
> Swiften/libSwiften.a(CombinedAvatarProvider.o): In function `Swift::CombinedAvatarProvider::getCombinedAvatarAndCache(Swift::JID const&) const':
> swift/Swiften/Avatars/CombinedAvatarProvider.cpp:53: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& boost::operator<< <char, std::char_traits<char>, std::string>(std::basic_ostream<char, std::char_traits<char> >&, boost::optional<std::string> const&)'
> Swiften/libSwiften.a(StreamResumeSerializer.o): In function `bool boost::detail::lexical_istream_limited_src<char, std::char_traits<char>, true, 2ul>::shl_input_streamable<boost::optional<unsigned int> const>(boost::optional<unsigned int> const&)':
> .../include/boost/lexical_cast.hpp:1408: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& boost::operator<< <char, std::char_traits<char>, unsigned int>(std::basic_ostream<char, std::char_traits<char> >&, boost::optional<unsigned int> const&)'
>
> I don't know how to solve this. Does anyone have any suggestions?
>
> Additionally, I needed patches for swift-git to fix "cerr is not part
> of std" warnings and to add a header to get a definition for struct
> timeval. These are attached, please commit.
>
> Cheers,
>  Thomas
>
> P.S.: In case it matters, that's on NetBSD-7.99.1/x86_64 using
> gcc-4.8.3.
>
> _______________________________________________
> swift-users mailing list
> swift-users at swift.im
> http://swift.im/lists/mailman/listinfo/swift-users
>


More information about the swift-users mailing list