Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 258319 - dev-games/ogre-1.6.1 fails to compile with gcc 4.3
Summary: dev-games/ogre-1.6.1 fails to compile with gcc 4.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-09 11:55 UTC by Franz Trischberger
Modified: 2009-04-12 01:52 UTC (History)
1 user (show)

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


Attachments
paludis --info (paludis_info,10.51 KB, text/plain)
2009-02-09 21:20 UTC, Franz Trischberger
Details
emerge --info (emerge_info,7.25 KB, text/plain)
2009-02-09 21:24 UTC, Franz Trischberger
Details
Same error (build.log,486.54 KB, text/plain)
2009-02-11 08:45 UTC, Roman Karshiev
Details
emerge --info (emerge--info.txt,6.48 KB, text/plain)
2009-02-11 08:46 UTC, Roman Karshiev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Franz Trischberger 2009-02-09 11:55:29 UTC
I get the following error when trying to compile ogre:

###
OgreEXRCodecDll.cpp: In function 'void Ogre::dllStartPlugin()':                                                                                                      
OgreEXRCodecDll.cpp:37: error: cannot allocate an object of abstract type 'Ogre::EXRCodec'                                                                           
../../../PlugIns/EXRCodec/include/OgreEXRCodec.h:40: note:   because the following virtual functions are pure within 'Ogre::EXRCodec':                               
../../../OgreMain/include/OgreCodec.h:153: note:        virtual Ogre::String Ogre::Codec::magicNumberToFileExt(const char*, size_t) const                            
make[3]: *** [OgreEXRCodecDll.lo] Error 1                                                                                                                            
make[3]: *** Waiting for unfinished jobs....                                                                                                                         
make[3]: Leaving directory `/var/tmp/paludis/dev-games-ogre-1.6.1/work/ogre/PlugIns/EXRCodec/src'
###

This is how I tried to install it:

* dev-games/ogre [U 1.4.9 -> 1.6.1]
    cegui cg devil doc double-precision examples gtk openexr threads build_options: split strip

I think it is an upstream issue (not implemented a pure virtual function).

Reproducible: Always
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2009-02-09 19:19:26 UTC
reopen with your emerge --info output
Comment 2 Franz Trischberger 2009-02-09 21:20:48 UTC
Created attachment 181487 [details]
paludis --info

Th eproblem is, tha Ogre::Codec defines a pure virtual function

		virtual String magicNumberToFileExt(const char *magicNumberPtr, size_t maxbytes) const = 0;

in OgreCodec.h, line 153.
And neither Ogre::ImageCodec, norOgre::EXRCodec implement this.
So in OgreEXRCodecDll.cpp line 37, when they try to instantiate a new object, this MUST fail...

mEXRCodec = new EXRCodec;
Comment 3 Franz Trischberger 2009-02-09 21:24:50 UTC
Created attachment 181488 [details]
emerge --info
Comment 4 Franz Trischberger 2009-02-09 21:25:27 UTC
Reopen with emerge --info
Comment 5 Roman Karshiev 2009-02-11 08:45:06 UTC
Created attachment 181611 [details]
Same error
Comment 6 Roman Karshiev 2009-02-11 08:46:01 UTC
Created attachment 181612 [details]
emerge --info
Comment 7 Renan T. Inácio 2009-02-15 18:37:32 UTC
It seems Ogre from 1.6.0 does not support the OpenEXR anymore, as EXR support is already provided in FreeImage: http://www.ogre3d.org/forums/viewtopic.php?f=2&t=45636

It compiles fine building with -openexr, but I didn't test for EXR capabilities.
Comment 8 Roman Karshiev 2009-02-17 11:19:48 UTC
> It compiles fine building with -openexr

Don't help to me :-/
Comment 9 Alexey Antipovsky 2009-03-01 21:00:17 UTC
(In reply to comment #8)

Try to unmerge any earlier version of Ogre fitst -- looks like problem is here
Comment 10 Roman Karshiev 2009-03-06 08:27:20 UTC
> Try to unmerge any earlier version of Ogre fitst

Do not help to me :(
Comment 11 basic 2009-03-09 14:02:39 UTC
afaik, the openexr code in ogre is no longer maintained, they use freeimage instead. Speaking of which, now that freeimage is no longer hardmasked, should the freeimage use flag be restored?
Comment 12 Michael Prager 2009-04-11 11:34:52 UTC
USE="-openexr freeimage" emerge ogre

works for me.
Comment 13 Mr. Bones. (RETIRED) gentoo-dev 2009-04-12 01:52:55 UTC
Try 1.6.2.