[MacPorts] #59932: exiv2 @0.27.1: error: no matching function for call to 'binaryToString' (was: exiv2 fails to build while building libkdcraw)

MacPorts noreply at macports.org
Thu Jan 9 05:31:03 UTC 2020


#59932: exiv2 @0.27.1: error: no matching function for call to 'binaryToString'
------------------------------+--------------------
  Reporter:  TheLastLovemark  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.6.2
Resolution:                   |   Keywords:
      Port:  exiv2            |
------------------------------+--------------------

Comment (by ryandesign):

 The log says:

 {{{
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_exiv2/exiv2/work/exiv2-0.27.1/src/pngimage.cpp:348:42:
 error: no matching function for call to 'binaryToString'
 :info:build                             std::cerr <<
 Exiv2::Internal::binaryToString(parsedBuf.pData_,
 parsedBuf.size_>50?50:parsedBuf.size_,0) << std::endl;
 :info:build
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_exiv2/exiv2/work/exiv2-0.27.1/src/image_int.hpp:125:36:
 note: candidate function template not viable: requires single argument
 'sl', but 3 arguments were provided
 :info:build     inline binaryToStringHelper<T> binaryToString(const
 Slice<T> sl) throw()
 :info:build                                    ^
 :info:build 1 error generated.
 }}}

 I'm not sure why that would happen.

 I see that you are trying to build with the +universal variant, which is
 not the default but which should work; it did work for me on my 10.13
 machine. I see you're also using the non-default +debug variant.

 Maybe you have another incompatible version of exiv2 or some other
 incompatible software installed somewhere. Does the problem remain if you
 `sudo port clean exiv2` and try again using trace mode: `sudo port -t
 install --unrequested exiv2 +debug +universal`?

 Of course, if you don't actually need the +debug or +universal variants,
 don't use them. In that case, you should receive a precompiled binary from
 our servers and would not need to compile it at all.

-- 
Ticket URL: <https://trac.macports.org/ticket/59932#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list