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

GRASS GIS trac at osgeo.org
Wed Apr 13 22:46:21 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  |  
-------------------------+--------------------------------------------------
 Just my luck - I upgrade to libpng 1.5 ''after'' the GRASS 6.4.1 release.

 libpng 1.5 does not include the png_info struct (and others) in the png.h
 header, it's now in a private pnginfo.h.  r.out.png needs this.  I didn't
 see any option in libpng compilation to install these new headers.

 Compilation fails with

 {{{
 r.out.png.c: In function ‘main’:
 r.out.png.c:264: error: dereferencing pointer to incomplete type
 r.out.png.c:265: error: dereferencing pointer to incomplete type
 r.out.png.c:266: error: dereferencing pointer to incomplete type
 r.out.png.c:306: error: dereferencing pointer to incomplete type
 r.out.png.c:308: error: dereferencing pointer to incomplete type
 }}}

 Note also that png.h does not include zlib.h now (as the #include png.h in
 pngfunc.h currently says).  I didn't get an error about this in r.out.png
 (yet), but I have had an error in other projects.

 The png driver didn't have any errors.

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



More information about the grass-dev mailing list