[GiNaC-list] ginsh_parser.yy error in Tiger.

David Fang fang at csl.cornell.edu
Tue Aug 23 06:59:39 CEST 2005


> I am trying to install GiNaC in Mac osx 10.4.2 (Tiger) using
> darwinports. The error I get is:

Hi,
	I haven't exactly had the best track record building CLN/GiNaC on
my Mac (sooooo close), but here's what I've found:

ginsh_parser.cc builds for me, however, I'm using bison-2.0.  It also used
to build for me with bison-1.875.  The bison that ships with OS X is
bison-1.28 (*ancient*) and is known to have problems, perhaps including
generating bad code from ginsh_parser.yy.  Tell us what "bison --version"
you have, and consider upgrading if you're using 1.28.
	The rl_* functions come from readline.  Those functions listed
below have been in libreadline since at least version 4 (I have 4.3
installed), *BUT* the names did change slightly across minor
versions, as evidenced by the various #if's sprinkled about that source
file.
	HTH.

> --->  Building GiNaC with target all
> if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../ginac -I../ginac -
> DIN_GINAC  -I/opt/local/include -I/opt/local/include -I/opt/local/
> include  -g -O2 -MT ginsh_parser.o -MD -MP -MF ".deps/
> ginsh_parser.Tpo" \
>    -c -o ginsh_parser.o `test -f 'ginsh_parser.cc' || echo
> './'`ginsh_parser.cc; \
> then mv -f ".deps/ginsh_parser.Tpo" ".deps/ginsh_parser.Po"; \
> else rm -f ".deps/ginsh_parser.Tpo"; exit 1; \
> fi
> ginsh_parser.yy:48:6: error: missing binary operator before token
> "wrapper"
> ginsh_parser.yy:54:6: error: missing binary operator before token
> "wrapper"
> ginsh_parser.yy:837:6: error: missing binary operator before token
> "wrapper"
> ginsh_parser.yy:847:6: error: missing binary operator before token
> "wrapper"
> ginsh_parser.yy:899:6: error: missing binary operator before token
> "wrapper"
> ginsh_parser.yy: In function 'char** fcn_completion(const char*, int,
> int)':
> ginsh_parser.yy:835: error: invalid conversion from 'const char*' to
> 'char*'
> ginsh_parser.yy:840: error: 'rl_filename_completion_function' was not
> declared in this scope
> ginsh_parser.yy:840: error: 'rl_completion_matches' was not declared
> in this scope
> ginsh_parser.yy:850: error: 'rl_completion_matches' was not declared
> in this scope
> make[2]: *** [ginsh_parser.o] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2


David Fang






More information about the GiNaC-list mailing list