Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57641 - commonc++2-1.1.0 doesn't compile on gcc-3.4.0
Summary: commonc++2-1.1.0 doesn't compile on gcc-3.4.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 44833
Blocks:
  Show dependency tree
 
Reported: 2004-07-19 14:35 UTC by Simone Piunno
Modified: 2004-10-23 14:57 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simone Piunno 2004-07-19 14:35:45 UTC
This is how it breaks:

 g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -I/usr/include/libxml2 -I../include -O2 -pipe -mtune=k8 -D_GNU_SOURCE -MT thread.lo -MD -MP -MF .deps/thread.Tpo -c thread.cpp  -fPIC -DPIC -o .libs/thread.o
In file included from thread.cpp:43:
../include/cc++/thread.h:917: error: using typedef-name `ost::Thread::Cancel' after `enum'
../include/cc++/thread.h:917: error: ISO C++ forbids declaration of `_cancel' with no type
../include/cc++/thread.h: In member function `ost::Thread::Cancel ost::Thread::getCancel()':
../include/cc++/thread.h:1195: error: invalid conversion from `int' to `ost::Thread::Cancel'

The fix is really trivial:

--- commoncpp2-1.1.0.orig/include/cc++/thread.h 2004-07-19 23:29:08.534855632 +0200
+++ commoncpp2-1.1.0/include/cc++/thread.h      2004-07-19 23:40:13.105825488 +0200
@@ -914,7 +914,7 @@
        static Thread* _main;

        Thread *_parent;
-       enum Cancel _cancel;
+       Cancel _cancel;
        Semaphore *_start;

Reproducible: Always
Steps to Reproduce:
1. emerge commonc++2
2.
3.




this bug has been already reported upstream, SF #994107.
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2004-10-23 14:57:34 UTC
commoncpp2-1.2.5 is now in portage