Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9903 - korelib fails ebuild on gcc3
Summary: korelib fails ebuild on gcc3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-29 09:14 UTC by John E. Vincent
Modified: 2003-02-04 19:42 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 John E. Vincent 2002-10-29 09:14:13 UTC
I noticed this on RedHat8 as well, which also uses the new gcc. I don't think
TheKompany has update korelib yet. The only reason I need it is so I can try and
build Kapital. Otherwise I'll have to continue to reboot into RedHat 7.3 when I
need to update my finances.

Here's the emerge error. It has to do with hash_map:

In file included from kore.cpp:2:
../include/kore/metainfo.h:10:20: hash_map: No such file or directory
gmake[2]: *** [kore.lo] Error 1
gmake[2]: Leaving directory `/var/tmp/portage/korelib-1.0/work/korelib-1.0/kore'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/var/tmp/portage/korelib-1.0/work/korelib-1.0'
gmake: *** [all] Error 2

Under RedHat I believe I modified the include in metainfo.h to point to
<backward/hash_map> but Kapital didn't compile even after that. Needless to say
if Korelib is functioning right, I can play around with building Kapital under
gcc3 again.

Maybe it should be masked until it builds under 1.4?
Comment 1 John E. Vincent 2002-10-29 09:30:55 UTC
It looks like I was able to get it to build by making the following changes:

in kore/metainfo.cpp:

#if (__GNUC__<3)
#include <hash_map>
#else
#include <backward/hash_map.h>
#endif

You'll also have to make those changes to
kore/componenttrader.cpp,include/kore/metainfo.h

Of course gcc complains all the way to the bank about using depricated headers
but it works.

I guess I need to also complain to thekompany about it as well since I am a
paying customer and redhat 8 is out as well.
Comment 2 Hannes Mehnert (RETIRED) gentoo-dev 2002-11-03 06:02:17 UTC
fixed & committed, thanks for submission.