Subject: libwmf fails: pngconf.h:255: error: parse error before '.' token
To: None <>
From: Jeremy C. Reed <>
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/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
                 from ../../src/ipa/ipa.h:41,
                 from ipa.c:40:
error: parse error before '.' token
*** Error code 1

Line 255 is:
      __png.h__ already includes setjmp.h;


/* 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:

And similar:

   Jeremy C. Reed