|
From: Brian W. <bri...@gm...> - 2015-08-03 18:33:09
|
> On Aug 3, 2015, at 2:15 PM, Brian Weitzner <bri...@gm...> wrote: > > >> On Aug 3, 2015, at 2:07 PM, Ethan A Merritt <sf...@us... <mailto:sf...@us...>> wrote: >> >> On Monday, 03 August, 2015 12:40:22 Brian Weitzner wrote: >> > Hello, >> > >> > I am trying to build gunplot on a Mac via macports and I get the following error: >> > >> > :info:build In file included from term.c:1194: >> > :info:build In file included from ./term.h:254: >> > :info:build ../term/caca.trm:2514:3: warning: implicit declaration of function 'process_event' is invalid in C99 [-Wimplicit-function-declaration] >> > :info:build process_event(GE_replot, 0, 0, 0, 0, 0); >> > :info:build ^ >> > :info:build ../term/caca.trm:2514:17: error: use of undeclared identifier 'GE_replot' >> > :info:build process_event(GE_replot, 0, 0, 0, 0, 0); >> > :info:build ^ >> > >> > Has this issue been encountered and/or resolved by anyone else? Any help or information is appreciated. >> >> I don't know why it is failing, but the simplest fix is to >> disable the caca terminal >> >> ./configure --without-caca >> >> It's a "just-for-fun" option that you don't need for anything serious. >> I am somewhat surprised that your machine even has libcaca installed >> to begin with. >> >> Ethan > > > For reasons unknown, libcaca is listed as a dependency by MacPorts, so everyone who gets gnuplot that way has libcaca. > > -- > Brian D. Weitzner > Postdoctoral Fellow > Chemical & Biomolecular Engineering > Johns Hopkins University > Baltimore, Maryland 21218 > http://graylab.jhu.edu <http://graylab.jhu.edu/> I found the following line in the main.log produced by MacPorts: line 108: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gnuplot/gnuplot/work/gnuplot-5.0.1" && ./configure --prefix=/opt/local --with-caca=/opt/local --with-gd=/opt/local --with-readline=/opt/local --with-aquaterm --without-x --infodir='${prefix}/share/info' --mandir='${prefix}/share/man' --disable-wxwidgets --without-bitmap-terminals --without-cairo --without-latex --without-lua --without-pdf --without-qt --without-tutorial --with-cwdrc I ran the port command, let the build fail and then executed configure with the caca lib definition changed to "--without-caca”, then reran the port upgrade command. That did the trick! Thanks for the workaround. -- Brian D. Weitzner Postdoctoral Fellow Chemical & Biomolecular Engineering Johns Hopkins University Baltimore, Maryland 21218 http://graylab.jhu.edu <http://graylab.jhu.edu/> |