gcc4 problem PCCTS 1.33MR20 installation complete make[1]: Leaving directory `/var/tmp/portage/cccc-3.0_pre84/work/cccc-3.pre84/pccts' cd cccc ; make -f posixgcc.mak make[1]: Entering directory `/var/tmp/portage/cccc-3.0_pre84/work/cccc-3.pre84/cccc' ../pccts/bin/antlr -CC -k 2 -gd -ge -rl 5000 -w1 -e3 -ft Ctokens.h cccc.g Antlr parser generator Version 1.33MR20 1989-1999 ../pccts/bin/dlg -C2 -CC -cl CLexer parser.dlg dlg Version 1.33MR20 1989-1999 i686-pc-linux-gnu-g++ -c -I../pccts/h -x c++ cccc.cpp -occcc.o i686-pc-linux-gnu-g++ -c -I../pccts/h -x c++ CLexer.cpp -oCLexer.o i686-pc-linux-gnu-g++ -c -I../pccts/h -x c++ CParser.cpp -oCParser.o ../pccts/bin/antlr -CC -k 2 -gd -ge -rl 5000 -w1 -e3 -ft Jtokens.h java.g Antlr parser generator Version 1.33MR20 1989-1999 ../pccts/bin/dlg -C2 -CC -cl JLexer parser.dlg dlg Version 1.33MR20 1989-1999 i686-pc-linux-gnu-g++ -c -I../pccts/h -x c++ java.cpp -ojava.o i686-pc-linux-gnu-g++ -c -I../pccts/h -x c++ JLexer.cpp -oJLexer.o i686-pc-linux-gnu-g++ -c -I../pccts/h -x c++ JParser.cpp -oJParser.o i686-pc-linux-gnu-g++ -c -I../pccts/h -x c++ -DCC_INCLUDED -DJAVA_INCLUDED ccccmain.cc cccc_met.h:22: error: expected ‘,’ or ‘...’ before ‘&’ token cccc_met.h:22: error: ISO C++ forbids declaration of ‘CCCC_Metric’ with no type make[1]: *** [ccccmain.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/cccc-3.0_pre84/work/cccc-3.pre84/cccc' make: *** [cccc] Error 2 !!! ERROR: dev-util/cccc-3.0_pre84 failed. Call stack: ebuild.sh, line 1933: Called dyn_compile ebuild.sh, line 971: Called src_compile !!! (no error message) !!! If you need support, post the topmost build error, and the call stack if relevant.
after a fast investigation i found that adding class CCCC_Metric; at line 10 fixed that problem, but after i have: g++ -c -I../pccts/h -x c++ cccc_mem.cc -occcc_mem.o cccc_mem.h:20: error: ISO C++ forbids declaration of ‘CCCC_Module’ with no type cccc_mem.h:20: error: expected ‘;’ before ‘*’ token cccc_mem.h:24: error: ‘CCCC_Module’ has not been declared cccc_mem.cc: In constructor ‘CCCC_Member::CCCC_Member()’: cccc_mem.cc:12: error: class ‘CCCC_Member’ does not have any field named ‘parent’ cccc_mem.cc: In member function ‘int CCCC_Member::ToFile(std::ofstream&)’: cccc_mem.cc:52: error: ‘parent’ was not declared in this scope cccc_mem.cc: In member function ‘virtual std::string CCCC_Member::name(int) const’: cccc_mem.cc:90: error: ‘parent’ was not declared in this scope cccc_mem.cc: In member function ‘int CCCC_Member::FromFile(std::ifstream&)’: cccc_mem.cc:152: error: ‘parent’ was not declared in this scope make: *** [cccc_mem.o] Error 1 much work to do :)
There's version 3.1.4 out, it seems. Could you try that one? Otherwise, this lacks maintainer in Gentoo and has tons of upstream bugs (http://sourceforge.net/tracker/?atid=107763&group_id=7763&func=browse), so... :/
jacub the 3.1.4 version compiles and works with gcc 4 no need to add old patches. please commit to portage and close this bug when done. :)
Created attachment 81304 [details] 3.1.4 ebuild i added 3.1.4 version statically with no variable due to my previous error. just change that
jacub can you commit the version bump? i had to put that in overlay not to get downgraded thanks
3.1.4 now in portage