Opened 11 years ago

Last modified 10 years ago

#41688 closed defect

hugin-app fails to compile — at Version 1

Reported by: davehun (David Hunninsett) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: ryandesign@…
Port: hugin-app

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hugin-app fails to build on a clean mavericks install

port -v
MacPorts 2.2.1

snip from log

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_hugin-app/hugin-app/work/hugin-2013.0.0/src/foreign/zthread/src/ThreadQueue.cxx:146:7: warning: add explicit braces to avoid dangling else [-Wdangling-else]
:info:build       else
:info:build       ^
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_hugin-app/hugin-app/work/hugin-2013.0.0/src/foreign/zthread/src/ThreadOps.cxx:52:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_hugin-app/hugin-app/work/hugin-2013.0.0/src/foreign/zthread/src/posix/ThreadOps.cxx:106:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
:info:build   if(result = (pthread_getschedparam(impl->_tid, &policy, &param) == 0)) {
:info:build      ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_hugin-app/hugin-app/work/hugin-2013.0.0/src/foreign/zthread/src/posix/ThreadOps.cxx:106:13: note: place parentheses around the assignment to silence this warning
:info:build   if(result = (pthread_getschedparam(impl->_tid, &policy, &param) == 0)) {
:info:build             ^
:info:build      (                                                                 )
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_hugin-app/hugin-app/work/hugin-2013.0.0/src/foreign/zthread/src/posix/ThreadOps.cxx:106:13: note: use '==' to turn this assignment into an equality comparison
:info:build   if(result = (pthread_getschedparam(impl->_tid, &policy, &param) == 0)) {
:info:build             ^
:info:build             ==
:info:build 1 warning generated.
:info:build 1 warning generated.
:info:build Linking CXX static library libZThread.a

Change History (2)

Changed 11 years ago by davehun (David Hunninsett)

Attachment: main.log added

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

Cc: ryandesign@… added
Description: modified (diff)
Keywords: mavericks added

I recently spent some time resolving the issues building hugin-app. It builds fine for me on Mavericks.

The portion of the log you quoted above does not show any error; it only shows warnings and notes. The actual error is:

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_hugin-app/hugin-app/work/hugin-2013.0.0/src/foreign/vigra/vigra_impex/imageinfo.cxx:275:18: error: out-of-line definition of 'ImageExportInfo' does not match any declaration in 'vigra::ImageExportInfo'
:info:build ImageExportInfo::ImageExportInfo( const char * filename )
:info:build                  ^~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_hugin-app/hugin-app/work/hugin-2013.0.0/src/foreign/vigra/vigra_impex/imageinfo.cxx:443:18: error: out-of-line definition of 'ImageImportInfo' does not match any declaration in 'vigra::ImageImportInfo'
:info:build ImageImportInfo::ImageImportInfo( const char * filename )
:info:build                  ^~~~~~~~~~~~~~~
:info:build 2 errors generated.

I've seen some "out-of-line definition" errors in other tickets but I'm not seeing them with this port. Please indicate your version of Xcode and clang; maybe they're different from mine.

Note: See TracTickets for help on using tickets.