ginsh compilation with gcc2.96 -- readline 4.2

Vladimir Dyadichev vlad at localhost.localdomain
Sun Aug 12 18:34:45 CEST 2001


Hi,

Thanks for the reply and advice. I fixed the readline headers
and configure succeeded. But `ginsh` still don't want to compile
producing following error message:

c++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../ginac -I../ginac
-DIN_GINAC    -pipe -Wall -O2 -fexpensive-optimizations
-march=i686 -c ginsh_parser.cc
/usr/share/misc/bison.simple: In function `int yyparse ()':
/usr/share/misc/bison.simple:614: warning: comparison between
signed and unsigned integer expressions
/usr/share/misc/bison.simple:626: warning: comparison between
signed and unsigned integer expressions
ginsh_parser.yy: In function `char **fcn_completion (char *, int,
int)':
ginsh_parser.yy:771: cannot convert `char *(*) ()' to `char *(*)
(const char *, int)' for argument `2' to `rl_completion_matches
(const char *, char *(*) (const char *, int))'
ginsh_parser.yy:781: cannot convert `char *(*) ()' to `char *(*)
(const char *, int)' for argument `2' to `rl_completion_matches
(const char *, char *(*) (const char *, int))'
ginsh_parser.yy: In function `int main (int, char **)':
ginsh_parser.yy:824: cannot convert `char **(*) ()' to `char
**(*) (const char *, int, int)' in assignment
make: *** [ginsh_parser.o] Ошибка 1

However, I finally managed to build ginsh by using 2.95.3
compiler instead of 2.96   --- it gves just the first two
warnings and no errors.

Best regards,
 Vladimir

On Sun, Aug 12, 2001 at 03:34:25PM +0200, Richard B. Kreckel wrote:
> Hi,
> 
> On Sun, 12 Aug 2001, Vladimir Dyadichev wrote:
> > I would like to compile GiNaC on my Linux system
> > with gcc 2.96 . I have libreadline v 4.2 installed
> > on my system but it seems that g++ do not like 
> > readline header files. 
> > 
> > Consequently the ginsh  fails to compile (library itself
> > compiles OK).
> > 
> > Any suggestions ???
> 
> This is not a ginsh-Problem.  The readline header files need fixing.  
> Have a look at how the problem was solved in the Debian case:
> <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=95758>.
> 
> If you didn't compile libreadline yourself but got it off from some
> distribution, please consider reporting this as a bug so they can
> fix it.
> 
> Regards
>      -richy.
> -- 
> Richard B. Kreckel
> <Richard.Kreckel at Uni-Mainz.DE>
> <http://wwwthep.physik.uni-mainz.de/~kreckel/>
> 



More information about the GiNaC-list mailing list