[MacPorts] #29749: libdevil 1.7.8_2 refers to deprecated and removed function in libpng

MacPorts noreply at macports.org
Sun Jun 12 00:43:57 PDT 2011


#29749: libdevil 1.7.8_2 refers to deprecated and removed function in libpng
-------------------------------+--------------------------------------------
 Reporter:  daftalx@…          |       Owner:  macports-tickets@…                   
     Type:  defect             |      Status:  new                                  
 Priority:  Normal             |   Milestone:                                       
Component:  ports              |     Version:  1.9.2                                
 Keywords:  png                |        Port:  libdevil                             
-------------------------------+--------------------------------------------

Comment(by daftalx@…):

 Replying to [comment:3 ryandesign@…]:
 > libdevil compiles fine for me. If the problem only appears when "running
 code dependent on libdevil", can you provide an example of this that I
 could use as a test case?

 Same here, libdevil compiles fine, which makes little sense to me, since
 il_png.c includes "png.h" in order to call the old
 "png_set_gray_1_2_4_to_8", while "png.h" no longer references this method
 (other than in the comments where they say it's been deprecated and
 replaced by the other one). Could there be another (outdated) png.h
 outside MacPorts on Mac OS ?

 Haven't got an easy sample code right here, but a simple use case would be
 to call the {{{ILboolean readpng_get_image(ILdouble display_exponent)}}}
 function, which calls "png_set_gray_1_2_4_to_8" (line 281 of il_png.c) in
 the specific case that your input PNG file is grayscale and has less than
 8bit precision.

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


More information about the macports-tickets mailing list