Jeremy C. Reed - 2004-03-21

Building libwmf under Linux with PNG support fails,
because pngconf.h has code to error out if setjmp.h has
already been loaded.

Making all in ipa
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H
-DPACKAGE=\"libwmf\"    -DVERSION=\"0.2.8\" -I../../include
-I../../src             -I../..  -I/usr/include -I/usr/include/freetype2
-g -I/usr/include -I/usr/include/freetype2 -I/usr/include/freetype2
-I/usr/X11R6/include -c ipa.c
gcc -DHAVE_CONFIG_H -DPACKAGE=\"libwmf\" -DVERSION=\"0.2.8\"
-I../../include -I../../src -I../..
-I/scratch/pkgsrc/graphics/libwmf/work.puget/.buildlink/include
-I/usr/include/freetype2 -g
-I/scratch/pkgsrc/graphics/libwmf/work.puget/.x11-buildlink/include -c
ipa.c  -fPIC -DPIC -o .libs/ipa.o
In file included from
/scratch/pkgsrc/graphics/libwmf/work.puget/.buildlink/include/png.h:332,
                 from ../../src/ipa/ipa.h:41,
                 from ipa.c:40:
/scratch/pkgsrc/graphics/libwmf/work.puget/.buildlink/include/pngconf.h:255:
error: parse error before '.' token
*** Error code 1

Now I think this was caused because freetype headers already loaded the setjmp.h, but I can't see this yet.

Has anyone seen the same?

Some google searches show that others have same issue with libwmf.

Thank you.
(Please email me too.)
reed [a T] reed media [d O t] net