[MacPorts] #52619: ufraw @0.22_4: fails to build due to boolean macro

MacPorts noreply at macports.org
Sat Oct 15 23:17:35 CEST 2016


#52619: ufraw @0.22_4: fails to build due to boolean macro
---------------------+--------------------------------
 Reporter:  johnm@…  |      Owner:  macports-tickets@…
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:  2.3.4
 Keywords:           |       Port:  ufraw
---------------------+--------------------------------
 The ufraw port fails to build due to an issue with the definition of the
 TRUE macro.

 I was attempting to install the gimp port when I encountered this. I'm
 running macOS Sierra.

 {{{
 :info:build dcraw.cc:2407:10: error: cannot initialize return object of
 type 'boolean' with an rvalue of type 'int'
 :info:build   return TRUE;
 :info:build          ^~~~
 :info:build /opt/local/include/lcms2.h:254:22: note: expanded from macro
 'TRUE'
 :info:build #       define TRUE  1
 :info:build                      ^
 :info:build dcraw.cc:2423:3: error: no matching function for call to
 'jpeg_read_header'
 :info:build   jpeg_read_header (&cinfo, TRUE);
 :info:build   ^~~~~~~~~~~~~~~~
 :info:build /opt/local/include/jpeglib.h:1039:13: note: candidate function
 not viable: no known conversion from 'int' to 'boolean' for 2nd argument
 :info:build EXTERN(int) jpeg_read_header JPP((j_decompress_ptr cinfo,
 :info:build             ^
 :info:build ufraw_developer.c:390:19: warning: using integer absolute
 value function 'abs' when argument is of floating point type [-Wabsolute-
 value]
 :info:build     for (try = 0; abs(bg - b) > 0.001 || try < 100; try++) {
 :info:build                   ^
 :info:build dcraw.cc:2496:5: error: no matching function for call to
 'jpeg_read_header'
 :info:build     jpeg_read_header (&cinfo, TRUE);
 :info:build     ^~~~~~~~~~~~~~~~
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/52619>
MacPorts <https://www.macports.org/>
Ports system for the Mac operating system



More information about the macports-tickets mailing list