gvars
gvars copied to clipboard
Use of undeclared identifier 'history_list' on Mac OS 10.9
When I try to compile gvar, I got the problem: gvars/src/GUI_impl_readline.cc:43:34: Use of undeclared identifier 'history_list'
That's interesting: I think there may be a configuration error.
Can you display the output of ./configure?
I got the same error on Mac OS 10.9. Here are the output of ./configure (parsed as Markdown) and the compile output:
checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking for g++... g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking iostream usability... yes checking iostream presence... yes checking for iostream... yes checking build system type... i386-apple-darwin13.3.0 checking host system type... i386-apple-darwin13.3.0 configure: Adding /sw to the build path. configure: Adding /opt/local to the build path. checking if compiler flag -Wall works... yes checking if compiler flag -Wextra works... yes
Checking for options
checking for TooN... yes checking for TooN-2... yes checking if compiler flag -pthread works... yes checking for rl_done in -lreadline... yes
Checking for widget libraries (provides GUI_...)
checking for fltk2-config... no checking FL/Fl.H usability... no checking FL/Fl.H presence... no checking for FL/Fl.H... no checking for main in -lfltk... no checking for X... libraries /usr/X11/lib, headers checking Xm/Xm.h usability... no checking Xm/Xm.h presence... no checking for Xm/Xm.h... no checking for main in -lXm... no configure: WARNING: No GUI functionality enabled Options: toon readline
Missing options: gui GUI support: none
configure: creating ./config.status config.status: creating Makefile config.status: creating gvars3/config.h
################################
Here is the compile error:
g++ -I. -I /sw/include -I/opt/local/include -I/usr/X11R6/include -INONE/include -DGUI_HAVE_READLINE -g -O2 -Wall -Wextra -pthread -I. -I /sw/include -I/opt/local/include -I/usr/X11R6/include -INONE/include -DGUI_HAVE_READLINE -c -o src/GUI_readline.o src/GUI_readline.cc src/GUI_readline.cc:69:3: error: use of undeclared identifier 'rl_event_hook' rl_event_hook = rlhook; ^ src/GUI_readline.cc:96:4: error: use of undeclared identifier 'rl_done' rl_done = 1; ^ src/GUI_readline.cc:117:3: error: use of undeclared identifier 'rl_event_hook' rl_event_hook = rlhook; ^ src/GUI_readline.cc:118:3: error: use of undeclared identifier 'rl_set_keyboard_input_timeout' rl_set_keyboard_input_timeout(0); ^ 4 errors generated. make: *** [src/GUI_readline.o] Error 1
Can you pass the disable readline option to the configure script to see if it works?
On 18 August 2014 05:31, Ted Steiner [email protected] wrote:
I got the same error on Mac OS 10.9. Here are the output of ./configure (parsed as Markdown) and the compile output:
checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking for g++... g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking iostream usability... yes checking iostream presence... yes checking for iostream... yes checking build system type... i386-apple-darwin13.3.0 checking host system type... i386-apple-darwin13.3.0 configure: Adding /sw to the build path. configure: Adding /opt/local to the build path. checking if compiler flag -Wall works... yes
checking if compiler flag -Wextra works... yes
Checking for options
checking for TooN... yes checking for TooN-2... yes checking if compiler flag -pthread works... yes
checking for rl_done in -lreadline... yes
Checking for widget libraries (provides GUI_...)
checking for fltk2-config... no checking FL/Fl.H usability... no checking FL/Fl.H presence... no checking for FL/Fl.H... no checking for main in -lfltk... no checking for X... libraries /usr/X11/lib, headers checking Xm/Xm.h usability... no checking Xm/Xm.h presence... no checking for Xm/Xm.h... no checking for main in -lXm... no configure: WARNING: No GUI functionality enabled Options: toon readline
Missing options: gui GUI support: none
configure: creating ./config.status config.status: creating Makefile config.status: creating gvars3/config.h
################################
Here is the compile error:
g++ -I. -I /sw/include -I/opt/local/include -I/usr/X11R6/include -INONE/include -DGUI_HAVE_READLINE -g -O2 -Wall -Wextra -pthread -I. -I /sw/include -I/opt/local/include -I/usr/X11R6/include -INONE/include -DGUI_HAVE_READLINE -c -o src/GUI_readline.o src/GUI_readline.cc src/GUI_readline.cc:69:3: error: use of undeclared identifier 'rl_event_hook' rl_event_hook = rlhook; ^ src/GUI_readline.cc:96:4: error: use of undeclared identifier 'rl_done' rl_done = 1; ^ src/GUI_readline.cc:117:3: error: use of undeclared identifier 'rl_event_hook' rl_event_hook = rlhook; ^ src/GUI_readline.cc:118:3: error: use of undeclared identifier 'rl_set_keyboard_input_timeout' rl_set_keyboard_input_timeout(0); ^ 4 errors generated. make: *** [src/GUI_readline.o] Error 1
— Reply to this email directly or view it on GitHub https://github.com/edrosten/gvars/issues/4#issuecomment-52451039.
Thank you for getting back to me so quickly. Using "./configure --without-readline" did allow gvars to build and install for me. Thanks again!
./configure --without-readline works for me as well