I have libpng-1.2.5-r4. emerge gnuplot: ** Configuration summary for gnuplot 3.7.3: Where is the help file? /usr/share/gnuplot/gnuplot.gih Enable generation of PDF files Enable generation of PNG files Use GNU readline library with -lncurses Use the GNU plot library v2.2 or better Use the Linux SVGA console driver SECURITY NOTICE: SVGAlib requires that gnuplot is installed suid root! Use the X Window System [snipping some less-than-helpful lines] gcc -DHAVE_CONFIG_H -I. -I. -I/usr/X11R6/include -O2 -mcpu=i686 -pipe -c standard.c gcc -DHAVE_CONFIG_H -I. -I. -I/usr/X11R6/include -O2 -mcpu=i686 -pipe -c stdfn.cgcc -DHAVE_CONFIG_H -I. -I. -I/usr/X11R6/include -O2 -mcpu=i686 -pipe -I./term -I./term -c term.c gcc -DHAVE_CONFIG_H -I. -I. -I/usr/X11R6/include -O2 -mcpu=i686 -pipe -c time.c gcc -DHAVE_CONFIG_H -I. -I. -I/usr/X11R6/include -O2 -mcpu=i686 -pipe -c util.c gcc -DHAVE_CONFIG_H -I. -I. -I/usr/X11R6/include -O2 -mcpu=i686 -pipe -c util3d.c gcc -DHAVE_CONFIG_H -I. -I. -I/usr/X11R6/include -O2 -mcpu=i686 -pipe -DCONTACT=\"bug-gnuplot@dartmouth.edu\" -c version.c gcc -DHAVE_CONFIG_H -I. -I. -I/usr/X11R6/include -O2 -mcpu=i686 -pipe -c gplt_x11.c cd docs && make - --jobserver-fds=3,4 -j make[1]: Entering directory `/var/tmp/portage/gnuplot-3.7.3-r1/work/gnuplot-3.7.3/docs' gcc -DHAVE_CONFIG_H -I.. -I.. -I../term -I. -I/usr/X11R6/include -O2 -mcpu=i686 -pipe -c doc2gih.c gcc -DHAVE_CONFIG_H -I. -I. -I/usr/X11R6/include -O2 -mcpu=i686 -pipe -c bf_test.c gcc -DHAVE_CONFIG_H -I.. -I.. -I../term -I. -I/usr/X11R6/include -O2 -mcpu=i686 -pipe -c termdoc.c gcc -O2 -mcpu=i686 -pipe -o gnuplot_x11 gplt_x11.o stdfn.o -lSM -lICE -L/usr/X11R6/lib -lX11 -lm gcc -DHAVE_CONFIG_H -I.. -I.. -I../term -I. -I/usr/X11R6/include -O2 -mcpu=i686 -pipe -c doc2info.c gcc -O2 -mcpu=i686 -pipe -o bf_test bf_test.o binary.o alloc.o -lm wd=`pwd` && cd ./demo && $wd/bf_test gcc -DHAVE_CONFIG_H -I.. -I.. -I../term -I. -I/usr/X11R6/include -O2 -mcpu=i686 -pipe -c xref.c gcc -O2 -mcpu=i686 -pipe -o doc2gih doc2gih.o termdoc.o -lm gcc -O2 -mcpu=i686 -pipe -o doc2info doc2info.o termdoc.o xref.o -lm ./doc2gih ./gnuplot.doc gnuplot.gih ./doc2info ./gnuplot.doc gnuplot.info make[1]: Leaving directory `/var/tmp/portage/gnuplot-3.7.3-r1/work/gnuplot-3.7.3/docs' In file included from /usr/include/png.h:332, from term/png.trm:95, from term.h:383, from term.c:699: /usr/include/pngconf.h:255: error: syntax error before '.' token In file included from term.h:221, from term.c:817: term/linux.trm:330: warning: initialization from incompatible pointer type make: *** [term.o] Error 1 Here's the offending lines from pngconf.h: 249 # ifdef __linux__ 250 # ifdef _BSD_SOURCE 251 # define PNG_SAVE_BSD_SOURCE 252 # undef _BSD_SOURCE 253 # endif 254 # ifdef _SETJMP_H 255 __png.h__ already includes setjmp.h; 256 __dont__ include it again.; 257 # endif 258 # endif /* __linux__ */ Very weird! Reproducible: Always Steps to Reproduce: 1. 2. 3. # emerge info Portage 2.0.50_pre16 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.4.23-rc3) ================================================================= System uname: 2.4.23-rc3 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.3.12 distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59 Automake: sys-devel/automake-1.7.8 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=i686 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache cvs sandbox" GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.seren.com/gentoo ftp://mirrors.tds.net/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X aalib apache2 apm arts avi berkdb bonobo crypt cups encode esd foomaticdb gdbm gif gnome gphoto2 gtk gtk2 gtkhtml guile imlib java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pda pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xv zlib"
I'm starting to get some feedback from the gnuplot newsgroup: http://groups.google.com/groups?dq=&hl=en&lr=&ie=UTF-8&selm=f839756f.0401150052.1a17e00d%40posting.google.com
had same problem, while doing un update. Lines 255 & 256 looked kinda like comments, so i commented them. GNUPlot now compiles and loads. i dont really use it for much though, and im not shure out to test PNG output functionality GNUPlot folks say we sould be using 2.8, but it seems that this is a case of solving the effects, not the problem
--with-png --without-pdf OK --without-png --with-pdf OK --with-png --with-pdf NOT OK
*** Bug 39250 has been marked as a duplicate of this bug. ***
Added new version.