[GiNaC-list] Re: problem installing GiNaC from CVS (Ubuntu Feisty Faun)

Alexei Sheplyakov varg at theor.jinr.ru
Tue Dec 4 19:04:24 CET 2007


Hello,

On Fri, Nov 30, 2007 at 11:39:59PM +0000, alexander baker wrote:

> g++ -g -O2 -o .libs/ginsh ginsh_parser.o ginsh_lexer.o  ../ginac/.libs/libginac.so -lreadline -lncurses -L/usr/local/lib /usr/local/lib/libcln.so -Wl,--rpath -Wl,/usr/local/lib
> ginsh_lexer.o: In function `main':
> /home/bakera/inglethorpe/ginac/GiNaC/ginsh/ginsh_lexer.cc:1: multiple definition of `main'
> ginsh_parser.o:/home/bakera/inglethorpe/ginac/GiNaC/ginsh/ginsh_parser.yy:896: first defined here
> /usr/bin/ld: Warning: size of symbol `main' changed from 1474 in ginsh_parser.o to 3 in ginsh_lexer.o

[skipped]

> ../ginac/.libs/libginac.so: undefined reference to `GiNaC::get_symbol_name(GiNaC::ex const&)'
> ../ginac/.libs/libginac.so: undefined reference to `GiNaC::is_lexer_symbol_predefined(GiNaC::ex const&)'
> ../ginac/.libs/libginac.so: undefined reference to `ginac_yytext'
> ../ginac/.libs/libginac.so: undefined reference to `GiNaC::set_lexer_symbols(GiNaC::ex)'
> ../ginac/.libs/libginac.so: undefined reference to `ginac_yylex()'
> ../ginac/.libs/libginac.so: undefined reference to `GiNaC::set_lexer_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
> ../ginac/.libs/libginac.so: undefined reference to `ginac_yyrestart(_IO_FILE*)'

This clearly points to a problem with bison- and flex-generated files. Could
you please post the following files:

config.log
ginac/input_parser.cc
ginac/input_lexer.cc
ginsh/ginsh_parser.cc
ginsh/ginsh_lexer.cc

so I can figure out what the problem is.

Best regards,
	Alexei

-- 
All science is either physics or stamp collecting.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
Url : http://www.cebix.net/pipermail/ginac-list/attachments/20071204/fc67b9fb/attachment.pgp


More information about the GiNaC-list mailing list