dannyedel / dspdfviewer

Dual-Screen PDF Viewer for latex-beamer
http://dspdfviewer.danny-edel.de
GNU General Public License v2.0
218 stars 27 forks source link

Revert _USE_CXX11_ABI related changes #57

Closed dannyedel closed 9 years ago

dannyedel commented 9 years ago

While trying to build a proper debian package #55 I discovered a Fails-To-Build-From-Source Bug in debian sid, but not any other.

Right now, if I explicitely state that I don't want the cxx11 ABI, the compile goes through cleanly. However, it is possible that the problem is on the boost side since the error message one gets - see https://travis-ci.org/dannyedel/dspdfviewer/builds/73694510 for a complete build log - seems to suggest that boost's header exports a program_options with the new std::__cxx11::basic_string as a template parameter, but gcc's linker can't find it.

As soon as a clean-room (sbuild) build on sid works again, merge this pull request but _remember to revert the .travis.yml_ to the "just use the current ubuntu environment to build quickly" mode for near-instant feedback. As soon as this specific bug is over, there's no reason to use more I/O and cpu time than absolutely needed.

dannyedel commented 9 years ago

The problem is that debian is right now transitioning to GCC5. During the transition stuff will break.

I have uploaded a minimal example, as soon as this compiles work here can continue (and the minimal example can be removed)

Right now it fails with an error message very similar to #56:

/«PKGBUILDDIR»/main.cc:4: undefined reference to `boost::program_options::options_description::options_description(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
dannyedel commented 9 years ago

It builds cleanly again under sid.

The package that made it work again seems to be boost-defaults 1.58.0.1.

Travis has been restored to normal mode, this can be merged.