Problems in compiling ginac on a iMac (Intel)
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
Dear Christian, Maybe the problem is that (apparently) on Mac OS X you cannot use gcc to link a C++ dynamic library (as CLN does). See the thread: http://www.ginac.de/pipermail/ginac-list/2005-October/000749.html . If it's not that then I don't know. Best, Chris
Hi Chris, I already compiled ginac and CLN on a PowerBook (G5 PowerPC). I think the problems are related to the new Intel processors coming with the iMac. Regards, Christian On 01.04.2006, at 22:00, Chris Dams wrote:
Dear Christian,
Maybe the problem is that (apparently) on Mac OS X you cannot use gcc to link a C++ dynamic library (as CLN does). See the thread: http://www.ginac.de/pipermail/ginac-list/2005-October/000749.html . If it's not that then I don't know.
Best, Chris
_______________________________________________ GiNaC-devel mailing list GiNaC-devel@ginac.de https://www.cebix.net/mailman/listinfo/ginac-devel
participants (2)
-
Chris Dams
-
Christian Fleck