Dechenjm / crack-language

Automatically exported from code.google.com/p/crack-language
Other
0 stars 0 forks source link

invalid application of 'sizeof' to incomplete type 'png_struct' #121

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. compile trunk with libpng 1.5.14
2.
3.

What is the expected output? What do you see instead?
opt/_png.cc: In function 'void crack_ext__png_cinit(crack::ext::Module*)':
opt/_png.cc:40:85: error: invalid application of 'sizeof' to incomplete type 
'png_struct'
opt/_png.cc:44:79: error: invalid application of 'sizeof' to incomplete type 
'png_info'
make: *** [_png.lo] Error 1
make: *** Waiting for unfinished jobs....

What version of the product are you using? On what operating system?
trunk, Gentoo Hardened ~amd64

Please provide any additional information below.
/* The complete definition of png_struct has, as of libpng-1.5.0,
 * been moved into a separate header file that is not accessible to
 * applications.  Read libpng-manual.txt or libpng.3 for more info.
 */

/* The complete definition of png_info has, as of libpng-1.5.0,
 * been moved into a separate header file that is not accessible to                                                              
 * applications.  Read libpng-manual.txt or libpng.3 for more info.                                                              
 */

Original issue reported on code.google.com by wbr...@gmail.com on 25 Feb 2013 at 2:24

GoogleCodeExporter commented 9 years ago
Can you try this again with the latest source in the repo?  I've put in a fix 
to let us deal with it as an opaque structure.

Original comment by mind...@gmail.com on 25 Feb 2013 at 2:57

GoogleCodeExporter commented 9 years ago
opt/_png.cc: In function 'void crack_ext__png_cinit(crack::ext::Module*)':
opt/_png.cc:45:79: error: invalid application of 'sizeof' to incomplete type 
'png_info'

Original comment by wbr...@gmail.com on 25 Feb 2013 at 3:02

GoogleCodeExporter commented 9 years ago
it seems to be fixed

Original comment by wbr...@gmail.com on 25 Feb 2013 at 3:08

GoogleCodeExporter commented 9 years ago

Original comment by mind...@gmail.com on 25 Feb 2013 at 3:10