Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Created June 1, 2011 22:23
Show Gist options
  • Save springmeyer/1003504 to your computer and use it in GitHub Desktop.
Save springmeyer/1003504 to your computer and use it in GitHub Desktop.
In file included from src/image_util.cpp:32:
include/mapnik/png_io.hpp:91:16: error: no matching function for call to 'png_set_longjmp_fn'
if (setjmp(png_jmpbuf(png_ptr)))
^~~~~~~~~~~~~~~~~~~
In file included from src/image_util.cpp:27:
/Library/Frameworks/UnixImageIO.framework/unix/include/png.h:988:9: note: instantiated from:
(*png_set_longjmp_fn((png_ptr), longjmp, sizeof (jmp_buf)))
^~~~~~~~~~~~~~~~~~
/Library/Frameworks/UnixImageIO.framework/unix/include/png.h:985:1: note: candidate function not viable: no
known conversion from 'void (int *, int)' to 'png_longjmp_ptr' (aka 'void (*)(int *, int)
__attribute__((noreturn))') for 2nd argument
PNG_EXPORT(8, jmp_buf*, png_set_longjmp_fn, (png_structp png_ptr,
^
/Library/Frameworks/UnixImageIO.framework/unix/include/pngconf.h:319:4: note: instantiated from:
PNG_EXPORTA(ordinal, type, name, args, PNG_EMPTY)
^
/Library/Frameworks/UnixImageIO.framework/unix/include/pngconf.h:309:7: note: instantiated from:
PNG_FUNCTION(PNG_EXPORT_TYPE(type),(PNGAPI name),PNGARG(args), \
^
/Library/Frameworks/UnixImageIO.framework/unix/include/png.h:985:1: note: instantiated from:
PNG_EXPORT(8, jmp_buf*, png_set_longjmp_fn, (png_structp png_ptr,
^
/Library/Frameworks/UnixImageIO.framework/unix/include/pngconf.h:319:4: note: instantiated from:
PNG_EXPORTA(ordinal, type, name, args, PNG_EMPTY)
^
/Library/Frameworks/UnixImageIO.framework/unix/include/png.h:985:1: note: instantiated from:
PNG_EXPORT(8, jmp_buf*, png_set_longjmp_fn, (png_structp png_ptr,
^
/Library/Frameworks/UnixImageIO.framework/unix/include/png.h:985:25: note: instantiated from:
PNG_EXPORT(8, jmp_buf*, png_set_longjmp_fn, (png_structp png_ptr,
^
In file included from src/image_util.cpp:32:
include/mapnik/png_io.hpp:240:16: error: no matching function for call to 'png_set_longjmp_fn'
if (setjmp(png_jmpbuf(png_ptr)))
^~~~~~~~~~~~~~~~~~~
In file included from src/image_util.cpp:27:
/Library/Frameworks/UnixImageIO.framework/unix/include/png.h:988:9: note: instantiated from:
(*png_set_longjmp_fn((png_ptr), longjmp, sizeof (jmp_buf)))
^~~~~~~~~~~~~~~~~~
/Library/Frameworks/UnixImageIO.framework/unix/include/png.h:985:1: note: candidate function not viable: no
known conversion from 'void (int *, int)' to 'png_longjmp_ptr' (aka 'void (*)(int *, int)
__attribute__((noreturn))') for 2nd argument
PNG_EXPORT(8, jmp_buf*, png_set_longjmp_fn, (png_structp png_ptr,
^
/Library/Frameworks/UnixImageIO.framework/unix/include/pngconf.h:319:4: note: instantiated from:
PNG_EXPORTA(ordinal, type, name, args, PNG_EMPTY)
^
/Library/Frameworks/UnixImageIO.framework/unix/include/pngconf.h:309:7: note: instantiated from:
PNG_FUNCTION(PNG_EXPORT_TYPE(type),(PNGAPI name),PNGARG(args), \
^
/Library/Frameworks/UnixImageIO.framework/unix/include/png.h:985:1: note: instantiated from:
PNG_EXPORT(8, jmp_buf*, png_set_longjmp_fn, (png_structp png_ptr,
^
/Library/Frameworks/UnixImageIO.framework/unix/include/pngconf.h:319:4: note: instantiated from:
PNG_EXPORTA(ordinal, type, name, args, PNG_EMPTY)
^
/Library/Frameworks/UnixImageIO.framework/unix/include/png.h:985:1: note: instantiated from:
PNG_EXPORT(8, jmp_buf*, png_set_longjmp_fn, (png_structp png_ptr,
^
/Library/Frameworks/UnixImageIO.framework/unix/include/png.h:985:25: note: instantiated from:
PNG_EXPORT(8, jmp_buf*, png_set_longjmp_fn, (png_structp png_ptr,
^
In file included from src/image_util.cpp:36:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment