[MacPorts] #63718: zvbi: build fails on 10.6_x32, perhaps related to implicit declaration of 'setjmp'
MacPorts
noreply at macports.org
Fri Oct 29 13:44:11 UTC 2021
#63718: zvbi: build fails on 10.6_x32, perhaps related to implicit declaration of
'setjmp'
---------------------+----------------------
Reporter: mascguy | Owner: mascguy
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Keywords: setjmp | Port: zvbi
---------------------+----------------------
New port `zvbi` is failing to build on 10.6_x32, due to `setjmp`-related
errors. Looking more closely, it appears that it might be an implicit
function declaration.
However, the "architecture not supported" error is also a bit troubling.
Need to dig into this a bit more though:
{{{
In file included from exp-gfx.c:1638:
In file included from /opt/local/include/png.h:335:
In file included from /opt/local/include/pngconf.h:51:
In file included from /usr/include/setjmp.h:26:
/usr/include/machine/setjmp.h:41:2: error: architecture not supported
#error architecture not supported
^
In file included from exp-gfx.c:1638:
/opt/local/include/png.h:828:65: error: expected identifier
PNG_FUNCTION(void, (PNGCAPI *png_longjmp_ptr), PNGARG((jmp_buf, int)),
typedef);
^
/opt/local/include/png.h:950:15: error: unknown type name 'jmp_buf'
PNG_EXPORT(8, jmp_buf*, png_set_longjmp_fn, (png_structrp png_ptr,
^
exp-gfx.c:1687:6: warning: implicit declaration of function 'setjmp' is
invalid in C99 [-Wimplicit-function-declaration]
if (PNG_SETJMP(png_ptr))
^
exp-gfx.c:1647:27: note: expanded from macro 'PNG_SETJMP'
# define PNG_SETJMP(ptr) setjmp(png_jmpbuf(ptr))
^
exp-gfx.c:1687:6: warning: declaration of built-in function 'setjmp'
requires the declaration of the 'jmp_buf' type, commonly provided in the
header <setjmp.h>. [-Wincomplete-setjmp-declaration]
exp-gfx.c:1647:27: note: expanded from macro 'PNG_SETJMP'
# define PNG_SETJMP(ptr) setjmp(png_jmpbuf(ptr))
^
exp-gfx.c:1687:6: error: use of undeclared identifier 'jmp_buf'
exp-gfx.c:1647:34: note: expanded from macro 'PNG_SETJMP'
# define PNG_SETJMP(ptr) setjmp(png_jmpbuf(ptr))
^
/opt/local/include/png.h:953:57: note: expanded from macro 'png_jmpbuf'
(*png_set_longjmp_fn((png_ptr), longjmp, (sizeof (jmp_buf))))
^
exp-gfx.c:1687:6: error: use of undeclared identifier 'longjmp'
exp-gfx.c:1647:34: note: expanded from macro 'PNG_SETJMP'
# define PNG_SETJMP(ptr) setjmp(png_jmpbuf(ptr))
^
/opt/local/include/png.h:953:39: note: expanded from macro 'png_jmpbuf'
(*png_set_longjmp_fn((png_ptr), longjmp, (sizeof (jmp_buf))))
^
5 warnings and 5 errors generated.
}}}
https://build.macports.org/builders/ports-10.6_i386-builder/builds/42155/steps
/install-port/logs/stdio
--
Ticket URL: <https://trac.macports.org/ticket/63718>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list