|
From: Tatsuro M. <tma...@ya...> - 2010-08-09 06:18:41
|
Hello A compile error of plot.c in cvs(2010-08-07) configured with --with-readline=bsd and --with-readline=built-in has occurred on cygwin. gcc -shared-libgcc -DHAVE_CONFIG_H -I. -I.. -I../term -I../term -DBINDIR=\"/usr/local/bin\" -DX11_DRIVER_DIR=\"/usr/local/libexec/gnuplot/4.5\" -DGNUPLOT_PS_DIR=\"/usr/local/share/gnuplot/4.5/PostScript\" -DGNUPLOT_JS_DIR=\"/usr/local/share/gnuplot/4.5/js\" -DGNUPLOT_LUA_DIR=\"/usr/local/share/gnuplot/4.5/lua\" -DCONTACT=\"gnu...@li...\" -DHELPFILE=\"/usr/local/share/gnuplot/4.5/gnuplot.gih\" -DGNUPLOT_X11=\"`echo gnuplot_x11 | sed 's,x,x,'`.exe\" -DXAPPLRESDIR=\"/etc/X11/app-defaults/\" -I/usr/local/include -D_REENTRANT -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O3 -fomit-frame-pointer -MT plot.o -MD -MP -MF .deps/plot.Tpo -c -o plot.o plot.c plot.c: In function 'main': plot.c:349: error: 'rl_complete_with_tilde_expansion' undeclared (first use in this function) plot.c:349: error: (Each undeclared identifier is reported only once plot.c:349: error: for each function it appears in.) make[3]: *** [plot.o] Error 1 make[3]: Leaving directory `/home/gnuplotcvs/gnuplot/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/gnuplotcvs/gnuplot/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/gnuplotcvs/gnuplot' make: *** [all] Error 2 If configure is carried out --with-readline=gnu, no error occurred. The patch below allowed me to compile plot.c with --with-readline=bsd and --with-readline=built-in. Although I do not figure out the below is correct, please take it into consideration. Regards Tatsuro --- plot.org.c 2010-08-06 10:21:05.000000000 +0900 +++ plot.c 2010-08-09 15:01:43.640625000 +0900 @@ -119,6 +119,15 @@ */ #ifdef HAVE_LIBEDITLINE # include <editline/readline.h> +# if !defined(MISSING_RL_TILDE_EXPANSION) + extern int rl_complete_with_tilde_expansion; +# endif +#endif + +/* Builtin +*/ +#if !defined(MISSING_RL_TILDE_EXPANSION) + extern int rl_complete_with_tilde_expansion; #endif /* enable gnuplot history with readline */ -------------------------------------- Get the new Internet Explorer 8 optimized for Yahoo! JAPAN http://pr.mail.yahoo.co.jp/ie8/ |