Ticket #26449 (closed defect: fixed)
wesnoth @1.4.7_0 configure-error: Unable to compile a Boost test
| Reported by: | misteravery@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.9.1 |
| Keywords: | boost iostreams test | Cc: | ryandesign@… |
| Port: | wesnoth |
Description
10.5.8, Port vers 1.9.1. boost @1.44.0_0 is installed
Trying to build wesnoth. I encounter this error.
:info:configure checking for the Boost iostreams library... configure: error: Cannot compile a test that uses Boost iostreams
:info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_games_wesnoth/work/wesnoth-1.4.7" && ./configure --prefix=/opt/local --with-freetype-prefix=/opt/local --with-libiconv-prefix=/opt/local --disable-desktop-entry --disable-sdltest --disable-python --disable-server --with-boost=/opt/local/include/boost " returned error 1
:error:configure Target org.macports.configure returned: configure failure: shell command failed
:debug:configure Backtrace: configure failure: shell command failed
while executing
"$procedure $targetname"
:info:configure Warning: the following items did not execute (for wesnoth): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
:no
Change History
comment:2 Changed 3 years ago by ryandesign@…
I verified the problem remains with wesnoth 1.8.4. The thing wesnoth is looking for was removed / rewritten in the version of Boost to which the boost port was recently updated. I've filed MacPorts ticket 26460 to get the boost port to include that feature again for now, and filed wesnoth bug report 16693 to ask them to rewrite their code to accommodate these Boost changes.
comment:3 Changed 3 years ago by ryandesign@…
For now you can also downgrade to boost 1.43.0 to bypass this problem, though there appear to be additional problems.
comment:4 Changed 3 years ago by adfernandes@…
(See #26460) The current boost port already defines BOOST_IOSTREAMS_USE_DEPRECATED during compilation, but does not automatically define it in the installed headers. Thus wesnoth should be patched to add -DBOOST_IOSTREAMS_USE_DEPRECATED to the compile flags, or #define it globally.


See also #25240. Assistance updating wesnoth to the current version is desired there.