|
From: Mojca M. <moj...@gm...> - 2011-01-19 03:23:46
|
On Wed, Jan 19, 2011 at 04:08, Ethan Merritt wrote: > On Tuesday, January 18, 2011, Mojca Miklavec wrote: >> I'm sending a copy of some errors that get reported when I try to >> compile gnuplot ... > > Errors from what version of which compiler? > gcc --version i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664) >> In file included from term.h:349, >> from term.c:1399: >> ../term/post.trm: In function ‘PS_graphics’: >> ../term/post.trm:1819: warning: format not a string literal and no >> format arguments >> >> This comes from >> static char GPFAR psg1[] = "0 setgray\nnewpath\n"; >> fprintf(gppsfile, psg1); > > [\me scratches head] Sure looks like a string literal to me. > > >> util.c:524:1: warning: "sprintf" redefined >> In file included from /Developer/SDKs/MacOSX10.6.sdk/usr/include/stdio.h:443, >> from stdfn.h:48, >> from util.h:41, >> from util.c:37: > > That seems to be an error in stdio.h as provided by SDK. > Report it to Apple! If I only knew what to report ... (I can send the file.) >> /Developer/SDKs/MacOSX10.6.sdk/usr/include/secure/_stdio.h:46:1: >> warning: this is the location of the previous definition >> wxterminal/gp_cairo.c: In function ‘gp_cairo_convert’: >> wxterminal/gp_cairo.c:678: warning: format ‘%d’ expects type ‘int’, >> but argument 5 has type ‘gsize’ >> wxterminal/gp_cairo.c:678: warning: format ‘%d’ expects type ‘int’, >> but argument 6 has type ‘size_t’ >> gplt_x11.c: In function ‘exec_cmd’: >> gplt_x11.c:2892: warning: format not a string literal and no format arguments >> gplt_x11.c:2897: warning: format not a string literal and no format arguments >> gplt_x11.c:2902: warning: format not a string literal and no format arguments >> gplt_x11.c:2907: warning: format not a string literal and no format arguments > > Those messages are garbage. Ignore them. > >> In gnuplot-comint-start-function: >> gnuplot.el:1838:18:Warning: `make-variable-buffer-local' should be called at >> toplevel >> >> In gnuplot-mode: >> gnuplot.el:2518:41:Warning: `make-variable-buffer-local' should be called at >> toplevel > > I have no idea what this means, or even who is printing the error. > Is that a message from emacs? No. It is printed out during compilation of gnuplot (configured with --without-bitmap-terminals --with-cwdrc --without-tutorial --disable-wxwidgets --without-latex). But I need to double-check. Mojca PS: I tried to compile gnuplot with external (self-compiled) readline and it kept crashing, but I had other problems as well, so maybe there were other reasons. |