[GRASS-dev] Re: [GRASS GIS] #1347: r.out.png uses now hidden libpng structs

GRASS GIS trac at osgeo.org
Mon Apr 18 10:51:00 EDT 2011


#1347: r.out.png uses now hidden libpng structs
-------------------------+--------------------------------------------------
 Reporter:  kyngchaos    |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  major        |   Milestone:  6.4.2                    
Component:  Raster       |     Version:  6.4.0                    
 Keywords:  png          |    Platform:  Unspecified              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------

Comment(by glynn):

 Replying to [comment:5 hamish]:

 > the trouble in this bug is libpng taking formerly public header files
 and making them private in various stages between versions 1.3 and 1.5.
 (afaiu)

 The only header we use is <png.h>. The issue is that the structure
 definitions have finally been removed from png.h, so applications need to
 use the appropriate functions rather than manipulating structure fields
 directly or allocating the structures as local variables.

 There shouldn't be any need for conditional compilation (#ifdef). The new
 (non-deprecated) API has been around long enough that we can take it for
 granted.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1347#comment:6>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list