Opened 10 years ago

Closed 10 years ago

#26624 closed defect (fixed)

scantailor 0.9.91 with boost 1.44.0: invalid initialization of reference of type 'int&' from expression of type 'const int'

Reported by: mdbecque@… Owned by: raphael-st (Raphael Straub)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc:
Port: scantailor

Description

Installing scantailor on a Dual 2 GHz PowerPC G5, running Leopard 10.5.8. I have 3.1.4 version of Xcode installed.

Maybe I should have started the install with the universal build but I haven't had any problems before.

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_scantailor/work/scantailor-0.9.9.1/ProjectFilesDialog.cpp:703:   instantiated from here
:info:build /opt/local/include/boost/lambda/detail/function_adaptors.hpp:264: error: invalid initialization of reference of type 'int&' from expression of type 'const int'
:info:build /opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_scantailor/work/scantailor-0.9.9.1/CMakeFiles 
:info:build [ 91%] Building CXX object CMakeFiles/scantailor.dir/LoadFileTask.cpp.o
:info:build /usr/bin/g++-4.0   -D_BIND_TO_CURRENT_VCLIBS_VERSION=1 -DBOOST_TEST_DYN_LINK -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION -Wall -Wno-unused -ffast-math -DNDEBUG -O2 -fvisibility=hidden  -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -I/opt/local/include -I/opt/local/include/X11 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_scantailor/work/scantailor-0.9.9.1/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_scantailor/work/scantailor-0.9.9.1/foundation -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_scantailor/work/scantailor-0.9.9.1/interaction -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_scantailor/work/scantailor-0.9.9.1/zones -I/opt/local/libexec/qt4-mac/include/phonon -I/opt/local/libexec/qt4-mac/include/QtXmlPatterns -I/opt/local/libexec/qt4-mac/include/QtXml -I/opt/local/libexec/qt4-mac/include/QtWebKit -I/opt/local/libexec/qt4-mac/include/QtUiTools -I/opt/local/libexec/qt4-mac/include/QtTest -I/opt/local/libexec/qt4-mac/include/QtSvg -I/opt/local/libexec/qt4-mac/include/QtSql -I/opt/local/libexec/qt4-mac/include/QtScriptTools -I/opt/local/libexec/qt4-mac/include/QtScript -I/opt/local/libexec/qt4-mac/include/QtOpenGL -I/opt/local/libexec/qt4-mac/include/QtNetwork -I/opt/local/libexec/qt4-mac/include/QtMultimedia -I/opt/local/libexec/qt4-mac/include/QtHelp -I/opt/local/libexec/qt4-mac/include/QtDesigner -I/opt/local/libexec/qt4-mac/include/QtDBus -I/opt/local/libexec/qt4-mac/include/QtAssistant -I/opt/local/libexec/qt4-mac/include/Qt3Support -I/opt/local/libexec/qt4-mac/include/QtGui -I/opt/local/libexec/qt4-mac/include/QtCore -I/opt/local/libexec/qt4-mac/mkspecs/default -I/opt/local/libexec/qt4-mac/include -F/opt/local/libexec/qt4-mac/lib -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_scantailor/work/scantailor-0.9.9.1   -o CMakeFiles/scantailor.dir/LoadFileTask.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_scantailor/work/scantailor-0.9.9.1/LoadFileTask.cpp
:info:build make[2]: *** [CMakeFiles/scantailor.dir/ProjectFilesDialog.cpp.o] Error 1
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build make[1]: *** [CMakeFiles/scantailor.dir/all] Error 2
:info:build make: *** [all] Error 2
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_scantailor/work/scantailor-0.9.9.1" && /usr/bin/make -j2 all " returned error 2

Change History (2)

comment:1 Changed 10 years ago by ryandesign (Ryan Schmidt)

Cc: raphael@… openmaintainer@… removed
Keywords: G5 leopard removed
Owner: changed from macports-tickets@… to raphael@…
Summary: ScanTailor @ 0.9.9.1 +:info:build make[2]: *** [CMakeFiles/scantailor.dir/ProjectFilesDialog.cpp.o] Error 1scantailor 0.9.91 with boost 1.44.0: invalid initialization of reference of type 'int&' from expression of type 'const int'

There's no reason why universal would help here.

I get the same error on Snow Leopard.

Probably an incompatibility with the latest boost update.

Google search results for this error message.

comment:2 in reply to:  1 Changed 10 years ago by raphael-st (Raphael Straub)

Resolution: fixed
Status: newclosed

Replying to ryandesign@…:

Probably an incompatibility with the latest boost update.

Yes, this was the problem. I applied an upstream patch to fix the problem in r71896.

Note: See TracTickets for help on using tickets.