IM 6.5.1-8 fails to make with errors in coders/png.c

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

IM 6.5.1-8 fails to make with errors in coders/png.c

Post by fmw42 »

IM 6.5.1-8 Q16 Mac OSX Tiger

Errors in make:

coders/png.c: In function 'WriteOnePNGImage':
coders/png.c:6569: error: 'struct _MngInfo' has no member named 'color_type'
coders/png.c:6570: error: 'struct _MngInfo' has no member named 'color_type'
coders/png.c:6233: warning: unused variable 'rowbytes'
coders/png.c:6232: warning: unused variable 'quality'
coders/png.c:6213: warning: unused variable 'quantum_info'
coders/png.c:6210: warning: unused variable 'status'
coders/png.c:6195: warning: unused variable 'pass'
coders/png.c:6194: warning: unused variable 'num_passes'
coders/png.c:6189: warning: unused variable 'profile'
coders/png.c:6186: warning: unused variable 'value'
coders/png.c:6185: warning: unused variable 'property'
coders/png.c:6184: warning: unused variable 'name'
coders/png.c:6181: warning: unused variable 's'
coders/png.c: At top level:
coders/png.c:7019: error: parse error before 'if'
coders/png.c:7032: error: parse error before numeric constant
coders/png.c:7032: warning: type defaults to 'int' in declaration of 'png_set_compression_buffer_size'
coders/png.c:7032: error: conflicting types for 'png_set_compression_buffer_size'
/usr/local/include/png.h:1482: error: previous declaration of 'png_set_compression_buffer_size' was here
coders/png.c:7032: warning: data definition has no type or storage class
coders/png.c:7037: error: parse error before numeric constant
coders/png.c:7037: warning: type defaults to 'int' in declaration of 'png_set_compression_mem_level'
coders/png.c:7037: error: conflicting types for 'png_set_compression_mem_level'
/usr/local/include/png.h:1890: error: previous declaration of 'png_set_compression_mem_level' was here
coders/png.c:7037: warning: data definition has no type or storage class
coders/png.c:7038: warning: type defaults to 'int' in declaration of 'quality'
coders/png.c:7038: error: 'image' undeclared here (not in a function)
coders/png.c:7039: warning: data definition has no type or storage class
coders/png.c:7040: error: parse error before 'if'
coders/png.c:7045: warning: type defaults to 'int' in declaration of 'level'
coders/png.c:7045: error: initializer element is not constant
coders/png.c:7045: warning: data definition has no type or storage class
coders/png.c:7046: error: parse error before 'if'
coders/png.c:7049: warning: type defaults to 'int' in declaration of 'png_set_compression_level'
coders/png.c:7049: warning: parameter names (without types) in function declaration
coders/png.c:7049: error: conflicting types for 'png_set_compression_level'
/usr/local/include/png.h:1886: error: previous declaration of 'png_set_compression_level' was here
coders/png.c:7049: warning: data definition has no type or storage class
coders/png.c:7050: error: parse error before '}' token
coders/png.c:7056: error: parse error before numeric constant
coders/png.c:7056: warning: type defaults to 'int' in declaration of 'png_set_compression_strategy'
coders/png.c:7056: error: conflicting types for 'png_set_compression_strategy'
/usr/local/include/png.h:1893: error: previous declaration of 'png_set_compression_strategy' was here
coders/png.c:7056: warning: data definition has no type or storage class
coders/png.c:7101: error: parse error before numeric constant
coders/png.c:7101: warning: type defaults to 'int' in declaration of 'png_set_filter'
coders/png.c:7101: error: conflicting types for 'png_set_filter'
/usr/local/include/png.h:1808: error: previous declaration of 'png_set_filter' was here
coders/png.c:7101: warning: data definition has no type or storage class
coders/png.c:7104: warning: type defaults to 'int' in declaration of 'ResetImageProfileIterator'
coders/png.c:7104: warning: parameter names (without types) in function declaration
coders/png.c:7104: error: conflicting types for 'ResetImageProfileIterator'
./magick/profile.h:70: error: previous declaration of 'ResetImageProfileIterator' was here
coders/png.c:7104: warning: data definition has no type or storage class
coders/png.c:7105: error: parse error before 'for'
coders/png.c:7125: warning: type defaults to 'int' in declaration of 'name'
coders/png.c:7125: warning: initialization makes integer from pointer without a cast
coders/png.c:7125: error: initializer element is not constant
coders/png.c:7125: warning: data definition has no type or storage class
coders/png.c:7126: error: parse error before '}' token
coders/png.c:7140: error: parse error before numeric constant
coders/png.c:7140: warning: type defaults to 'int' in declaration of 'png_set_gAMA'
coders/png.c:7140: error: conflicting types for 'png_set_gAMA'
/usr/local/include/png.h:2252: error: previous declaration of 'png_set_gAMA' was here
coders/png.c:7140: warning: data definition has no type or storage class
coders/png.c:7154: error: parse error before '->' token
coders/png.c:7154: warning: type defaults to 'int' in declaration of 'png_set_gAMA'
coders/png.c:7154: error: conflicting types for 'png_set_gAMA'
/usr/local/include/png.h:2252: error: previous declaration of 'png_set_gAMA' was here
coders/png.c:7154: warning: data definition has no type or storage class
coders/png.c:7169: warning: type defaults to 'int' in declaration of 'wp'
coders/png.c:7169: warning: data definition has no type or storage class
coders/png.c:7170: warning: type defaults to 'int' in declaration of 'rp'
coders/png.c:7170: warning: data definition has no type or storage class
coders/png.c:7171: warning: type defaults to 'int' in declaration of 'gp'
coders/png.c:7171: warning: data definition has no type or storage class
coders/png.c:7172: warning: type defaults to 'int' in declaration of 'bp'
coders/png.c:7172: warning: data definition has no type or storage class
coders/png.c:7174: error: parse error before 'if'
coders/png.c:7177: error: parse error before '.' token
coders/png.c:7178: warning: type defaults to 'int' in declaration of 'png_set_cHRM'
coders/png.c:7178: error: conflicting types for 'png_set_cHRM'
/usr/local/include/png.h:2228: error: previous declaration of 'png_set_cHRM' was here
coders/png.c:7178: warning: data definition has no type or storage class
coders/png.c:7190: warning: type defaults to 'int' in declaration of 'png_write_info_before_PLTE'
coders/png.c:7190: warning: parameter names (without types) in function declaration
coders/png.c:7190: error: conflicting types for 'png_write_info_before_PLTE'
/usr/local/include/png.h:1531: error: previous declaration of 'png_write_info_before_PLTE' was here
coders/png.c:7190: warning: data definition has no type or storage class
coders/png.c:7192: error: parse error before 'void'
coders/png.c:7193: warning: type defaults to 'int' in declaration of 'png_write_info'
coders/png.c:7193: warning: parameter names (without types) in function declaration
coders/png.c:7193: error: conflicting types for 'png_write_info'
/usr/local/include/png.h:1533: error: previous declaration of 'png_write_info' was here
coders/png.c:7193: warning: data definition has no type or storage class
coders/png.c:7195: error: parse error before 'void'
coders/png.c:7203: warning: type defaults to 'int' in declaration of 'PNGType'
coders/png.c:7203: warning: parameter names (without types) in function declaration
coders/png.c:7203: error: conflicting types for 'PNGType'
coders/png.c:1025: error: previous definition of 'PNGType' was here
coders/png.c:7203: warning: data definition has no type or storage class
coders/png.c:7204: error: parse error before '(' token
coders/png.c:7204: warning: type defaults to 'int' in declaration of 'logging'
coders/png.c:7204: warning: type defaults to 'int' in declaration of 'mng_vpAg'
coders/png.c:7204: error: conflicting types for 'mng_vpAg'
coders/png.c:206: error: previous definition of 'mng_vpAg' was here
coders/png.c:7204: error: parse error before numeric constant
coders/png.c:7205: error: parse error before '+' token
coders/png.c:7206: error: parse error before '+' token
coders/png.c:7207: warning: type defaults to 'int' in declaration of 'chunk'
coders/png.c:7207: error: invalid initializer
coders/png.c:7207: warning: data definition has no type or storage class
coders/png.c:7208: error: parse error before 'void'
coders/png.c:7219: warning: type defaults to 'int' in declaration of 'png_set_packing'
coders/png.c:7219: warning: parameter names (without types) in function declaration
coders/png.c:7219: error: conflicting types for 'png_set_packing'
/usr/local/include/png.h:1635: error: previous declaration of 'png_set_packing' was here
coders/png.c:7219: warning: data definition has no type or storage class
coders/png.c:7223: warning: type defaults to 'int' in declaration of 'rowbytes'
coders/png.c:7223: warning: data definition has no type or storage class
coders/png.c:7224: error: parse error before 'if'
coders/png.c:7250: warning: type defaults to 'int' in declaration of 'png_pixels'
coders/png.c:7251: error: invalid type argument of 'unary *'
coders/png.c:7251: warning: initialization makes integer from pointer without a cast
coders/png.c:7251: error: initializer element is not constant
coders/png.c:7251: warning: data definition has no type or storage class
coders/png.c:7252: error: parse error before 'if'
coders/png.c:7257: warning: type defaults to 'int' in declaration of 'quantum_info'
coders/png.c:7257: error: 'image_info' undeclared here (not in a function)
coders/png.c:7257: warning: initialization makes integer from pointer without a cast
coders/png.c:7257: error: initializer element is not constant
coders/png.c:7257: warning: data definition has no type or storage class
coders/png.c:7258: error: parse error before 'if'
coders/png.c:7260: error: parse error before '->' token
coders/png.c:7262: warning: type defaults to 'int' in declaration of 'num_passes'
coders/png.c:7262: error: 'ping' undeclared here (not in a function)
coders/png.c:7262: error: initializer element is not constant
coders/png.c:7262: warning: data definition has no type or storage class
coders/png.c:7263: error: parse error before 'if'
coders/png.c:7292: warning: type defaults to 'int' in declaration of 'png_write_row'
coders/png.c:7292: warning: parameter names (without types) in function declaration
coders/png.c:7292: error: conflicting types for 'png_write_row'
/usr/local/include/png.h:1737: error: previous declaration of 'png_write_row' was here
coders/png.c:7292: warning: data definition has no type or storage class
coders/png.c:7293: error: parse error before '}' token
coders/png.c:7333: warning: type defaults to 'int' in declaration of 'png_write_row'
coders/png.c:7333: warning: parameter names (without types) in function declaration
coders/png.c:7333: error: conflicting types for 'png_write_row'
/usr/local/include/png.h:1737: error: previous declaration of 'png_write_row' was here
coders/png.c:7333: warning: data definition has no type or storage class
coders/png.c:7334: error: parse error before '}' token
coders/png.c:7371: warning: type defaults to 'int' in declaration of 'png_write_row'
coders/png.c:7371: warning: parameter names (without types) in function declaration
coders/png.c:7371: error: conflicting types for 'png_write_row'
/usr/local/include/png.h:1737: error: previous declaration of 'png_write_row' was here
coders/png.c:7371: warning: data definition has no type or storage class
coders/png.c:7372: error: parse error before '}' token
coders/png.c:7379: warning: type defaults to 'int' in declaration of 'image_depth'
coders/png.c:7379: warning: data definition has no type or storage class
coders/png.c:7380: error: parse error before '}' token
coders/png.c:7386: warning: type defaults to 'int' in declaration of 'p'
coders/png.c:7386: error: 'y' undeclared here (not in a function)
coders/png.c:7386: warning: initialization makes integer from pointer without a cast
coders/png.c:7386: error: initializer element is not constant
coders/png.c:7386: warning: data definition has no type or storage class
coders/png.c:7387: error: parse error before 'if'
coders/png.c:7398: warning: type defaults to 'int' in declaration of 'png_write_row'
coders/png.c:7398: warning: parameter names (without types) in function declaration
coders/png.c:7398: error: conflicting types for 'png_write_row'
/usr/local/include/png.h:1737: error: previous declaration of 'png_write_row' was here
coders/png.c:7398: warning: data definition has no type or storage class
coders/png.c:7399: error: parse error before '}' token
coders/png.c:7409: warning: type defaults to 'int' in declaration of 'quantum_info'
coders/png.c:7409: error: redefinition of 'quantum_info'
coders/png.c:7257: error: previous definition of 'quantum_info' was here
coders/png.c:7409: warning: passing argument 1 of 'DestroyQuantumInfo' makes pointer from integer without a cast
coders/png.c:7409: warning: initialization makes integer from pointer without a cast
coders/png.c:7409: error: initializer element is not constant
coders/png.c:7409: warning: data definition has no type or storage class
coders/png.c:7411: error: parse error before 'if'
coders/png.c:7432: warning: type defaults to 'int' in declaration of 'ResetImagePropertyIterator'
coders/png.c:7432: warning: parameter names (without types) in function declaration
coders/png.c:7432: error: conflicting types for 'ResetImagePropertyIterator'
./magick/property.h:46: error: previous declaration of 'ResetImagePropertyIterator' was here
coders/png.c:7432: warning: data definition has no type or storage class
coders/png.c:7433: warning: type defaults to 'int' in declaration of 'property'
coders/png.c:7433: warning: initialization makes integer from pointer without a cast
coders/png.c:7433: error: initializer element is not constant
coders/png.c:7433: warning: data definition has no type or storage class
coders/png.c:7434: error: parse error before 'while'
coders/png.c:7441: warning: type defaults to 'int' in declaration of 'value'
coders/png.c:7441: warning: passing argument 2 of 'GetImageProperty' makes pointer from integer without a cast
coders/png.c:7441: warning: initialization makes integer from pointer without a cast
coders/png.c:7441: error: initializer element is not constant
coders/png.c:7441: warning: data definition has no type or storage class
coders/png.c:7442: error: parse error before 'if'
coders/png.c:7446: error: parse error before '.' token
coders/png.c:7447: error: parse error before '.' token
coders/png.c:7448: error: parse error before '.' token
coders/png.c:7449: error: parse error before '.' token
coders/png.c:7459: error: parse error before numeric constant
coders/png.c:7459: warning: type defaults to 'int' in declaration of 'png_set_text'
coders/png.c:7459: error: conflicting types for 'png_set_text'
/usr/local/include/png.h:2380: error: previous declaration of 'png_set_text' was here
coders/png.c:7459: warning: data definition has no type or storage class
coders/png.c:7460: warning: type defaults to 'int' in declaration of 'png_free'
coders/png.c:7460: warning: parameter names (without types) in function declaration
coders/png.c:7460: error: conflicting types for 'png_free'
/usr/local/include/png.h:2024: error: previous declaration of 'png_free' was here
coders/png.c:7460: warning: data definition has no type or storage class
coders/png.c:7493: error: parse error before '}' token
coders/png.c:7494: warning: type defaults to 'int' in declaration of 'property'
coders/png.c:7494: error: redefinition of 'property'
coders/png.c:7433: error: previous definition of 'property' was here
coders/png.c:7494: warning: initialization makes integer from pointer without a cast
coders/png.c:7494: error: initializer element is not constant
coders/png.c:7494: warning: data definition has no type or storage class
coders/png.c:7495: error: parse error before '}' token
coders/png.c:7503: warning: type defaults to 'int' in declaration of 'png_write_end'
coders/png.c:7503: warning: parameter names (without types) in function declaration
coders/png.c:7503: error: conflicting types for 'png_write_end'
/usr/local/include/png.h:1749: error: previous declaration of 'png_write_end' was here
coders/png.c:7503: warning: data definition has no type or storage class
coders/png.c:7504: error: parse error before 'if'
coders/png.c:7517: warning: type defaults to 'int' in declaration of 'PNGType'
coders/png.c:7517: warning: parameter names (without types) in function declaration
coders/png.c:7517: warning: data definition has no type or storage class
coders/png.c:7518: error: parse error before '(' token
coders/png.c:7518: warning: type defaults to 'int' in declaration of 'logging'
coders/png.c:7518: warning: type defaults to 'int' in declaration of 'mng_FRAM'
coders/png.c:7518: error: conflicting types for 'mng_FRAM'
coders/png.c:186: error: previous definition of 'mng_FRAM' was here
coders/png.c:7518: error: parse error before numeric constant
coders/png.c:7519: warning: type defaults to 'int' in declaration of 'chunk'
coders/png.c:7519: error: conflicting types for 'chunk'
coders/png.c:7207: error: previous definition of 'chunk' was here
coders/png.c:7519: error: invalid initializer
coders/png.c:7519: warning: data definition has no type or storage class
coders/png.c:7520: warning: type defaults to 'int' in declaration of 'chunk'
coders/png.c:7520: error: conflicting types for 'chunk'
coders/png.c:7207: error: previous definition of 'chunk' was here
coders/png.c:7520: error: invalid initializer
coders/png.c:7520: warning: data definition has no type or storage class
coders/png.c:7521: warning: type defaults to 'int' in declaration of 'chunk'
coders/png.c:7521: error: conflicting types for 'chunk'
coders/png.c:7207: error: previous definition of 'chunk' was here
coders/png.c:7521: error: invalid initializer
coders/png.c:7521: warning: data definition has no type or storage class
coders/png.c:7522: warning: type defaults to 'int' in declaration of 'chunk'
coders/png.c:7522: error: conflicting types for 'chunk'
coders/png.c:7207: error: previous definition of 'chunk' was here
coders/png.c:7522: error: invalid initializer
coders/png.c:7522: warning: data definition has no type or storage class
coders/png.c:7523: warning: type defaults to 'int' in declaration of 'chunk'
coders/png.c:7523: error: conflicting types for 'chunk'
coders/png.c:7207: error: previous definition of 'chunk' was here
coders/png.c:7523: error: invalid initializer
coders/png.c:7523: warning: data definition has no type or storage class
coders/png.c:7524: warning: type defaults to 'int' in declaration of 'chunk'
coders/png.c:7524: error: conflicting types for 'chunk'
coders/png.c:7207: error: previous definition of 'chunk' was here
coders/png.c:7524: error: invalid initializer
coders/png.c:7524: warning: data definition has no type or storage class
coders/png.c:7525: error: parse error before '+' token
coders/png.c:7526: warning: type defaults to 'int' in declaration of 'chunk'
coders/png.c:7526: error: conflicting types for 'chunk'
coders/png.c:7207: error: previous definition of 'chunk' was here
coders/png.c:7526: error: invalid initializer
coders/png.c:7526: warning: data definition has no type or storage class
coders/png.c:7527: error: parse error before '+' token
coders/png.c:7527: error: parse error before '->' token
coders/png.c:7528: error: parse error before '+' token
coders/png.c:7529: error: parse error before '->' token
coders/png.c:7530: error: parse error before '+' token
coders/png.c:7530: error: parse error before '->' token
coders/png.c:7531: error: parse error before '+' token
coders/png.c:7532: error: parse error before '->' token
coders/png.c:7546: warning: type defaults to 'int' in declaration of 'image_depth'
coders/png.c:7546: error: redefinition of 'image_depth'
coders/png.c:7379: error: previous definition of 'image_depth' was here
coders/png.c:7546: error: 'save_image_depth' undeclared here (not in a function)
coders/png.c:7546: warning: data definition has no type or storage class
coders/png.c:7550: warning: type defaults to 'int' in declaration of 's'
coders/png.c:7550: error: 'ping_info' undeclared here (not in a function)
coders/png.c:7550: warning: data definition has no type or storage class
coders/png.c:7551: warning: type defaults to 'int' in declaration of 's'
coders/png.c:7551: error: conflicting types for 's'
coders/png.c:7550: error: previous definition of 's' was here
coders/png.c:7551: error: invalid initializer
coders/png.c:7551: warning: data definition has no type or storage class
coders/png.c:7553: error: parse error before 'void'
coders/png.c:7573: error: parse error before '&' token
coders/png.c:7573: warning: type defaults to 'int' in declaration of 'png_destroy_write_struct'
coders/png.c:7573: error: conflicting types for 'png_destroy_write_struct'
/usr/local/include/png.h:1772: error: previous declaration of 'png_destroy_write_struct' was here
coders/png.c:7573: warning: data definition has no type or storage class
coders/png.c:7575: warning: type defaults to 'int' in declaration of 'png_pixels'
coders/png.c:7575: error: redefinition of 'png_pixels'
coders/png.c:7250: error: previous definition of 'png_pixels' was here
coders/png.c:7575: warning: passing argument 1 of 'RelinquishMagickMemory' makes pointer from integer without a cast
coders/png.c:7575: warning: initialization makes integer from pointer without a cast
coders/png.c:7575: error: initializer element is not constant
coders/png.c:7575: warning: data definition has no type or storage class
coders/png.c:7578: warning: type defaults to 'int' in declaration of 'RelinquishSemaphoreInfo'
coders/png.c:7578: warning: parameter names (without types) in function declaration
coders/png.c:7578: error: conflicting types for 'RelinquishSemaphoreInfo'
./magick/semaphore.h:40: error: previous declaration of 'RelinquishSemaphoreInfo' was here
coders/png.c:7578: warning: data definition has no type or storage class
coders/png.c:7581: error: parse error before 'if'
coders/png.c: In function 'WritePNGImage':
coders/png.c:7720: error: 'struct _MngInfo' has no member named 'write_color_type'
coders/png.c:7722: error: 'struct _MngInfo' has no member named 'write_color_type'
coders/png.c:7724: error: 'struct _MngInfo' has no member named 'write_color_type'
coders/png.c:7726: error: 'struct _MngInfo' has no member named 'write_color_type'
coders/png.c:7728: error: 'struct _MngInfo' has no member named 'write_color_type'
coders/png.c: In function 'WriteOneJNGImage':
coders/png.c:8086: warning: passing argument 2 of 'LogPNGChunk' makes pointer from integer without a cast
coders/png.c: In function 'WriteMNGImage':
coders/png.c:9067: warning: passing argument 2 of 'LogPNGChunk' makes pointer from integer without a cast
coders/png.c:9079: warning: passing argument 2 of 'LogPNGChunk' makes pointer from integer without a cast
make[1]: *** [coders/coders_png_la-png.lo] Error 1
make: *** [all] Error 2
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: IM 6.5.1-8 fails to make with errors in coders/png.c

Post by magick »

We'll gave a fix in just a few hours. Another developer checked in a source module while the release was being built.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: IM 6.5.1-8 fails to make with errors in coders/png.c

Post by fmw42 »

Not urgent on my part. Just wanted you to know.
Post Reply