On OS X 10.5 (Intel) (most recent Xcode) $ scons d8 console=readline
errors out with: scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... g++ -o obj/release/d8-readline.o -c -ansi -pedantic -Wall -Werror -W - Wno-unused-parameter -O3 -fomit-frame-pointer -fno-rtti -fno- exceptions -ansi -pedantic -Wall -Werror -W -Wno-unused-parameter -O3 - fomit-frame-pointer -DENABLE_LOGGING_AND_PROFILING src/d8-readline.cc /usr/include/readline/readline.h:101: error: expected initializer before '*' token /usr/include/readline/readline.h:102: error: expected initializer before '*' token src/d8-readline.cc: In static member function 'static char** v8::ReadLineEditor::AttemptedCompletion(const char*, int, int)': src/d8-readline.cc:88: error: 'rl_completion_matches' was not declared in this scope src/d8-readline.cc: In static member function 'static char* v8::ReadLineEditor::CompletionGenerator(const char*, int)': src/d8-readline.cc:98: error: 'strndup' was not declared in this scope scons: *** [obj/release/d8-readline.o] Error 1 scons: building terminated because of errors. On Nov 26, 2:58 pm, perrinmeyer <[EMAIL PROTECTED]> wrote: > When I try to build the d8 shell with readline support I get an error. > I can build the sample=shell shell fine, and run the benchmarks, etc. > > Thanks, > > Perrin > > $ scons d8 console=readline > > gives: > > scons: Reading SConscript files ... > scons: done reading SConscript files. > scons: Building targets ... > g++ -o obj/release/d8-readline.o -c -ansi -pedantic -Wall -Werror -W - > Wno-unused-parameter -O3 -fomit-frame-pointer -m32 -fno-rtti -fno- > exceptions -ansi -pedantic -Wall -Werror -W -Wno-unused-parameter -O3 - > fomit-frame-pointer -m32 -DENABLE_LOGGING_AND_PROFILING src/d8- > readline.cc > /usr/include/readline/rltypedefs.h:65: error: typedef 'rl_getc_func_t' > is initialized (use __typeof__ instead) > /usr/include/readline/rltypedefs.h:65: error: 'FILE' was not declared > in this scope > /usr/include/readline/rltypedefs.h:65: error: expected primary- > expression before ')' token > /usr/include/readline/readline.h:416: error: 'FILE' was not declared > in this scope > /usr/include/readline/readline.h:416: error: expected primary- > expression before ')' token > /usr/include/readline/readline.h:532: error: expected initializer > before '*' token > /usr/include/readline/readline.h:533: error: expected initializer > before '*' token > /usr/include/readline/readline.h:555: error: expected initializer > before '*' token > /usr/include/readline/readline.h:827: error: expected ';' before '*' > token > /usr/include/readline/readline.h:828: error: expected ';' before '*' > token > scons: *** [obj/release/d8-readline.o] Error 1 > scons: building terminated because of errors. > > I'm on a gentoo box, I tried an > $ emerge readline > > (which seemed to install readline-5.2_p12-r1 --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
