Latest trunk FTBFS on Ubuntu 12.04 (src/helper.cc:82:8: error: 'mt19937' in namespace 'boost::random' does not name a type)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Medium
|
Unassigned |
Bug Description
As seen from the daily-build PPA [1], one of the recent commits broke something, which caused current trunk to be unbuildable on Ubuntu 12.04 and older releases. 12.10 and later seems unaffected. It affects both i386 and amd64 builds and I have verified it locally. The latest known working revision on 12.04 was r6632 [2], btw.
The build simply fails, printing the following error message:
[ 77%] Building CXX object src/CMakeFiles/
/build/
/build/
/build/
/build/
/build/
/build/
make[4]: *** [src/CMakeFiles
make[4]: Leaving directory `/build/
make[3]: *** [src/CMakeFiles
make[3]: Leaving directory `/build/
make[2]: *** [all] Error 2
make[2]: Leaving directory `/build/
make[1]: *** [override_
make[1]: Leaving directory `/build/
make: *** [binary] Error 2
dpkg-buildpackage: error: /usr/bin/fakeroot debian/rules binary gave error exit status 2
(for more details or a complete log, see [3])
This seems to be part of the merge to fix various regressions related to changing options. It also seem to be using boost::random in some way. When I tested this locally, I installed the package libboost-
Perhaps of note is that Ubuntu 12.04 has boost 1.48 available in the repository, while 12.10 has 1.49 available. Did the random library change in any relevant way between these two releases?
[1] https:/
[2] https:/
[3] https:/
[4] https:/
Related branches
- SirVer: Approve
-
Diff: 15 lines (+2/-2)1 file modifiedsrc/helper.cc (+2/-2)
tags: | added: boost |
Changed in widelands: | |
status: | Confirmed → Fix Committed |
It does not work with boost-1.46 (which is default on Ubuntu 12.04), but it works with boost-1.48 (which can be installed in Ubuntu 12.04).