Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135026 - ogre-1.0.7 fails to compile with gcc-4.1.1
Summary: ogre-1.0.7 fails to compile with gcc-4.1.1
Status: RESOLVED DUPLICATE of bug 105394
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-31 04:30 UTC by Frédéric COIFFIER
Modified: 2006-07-01 21:59 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 Frédéric COIFFIER 2006-05-31 04:30:57 UTC
The compilation of dev-games/ogre-1.0.7 fails with the following error :

.libs/OgreGLRenderSystem.o:(.data.rel.ro._ZTVN4Ogre14GLRenderSystemE[vtable for Ogre::GLRenderSystem]+0x20): undefined reference to `Ogre::RenderSystem::destroyHardwareOcclusionQuery(Ogre::HardwareOcclusionQuery*)'
.libs/OgreGLRenderSystem.o:(.data.rel.ro._ZTVN4Ogre14GLRenderSystemE[vtable for Ogre::GLRenderSystem]+0x16c): undefined reference to `Ogre::RenderSystem::addListener(Ogre::RenderSystem::Listener*)'
.libs/OgreGLRenderSystem.o:(.data.rel.ro._ZTVN4Ogre14GLRenderSystemE[vtable for Ogre::GLRenderSystem]+0x170): undefined reference to `Ogre::RenderSystem::removeListener(Ogre::RenderSystem::Listener*)'
.libs/OgreGLRenderSystem.o:(.data.rel.ro._ZTVN4Ogre14GLRenderSystemE[vtable for Ogre::GLRenderSystem]+0x178): undefined reference to `Ogre::RenderSystem::fireEvent(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const*)'
.libs/OgreGLTexture.o: In function `~GLTexture':
/var/tmp/portage/ogre-1.0.7/work/ogrenew/RenderSystems/GL/src/OgreGLTexture.cpp:77: undefined reference to `Ogre::Texture::freeInternalResources()'
/var/tmp/portage/ogre-1.0.7/work/ogrenew/RenderSystems/GL/src/OgreGLTexture.cpp:77: undefined reference to `Ogre::Texture::freeInternalResources()'
/var/tmp/portage/ogre-1.0.7/work/ogrenew/RenderSystems/GL/src/OgreGLTexture.cpp:77: undefined reference to `Ogre::Texture::freeInternalResources()'
.libs/OgreGLTexture.o:(.data.rel.ro._ZTVN4Ogre15GLRenderTextureE[vtable for Ogre::GLRenderTexture]+0xa0): undefined reference to `Ogre::RenderTarget::isPrimary() const'
.libs/OgreGLTexture.o:(.data.rel.ro._ZTVN4Ogre9GLTextureE[vtable for Ogre::GLTexture]+0x24): undefined reference to `Ogre::Texture::unloadImpl()'
.libs/OgreGLTexture.o:(.data.rel.ro._ZTVN4Ogre9GLTextureE[vtable for Ogre::GLTexture]+0x84): undefined reference to `Ogre::Texture::createInternalResources()'
.libs/OgreGLTexture.o:(.data.rel.ro._ZTVN4Ogre9GLTextureE[vtable for Ogre::GLTexture]+0x88): undefined reference to `Ogre::Texture::freeInternalResources()'
.libs/OgreGLHardwareBufferManager.o: In function `Ogre::HardwareBufferManager::_forceReleaseBufferCopies(Ogre::HardwareVertexBufferSharedPtr const&)':
../../../OgreMain/include/OgreHardwareBufferManager.h:270: undefined reference to `Ogre::HardwareBufferManager::_forceReleaseBufferCopies(Ogre::HardwareVertexBuffer*)'
../../../RenderSystems/GL/src/GLSL/src/.libs/libGLSL.a(OgreGLSLProgram.o): In function `~GLSLProgram':
/var/tmp/portage/ogre-1.0.7/work/ogrenew/RenderSystems/GL/src/GLSL/src/OgreGLSLProgram.cpp:53: undefined reference to `Ogre::HighLevelGpuProgram::unloadHighLevel()'
/var/tmp/portage/ogre-1.0.7/work/ogrenew/RenderSystems/GL/src/GLSL/src/OgreGLSLProgram.cpp:53: undefined reference to `Ogre::HighLevelGpuProgram::unloadHighLevel()'
/var/tmp/portage/ogre-1.0.7/work/ogrenew/RenderSystems/GL/src/GLSL/src/OgreGLSLProgram.cpp:53: undefined reference to `Ogre::HighLevelGpuProgram::unloadHighLevel()'
../../../RenderSystems/GL/src/GLSL/src/.libs/libGLSL.a(OgreGLSLProgram.o):(.data.rel.ro._ZTVN4Ogre11GLSLProgramE[vtable for Ogre::GLSLProgram]+0x80): undefined reference to `Ogre::HighLevelGpuProgram::loadHighLevel()'
../../../RenderSystems/GL/src/GLSL/src/.libs/libGLSL.a(OgreGLSLProgram.o):(.data.rel.ro._ZTVN4Ogre11GLSLProgramE[vtable for Ogre::GLSLProgram]+0x84): undefined reference to `Ogre::HighLevelGpuProgram::unloadHighLevel()'
collect2: ld returned 1 exit status
libtool: install: error: relink `RenderSystem_GL.la' with the above command before installing it
make[5]: *** [install-pkglibLTLIBRARIES] Erreur 1
make[5]: Leaving directory `/var/tmp/portage/ogre-1.0.7/work/ogrenew/RenderSystems/GL/src'
make[4]: *** [install-am] Erreur 2
make[4]: Leaving directory `/var/tmp/portage/ogre-1.0.7/work/ogrenew/RenderSystems/GL/src'
make[3]: *** [install-recursive] Erreur 1
make[3]: Leaving directory `/var/tmp/portage/ogre-1.0.7/work/ogrenew/RenderSystems/GL/src'
make[2]: *** [install-recursive] Erreur 1
make[2]: Leaving directory `/var/tmp/portage/ogre-1.0.7/work/ogrenew/RenderSystems/GL'
make[1]: *** [install-recursive] Erreur 1
make[1]: Leaving directory `/var/tmp/portage/ogre-1.0.7/work/ogrenew/RenderSystems'
make: *** [install-recursive] Erreur 1


Portage 2.0.54-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.3.6-r3, 2.6.16-gentoo-r3 i686)
=================================================================
System uname: 2.6.16-gentoo-r3 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: 2.0-r1
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -g2 -ggdb -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -g2 -ggdb -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LINGUAS="fr"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aalib acl acpi alsa apache2 apm arts asf audiofile avi berkdb bitmap-fonts bzip2 bzlib cdr cjk cli crypt cscope cups curl debug dga divx4linux dri dts dvd dvdread eds emboss encode ethereal exif expat fam ffmpeg fftw flac flash foomatic foomaticdb fortran ftp gd gdbm ggi gif gimpprint glut gmp gphoto2 gpm gstreamer gtk gtk2 idn imagemagick imlib ipv6 isdnlog jack java jpeg kde lcms ldap libg++ libwww lua mad mhash mikmod ming mmx mng motif mozsvg mp3 mpeg musicbrainz ncurses network nls nptl nsplugin nvidia ogg oggvorbis openal opengl oss pam pcre pdf pdflib perl php pic plotutils png povray pppd python qt quicktime readline recode reflection ruby samba scanner sdk sdl session slang speex spell spl splitdebug sqlite sse sse2 ssl subversion svg svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb v4l2 vorbis win32codecs wmf x86 xine xinerama xml xml2 xmms xorg xv xvid zlib linguas_fr userland_GNU kernel_linux elibc_glibc"
Unset:  CTARGET, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS
Comment 1 Sergey Belyashov 2006-06-30 10:38:37 UTC
This is not gcc bug. It is impossible to emerge ogre when previous one existing in system. Because at install phase OGRE try links with libraries installed in system.
Please see here http://bugs.gentoo.org/show_bug.cgi?id=138093 how I "solve" it.
Comment 2 SpanKY gentoo-dev 2006-07-01 21:59:40 UTC

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