Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79919 - commonc++ fails to compile with GCC >= 3.4: patch included
Summary: commonc++ fails to compile with GCC >= 3.4: patch included
Status: RESOLVED DUPLICATE of bug 115707
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Todd Heim (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-28 23:15 UTC by Benjamin Collins
Modified: 2005-12-16 18:49 UTC (History)
1 user (show)

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


Attachments
Fixes problems in cmdoptns.cpp:352-353 for GCC 3.4 (CommonC++-cmdoptns.diff,751 bytes, patch)
2005-01-28 23:17 UTC, Benjamin Collins
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Collins 2005-01-28 23:15:59 UTC
I apologize for this, but I've already lost the output of the failed compile.  The error occurred on lines 352 and 353 of cmdoptns.cpp.  GCC complained that it's illegal to have an array index right after a type-id with parens around it, so I have a patch here that fixes that for GCC 3.4.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Benjamin Collins 2005-01-28 23:17:50 UTC
Created attachment 49798 [details, diff]
Fixes problems in cmdoptns.cpp:352-353 for GCC 3.4
Comment 2 Tyler Montbriand 2005-04-25 14:26:24 UTC
This bug still exists, can someone put that patch in portage please?
Comment 3 Tyler Montbriand 2005-04-25 14:27:29 UTC
Here's the output of the failed compile:

c++ -DHAVE_CONFIG_H -I. -I. -I. -I../src -I/usr/include/libxml2 -I../src -O2 -m64 -mmmx -momit-leaf-frame-pointer -pipe -ffast-math -fmerge-all-constants -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -c cmdoptns.cpp  -fPIC -DPIC -o .libs/cmdoptns.lo
cmdoptns.cpp: In constructor `ost::CommandOptionParse_impl::CommandOptionParse_impl(int, char**, char*, ost::CommandOption*)':
cmdoptns.cpp:352: error: array bound forbidden after parenthesized type-id
cmdoptns.cpp:352: note: try removing the parentheses around the type-id
cmdoptns.cpp:353: error: array bound forbidden after parenthesized type-id
cmdoptns.cpp:353: note: try removing the parentheses around the type-id
make: *** [cmdoptns.lo] Error 1
 
!!! ERROR: dev-libs/commonc++-1.9.7-r4 failed.
!!! Function src_compile, Line 34, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
Comment 4 Jasper Bryant-Greene 2005-09-22 15:30:01 UTC
Seriously guys, this bug was reported in JANUARY with a successful patch to fix
it. It is now SEPTEMBER and the patch has not been included into portage. WTF?
Comment 5 vltg0903 2005-12-15 14:56:12 UTC
Just had the same problem, grep'ed through /usr/portage for commonc++, and guess
what: _Nothing_ depends on commonc++-*. Just move on to commoncpp2, it compiles
cleanly with gcc3.4. I will file a bug and ask for removal of commonc++-*. Cheers!
Comment 6 Ciaran McCreesh 2005-12-16 18:49:14 UTC
Ok, we'll take this over to bug 115707.

*** This bug has been marked as a duplicate of 115707 ***