[GiNaC-devel] Problems in compiling ginac on a iMac (Intel)
Christian Fleck
christian.fleck at fdm.uni-freiburg.de
Thu Mar 30 12:34:58 CEST 2006
Hello,
I tried to compile ginac version 1.3.3 with gcc 4.0.0 (Apple version)
on a Intel iMac running OS X 10.4.5. My version of libread is 5.1. I
append the config.log.
The first error is that the configure script can still not find the
correct version of cln, although it should be installed correctly.
I tried to play a bit, but was not able to fix it. Running 'configure
--disable-clntest --enable-shared=no' and typing 'make' produces:
...
ginsh_parser.yy:47:6: error: missing binary operator before token
"wrapper"
ginsh_parser.yy:53:6: error: missing binary operator before token
"wrapper"
ginsh_parser.yy:845:6: error: missing binary operator before token
"wrapper"
ginsh_parser.yy:855:6: error: missing binary operator before token
"wrapper"
I edited the file config.h changing the lines
/* Major version of installed readline library. */
#define GINAC_RL_VERSION_MAJOR EditLine wrapper
/* Minor version of installed readline library. */
#define GINAC_RL_VERSION_MINOR EditLine wrapper
into
/* Major version of installed readline library. */
#define GINAC_RL_VERSION_MAJOR 1
/* Minor version of installed readline library. */
#define GINAC_RL_VERSION_MINOR 3
But running 'make' then produced:
...
Making all in ginsh
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../ginac -I../ginac -
DIN_GINAC -I/usr/local/include -g -O2 -MT ginsh_parser.o -MD -MP -
MF ".deps/ginsh_parser.Tpo" -c -o ginsh_parser.o 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: In function 'char** fcn_completion(const char*, int,
int)':
ginsh_parser.yy:844: error: invalid conversion from 'const char*' to
'char*'
ginsh_parser.yy:846: error: 'filename_completion_function' was not
declared in this scope
ginsh_parser.yy:846: error: 'completion_matches' was not declared in
this scope
ginsh_parser.yy:854: error: invalid conversion from 'const char*' to
'char*'
ginsh_parser.yy:856: error: 'completion_matches' was not declared in
this scope
ginsh_parser.yy: In function 'int main(int, char**)':
ginsh_parser.yy:908: error: invalid conversion from 'char** (*)(...)'
to 'char** (*)(const char*, int, int)'
ginsh_parser.yy:913: error: invalid conversion from 'const char*' to
'char*'
make[2]: *** [ginsh_parser.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Does anyone has an idea what is going wrong and how to fix it?
Thanks,
Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log.zip
Type: application/zip
Size: 10495 bytes
Desc: not available
Url : http://www.cebix.net/pipermail/ginac-devel/attachments/20060330/f48529aa/config.log.zip
-------------- next part --------------
More information about the GiNaC-devel
mailing list