[swift-users] boost-1.56.0 trouble

Thomas Klausner tk at giga.or.at
Fri Aug 22 23:45:57 CEST 2014


Hi Kevin!

Thanks for looking at this. I saw you fixed the cerr problems already.

In the meantime I've checked miniupnpc upstream to see if my problem
in that part of the code was already fixed -- and it was. Perhaps it's
time to sync from upstream. Anyway, the attached patch is the upstream
solution to my "struct timeval" problem.

Cheers,
 Thomas

On Fri, Aug 22, 2014 at 08:41:57AM +0100, Kevin Smith wrote:
> 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
> >
-------------- next part --------------
$NetBSD$

Include missing header for struct timeval.

--- 3rdParty/LibMiniUPnPc/src/miniupnpc/connecthostport.c.orig	2014-08-18 06:33:47.000000000 +0000
+++ 3rdParty/LibMiniUPnPc/src/miniupnpc/connecthostport.c
@@ -33,6 +33,7 @@
 #ifndef USE_GETHOSTBYNAME
 #include <sys/types.h>
 #include <sys/socket.h>
+#include <sys/select.h>
 #endif /* #ifndef USE_GETHOSTBYNAME */
 #endif /* #else WIN32 */
 


More information about the swift-users mailing list