Hi!
I have installed Ice-1.2.0 on a RedHat 9.0 machine at school. It uses gcc version 3.3, bison 1.875 and flex 2.5.4.
For installation I used the recepie given by beranrd toward the end on this threadsince it contains some details not present in the INSTALL.LINUX file.http://www.zeroc.com/vbulletin/showthread.php?s=&threadid=263
(The python2 allTests.py failed with the now faimous "function not defined" message even though I set LD_ASSUME_KERNEL to 2.4.1)
After installing Ice-1.2.0 I uncommented the flex and bison rules in Make.rules and I added a single line of comment to the Grammar.y file, just like thismake fails now with the following message:// blah, blahMy guess is that the make rules for flex and/or bison in Make.rules are not 100% correct for bison 1.875 (Grammar.cpp which ships with Ice-1.2.0 is generated by bison 1.35).making all in Slice
make[2]: Entering directory `/ifi/tyrfing/a09/catalin/hfag/prog/ice120/src/Slice'
rm -f Grammar.h Grammar.cpp
bison -dvt Grammar.y
mv Grammar.tab.c Grammar.cpp
mv Grammar.tab.h Grammar.h
rm -f Grammar.output
c++ -c -I.. -I../../include -DSLICE_API_EXPORTS -g -ftemplate-depth-128 -fPIC -Wall -D_REENTRANT Scanner.cpp
c++ -c -I.. -I../../include -DSLICE_API_EXPORTS -g -ftemplate-depth-128 -fPIC -Wall -D_REENTRANT Grammar.cpp
Grammar.tab.c: In function `int slice_parse()':
Grammar.tab.c:3305: error: parse error before `goto'
make[2]: *** [Grammar.o] Error 1
make[2]: Leaving directory `/ifi/tyrfing/a09/catalin/hfag/prog/ice120/src/Slice'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/ifi/tyrfing/a09/catalin/hfag/prog/ice120/src'
make: *** [all] Error 1
Comparing file sizes and file dates in the src/Slice directory (I made a copy of the original directory to begin with) I can see that 4 files have been regenerated. What suprises me most is the difference in size between the original and the new files.
Original
Grammar.y 40136
Grammar.cpp 90299
Grammar.h 1099
Scanner.o 502952
New
Grammar.y 40151
Grammar.cpp 95788 +5K
Grammar.h 3319 +2K
Scanner.o 504036
I will try to attach the two Grammar.* files, if anyone cares to look into this.
Sugestions for how to rebuild the Slice parser are very welcome.
Thanks a lot,
Catalin

Reply With Quote