build problems with dice

Ronald Aigner ra3 at os.inf.tu-dresden.de
Thu Aug 17 21:29:46 CEST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi,

chenggh wrote on 18.08.2006 18:33 this:
> hi:
> 	when I try to compile the dice, there are some errors like this:
> 
> /home/chenggh/L4/l4/tool/dice/src/CDCEParser.cpp:264: undefined reference to 
> `dce_flex_debug'
> CCORBAParser.o: In function `CCORBAParser::Import(std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> >)':
> /home/chenggh/L4/l4/tool/dice/src/CCORBAParser.cpp:93: undefined reference to 
> `GetCurrentBufferCorba()'
> /home/chenggh/L4/l4/tool/dice/src/CCORBAParser.cpp:154: undefined reference to 
> `RestoreBufferCorba(void*, bool)'
> CCORBAParser.o: In function `CCORBAParser::Parse(void*, 
> std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, 
> bool, bool)':
> /home/chenggh/L4/l4/tool/dice/src/CCORBAParser.cpp:231: undefined reference to 
> `corba_flex_debug'
> /home/chenggh/L4/l4/tool/dice/src/CCORBAParser.cpp:245: undefined reference to 
> `RestoreBufferCorba(void*, bool)'
> /home/chenggh/L4/l4/tool/dice/src/CCORBAParser.cpp:257: undefined reference to 
> `GetCurrentBufferCorba()'
> /home/chenggh/L4/l4/tool/dice/src/CCORBAParser.cpp:241: undefined reference to 
> `corbain'
> /home/chenggh/L4/l4/tool/dice/src/CCORBAParser.cpp:242: undefined reference to 
> `StartBufferCorba(_IO_FILE*)'
> /home/chenggh/L4/l4/tool/dice/src/CCORBAParser.cpp:236: undefined reference to 
> `corba_flex_debug'
> CPreProcess.o: In function `CPreProcess::PreProcess(std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> >, bool, bool)':
> /home/chenggh/L4/l4/tool/dice/src/CPreProcess.cpp:343: undefined reference to 
> `incin'
> /home/chenggh/L4/l4/tool/dice/src/CPreProcess.cpp:344: undefined reference to 
> `incout'
> /home/chenggh/L4/l4/tool/dice/src/CPreProcess.cpp:348: undefined reference to 
> `inclex()'
> ./src/parser/dce/libdce.a(parser.o): In function `dceparse()':
> /home/chenggh/L4/l4/tool/dice/src/parser/dce/parser.yy:3577: undefined 
> reference to `dcelex(yystype*)'
> ./src/parser/dce/libdce.a(parser.o): In function `dceparse()':
> /usr/share/bison/bison.simple:574: undefined reference to `dcelex(yystype*)'
> ./src/parser/corba/libcorba.a(parser.o): In function `corbaparse()':
> /usr/share/bison/bison.simple:574: undefined reference to `corbalex(yystype*)'
> ./src/parser/gcc-c/libg
> 
> 
> 	I checked the old mailist again. Somebody else encountered the same problem 
> with me. I use g++3.3.6 and bison 1.35. My host OS is ubuntu 5.10. How to fix 
> it?
This looks like something went wrong when translating the scanner.ll
files. Could you please check which version of flex/lex you have
installed (check the LEX variable in dice/src/parser/dce/Makefile to
know which tool is actually used). I am using the '-P' option of
flex/lex to replace the "yy" prefix for global symbols and functions
(such as yylex()). Seems like this option is not working...

Another problem could be an automake incompatibility. Could you please
check the dice/src/parser/dce/Makefile if it contains a LEXCOMPILE
variable (which should be set to LEXCOMPILE=$(LEX) $(LFLAGS)
$(AM_LFLAGS))? (The AM_LFLAGS variable contains the -P option.)

HTH, Ron.
- --
Mit freundlichen Gruessen / with regards
ra3 @ inf.tu-dresden.de
http://os.inf.tu-dresden.de/~ra3/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFE5MOqvCdOf9l7ipgRAqoZAJ95n5HubwoCz/EsXY8uZ5QCPH1n7gCaArdk
6PQD1w8NrlgHiXp4ep40xdI=
=l1MY
-----END PGP SIGNATURE-----




More information about the l4-hackers mailing list