On Sat, Apr 11, 2009 at 07:00:55PM -0400, Tom Lane wrote:
> Wolfram Quester <wo...@sigxcpu.org> writes:
> > Kurt Roeckx submitted the bug against inkscape cited below.
> 
> >> In file included from /usr/include/libpng12/png.h:474,
> >> from sp-image.cpp:44:
> >> /usr/include/libpng12/pngconf.h:328: error: expected constructor, 
> >> destructor, or type conversion before '.' token
> >> /usr/include/libpng12/pngconf.h:329: error: '__dont__' does not name a type
> >> make[3]: *** [sp-image.o] Error 1
> 
> If you didn't figure it out already: it looks to me like this is exactly
> the same setjmp issue being discussed in the other current thread.
> 
> http://sourceforge.net/mailarchive/forum.php?thread_name=1806.1239115719%40sss.pgh.pa.us&forum_name=png-mng-implement

OK, thanks for the link. But the crazy thing is that inkscape includes setjmp.h
in the code leading to the compiler error only via png.h. It does not include
setjmp.h directly.
So I'm still tempted to call this a bug in libpng. Furthermore, since we don't 
include
setjmp.h I don't see a way for th recommended workaround, namely including 
png.h before
setjmp.h. But I have to look deeper into the code for a fix.

Thanks,

Wolfi

> 
> As far as I can see the consensus is that nothing much can be done about
> this in libpng 1.2.x.  We could possibly fix it in 1.4 by making
> incompatible changes in the libpng API.
> 
>                       regards, tom lane

Attachment: signature.asc
Description: Digital signature

Reply via email to