Opened 12 years ago

Closed 12 years ago

#35173 closed defect (fixed)

gource 0.38 compilation fails with boost 1.50

Reported by: work@… Owned by: phw@…
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: haspatch Cc: ryandesign (Ryan Carsten Schmidt)
Port: gource

Description

When trying to install gource it fails on logmill.cpp:

:info:build 	mv -f $depbase.Tpo $depbase.Po
:info:build src/logmill.cpp: In member function ‘RCommitLog* RLogMill::fetchLog(std::string&)’:
:info:build src/logmill.cpp:179: error: expected type-specifier
:info:build src/logmill.cpp:179: error: expected unqualified-id before ‘::’ token
:info:build src/logmill.cpp:179: error: expected `)' before ‘::’ token
:info:build src/logmill.cpp:179: error: expected `{' before ‘::’ token
:info:build src/logmill.cpp:179: error: ‘::filesystem_error’ has not been declared
:info:build src/logmill.cpp:179: error: expected `;' before ‘)’ token
:info:build make: *** [src/logmill.o] Error 1
:info:build make: *** Waiting for unfinished jobs....
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gource/gource/work/gource-0.38'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gource/gource/work/gource-0.38" && /usr/bin/make -j2 -w all 
:info:build Exit code: 2
:error:build org.macports.build for port gource returned: command execution failed
:debug:build Error code: CHILDSTATUS 16642 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"

When I patch logmill.cpp compilation works:

bash-3.2# diff logmill.cpp.orig logmill.cpp
179c179
<         } catch(boost::filesystem3::filesystem_error& error) {
---
>         } catch(boost::filesystem::filesystem_error& error) {
bash-3.2#

I am no C developer, but I assume this is causing issues because as of Boost 1.46.0 filesystem 3 is default and the latest version of boost in macports is 1.50.0?

boost @1.50.0 (devel)
    Collection of portable C++ source libraries

Change History (4)

comment:1 Changed 12 years ago by mf2k (Frank Schima)

Keywords: gource compilation boost filesystem v3 removed
Owner: changed from macports-tickets@… to phw@…

comment:2 Changed 12 years ago by work@…

Same issue for gource @0.38_2

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Keywords: haspatch added

Here's the upstream bug report, which has the same fix: http://code.google.com/p/gource/issues/detail?id=162

comment:4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed
Summary: Gource 0.38 compilation failsgource 0.38 compilation fails with boost 1.50
Note: See TracTickets for help on using tickets.