Subject: libwmf fails: pngconf.h:255: error: parse error before '.' token
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 03/20/2004 17:39:59
graphics/libwmf fails under Linux with:
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
Line 255 is:
__png.h__ already includes setjmp.h;
from:
#ifdef PNG_SETJMP_SUPPORTED
/* This is an attempt to force a single setjmp behaviour on Linux. If
* the X config stuff didn't define _BSD_SOURCE we wouldn't need this.
*/
# ifdef __linux__
# ifdef _BSD_SOURCE
# define PNG_SAVE_BSD_SOURCE
# undef _BSD_SOURCE
# endif
# ifdef _SETJMP_H
__png.h__ already includes setjmp.h;
__dont__ include it again.;
# endif
# endif /* __linux__ */
This is from png-1.2.5nb2.
This is under Linux.
I see someone has same issue:
http://www.mail-archive.com/soya@oomadness.tuxfamily.org/msg00018.html
And similar:
http://zebra.fh-weingarten.de/~maxi/html/mplayer-users/2003-01/msg01722.html
Jeremy C. Reed
http://www.reedmedia.net/