[GiNaC-list] Re: GiNaC-list Digest, Vol 7, Issue 5

Guangqiang Dong guangqiang.dong at utoronto.ca
Tue Aug 23 19:52:45 CEST 2005


Hi,

Thanks for your suggestion.

I updated the ancient version of bison, and it still got the same  
error. So I tried to see what is wrong with the readline library.   
The readline that ships with OS X is also an really old version 1.11.  
After updating it to the newest readline 5.0, GiNaC was installed  
successfully using DP.

Best,
Guangqiang

On 23-Aug-05, at 6:00 AM, ginac-list-request at ginac.de wrote:
>
> ------------------------------
>
> Message: 4
> Date: Tue, 23 Aug 2005 00:59:39 -0400 (EDT)
> From: David Fang <fang at csl.cornell.edu>
> Subject: Re: [GiNaC-list] ginsh_parser.yy error in Tiger.
> To: GiNaC discussion list <ginac-list at ginac.de>
> Message-ID: <20050823004542.Y140-100000 at shannon.csl.cornell.edu>
> Content-Type: TEXT/PLAIN; charset=US-ASCII
>
>
>> 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
>
>
>
>
>
> ------------------------------
>
> _______________________________________________
> GiNaC-list mailing list
> GiNaC-list at ginac.de
> http://thep.physik.uni-mainz.de/mailman/listinfo/ginac-list
>
>
> End of GiNaC-list Digest, Vol 7, Issue 5
> ****************************************
>





More information about the GiNaC-list mailing list