Bug 96513 - Compilation failure with gcc 6.1 and boost 1.60
Summary: Compilation failure with gcc 6.1 and boost 1.60
Alias: None
Product: SyncEvolution
Classification: Unclassified
Component: SyncEvolution (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: Patrick Ohly
QA Contact:
Depends on:
Reported: 2016-06-13 19:56 UTC by justus-dev
Modified: 2018-01-03 09:22 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:

compiler diagnostics (172.64 KB, text/x-log)
2016-06-13 19:56 UTC, justus-dev

Description justus-dev 2016-06-13 19:56:09 UTC
Created attachment 124513 [details]
compiler diagnostics

Trying to compile under Arch, I encounter one nontrivial compilation problem. a failure to resolve a boost template:

src/syncevo/Cmdline.cpp: In member function ‘void SyncEvo::Cmdline::readLUIDs(SyncEvo::SyncSource*, std::__cxx11::list<std::__cxx11::basic_string<char> >&)’:
src/syncevo/Cmdline.cpp:1734:85: error: no matching function for call to ‘bind(<unresolved overloaded function type>, const boost::reference_wrapper<std::__cxx11::list<std::__cxx11::basic_string<char> > >, const boost::arg<1>&)’
 essLUIDs(source, boost::bind(&list<string>::push_back, boost::ref(luids), _1));

The full error log is attached.

Let's work this out - I need it for my daily work :-)
Comment 1 Patrick Ohly 2016-06-13 20:06:16 UTC
Try downgrading to an older version of C++, for example with CXXFLAGS=-std=gnu++98

That's not a solution for the problem (I'd like to make SyncEvolution compatible with more recent C++), so we can keep this bug open.
Comment 2 justus-dev 2016-06-14 07:45:17 UTC
This now results in

src/syncevo/.libs/libsyncevolution.so: undefined reference to `ical_tzid_prefix'

Looks like https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=824426#17

Of course, Arch only has libical2.
Comment 3 justus-dev 2016-06-18 15:04:47 UTC
The same hack [1] that works around the Debian FTBFS bug also works for me under Arch. Compiles and works for me. I may upload packages to the AUR someday.

[1] http://pkgs.fedoraproject.org/cgit/rpms/syncevolution.git/commit/syncevolution-1.5.1-libical2.patch?id=a53ce39a06ba73e210fd229690392bea8e800d20
Comment 4 Patrick Ohly 2016-09-09 10:53:17 UTC
The next release will build with GCC6 as C++11 and also with libical v2.
Comment 5 Patrick Ohly 2018-01-03 09:22:17 UTC
Fixed already a while ago in 1.5.2.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.