[MacPorts] #41688: hugin-app fails to compile

MacPorts noreply at macports.org
Wed Dec 4 17:44:58 PST 2013


#41688: hugin-app fails to compile
------------------------+--------------------------------
  Reporter:  david@…    |      Owner:  macports-tickets@…
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.2.1
Resolution:             |   Keywords:  mavericks
      Port:  hugin-app  |
------------------------+--------------------------------
Changes (by ryandesign@…):

 * keywords:   => mavericks
 * cc: ryandesign@… (added)


Old description:

> 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

New description:

 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
 }}}

--

Comment:

 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.

-- 
Ticket URL: <https://trac.macports.org/ticket/41688#comment:1>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list