Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124916 - dev-util/cccc-3.0_pre84 fails (gcc4)
Summary: dev-util/cccc-3.0_pre84 fails (gcc4)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 128109
  Show dependency tree
 
Reported: 2006-03-04 02:08 UTC by Patrizio Bassi
Modified: 2006-04-14 23:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
3.1.4 ebuild (cccc-3.1.4.ebuild,773 bytes, text/plain)
2006-03-04 09:35 UTC, Patrizio Bassi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrizio Bassi 2006-03-04 02:08:35 UTC
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.
Comment 1 Patrizio Bassi 2006-03-04 02:14:47 UTC
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 :)
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-03-04 02:22:59 UTC
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... :/
Comment 3 Patrizio Bassi 2006-03-04 09:33:47 UTC
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.

:)



Comment 4 Patrizio Bassi 2006-03-04 09:35:27 UTC
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
Comment 5 Patrizio Bassi 2006-03-27 23:41:05 UTC
jacub can you commit the version bump?

i had to put that in overlay not to get downgraded

thanks
Comment 6 SpanKY gentoo-dev 2006-04-14 23:53:44 UTC
3.1.4 now in portage