[MacPorts] #51093: vigra @1.11.0_1: build with libc++ fails, error: use of overloaded operator '!=' is ambiguous (with operand types 'const vigra::HDF5HandleShared' and 'int')

MacPorts noreply at macports.org
Fri Apr 8 05:32:40 PDT 2016


#51093: vigra @1.11.0_1: build with libc++ fails, error: use of overloaded operator
'!=' is ambiguous (with operand types 'const vigra::HDF5HandleShared' and
'int')
-----------------------+-------------------------------
  Reporter:  devans@…  |      Owner:  benjamin.seppke@…
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.4
Resolution:            |   Keywords:
      Port:  vigra     |
-----------------------+-------------------------------

Comment (by benjamin.seppke@…):

 This is most probably to the new version of hdf5 1.8.16_2 -> 1.10.0_0. to
 me, it seems, that the API has changed slightly, so that comparisions with
 hdf5's handles are becoming ambigous without proper casting...

 For test purposes, I replaced the error causing line 1148 in
 /include/vigra/hdf5impex.hxx by adding the cast:
 {{{
 return fileHandle_ != (hid_t)0;
 }}}
 To make sure, that the test vs. another handle id is performed, the NULL-
 handle here...
 This solved the problem for me - so maybe someone could come up with a
 patch file or a sed command for use inside the portfile?!

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


More information about the macports-tickets mailing list