# emerge -pv ogre [ebuild U ] dev-games/ogre-1.0.5 [1.0.3_p1] +cegui +cg +devil +doc -double-precision -gtk +openexr +opengl +sdl -threads 0 kB #emerge ogre [...] i686-pc-linux-gnu-g++ -shared -nostdlib /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../crti.o /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/crtbeginS.o .libs/OgreGLATIFSInit.o .libs/OgreGLEngineDll.o .libs/OgreGLGpuProgram.o .libs/OgreGLGpuNvparseProgram.o .libs/OgreGLGpuProgramManager.o .libs/OgreGLRenderSystem.o .libs/OgreGLSupport.o .libs/OgreGLTexture.o .libs/OgreGLTextureManager.o .libs/OgreGLHardwareBufferManager.o .libs/OgreGLHardwareIndexBuffer.o .libs/OgreGLHardwareOcclusionQuery.o .libs/OgreGLHardwareVertexBuffer.o .libs/OgreGLHardwarePixelBuffer.o .libs/OgreGLDefaultHardwareBufferManager.o .libs/OgreGLContext.o .libs/OgreGLPixelFormat.o .libs/glprocs.o -Wl,--whole-archive ../../../RenderSystems/GL/src/SDL/.libs/libsupport.a ../../../RenderSystems/GL/src/GLSL/src/.libs/libGLSL.a ../../../RenderSystems/GL/src/nvparse/.libs/libnvparse.a ../../../RenderSystems/GL/src/atifs/src/.libs/libatifs.a -Wl,--no-whole-archive -Wl,--rpath -Wl,/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6 -Wl,--rpath -Wl,/usr/lib/opengl/nvidia/lib -L/var/tmp/portage/ogre-1.0.5/work/ogrenew/OgreMain/src -L/var/tmp/portage/devil-1.6.7/work/DevIL-1.6.7/src-IL/src -L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib -L/usr/lib -lpng -L/var/tmp/portage/ogre-1.0.5/image//usr/lib -ltiff -L/var/tmp/portage/ogre-1.0.5/image//usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6 -L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6 -L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../../i686-pc-linux-gnu/lib -lmng -ljpeg -llcms -lXext -lggi -lgii -lgg -lcaca -lslang -lX11 -lncurses -L/var/tmp/portage/ogre-1.0.5/image//usr/lib/opengl/nvidia/lib -L/usr/lib/opengl/nvidia/lib -lGL -lGLU -lOgreMain -L//usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6 -lCg -lILU -lIL -lz -ldl -lSDL -lpthread -L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/crtendS.o /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../crtn.o -march=athlon-xp -mfpmath=sse -Wl,-z -Wl,defs -Wl,-soname -Wl,RenderSystem_GL.so -o .libs/RenderSystem_GL.so .libs/OgreGLTexture.o: In function `Ogre::GLTexture::~GLTexture [not-in-charge]()': OgreGLTexture.cpp:(.text+0x122): undefined reference to `Ogre::Texture::freeInternalResources()' .libs/OgreGLTexture.o: In function `Ogre::GLTexture::~GLTexture [in-charge]()': OgreGLTexture.cpp:(.text+0x23a): undefined reference to `Ogre::Texture::freeInternalResources()' .libs/OgreGLTexture.o: In function `Ogre::GLTexture::~GLTexture [in-charge deleting]()': OgreGLTexture.cpp:(.text+0x352): undefined reference to `Ogre::Texture::freeInternalResources()' .libs/OgreGLTexture.o:(.gnu.linkonce.d._ZTVN4Ogre9GLTextureE+0x24): undefined reference to `Ogre::Texture::unloadImpl()' .libs/OgreGLTexture.o:(.gnu.linkonce.d._ZTVN4Ogre9GLTextureE+0x78): undefined reference to `Ogre::Texture::createInternalResources()' .libs/OgreGLTexture.o:(.gnu.linkonce.d._ZTVN4Ogre9GLTextureE+0x7c): undefined reference to `Ogre::Texture::freeInternalResources()' collect2: ld returned 1 exit status libtool: install: error: relink `RenderSystem_GL.la' with the above command before installing it make[5]: *** [install-pkglibLTLIBRARIES] Error 1 make[5]: Leaving directory `/var/tmp/portage/ogre-1.0.5/work/ogrenew/RenderSystems/GL/src' make[4]: *** [install-am] Error 2 make[4]: Leaving directory `/var/tmp/portage/ogre-1.0.5/work/ogrenew/RenderSystems/GL/src' make[3]: *** [install-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/ogre-1.0.5/work/ogrenew/RenderSystems/GL/src' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/ogre-1.0.5/work/ogrenew/RenderSystems/GL' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/ogre-1.0.5/work/ogrenew/RenderSystems' make: *** [install-recursive] Error 1 !!! ERROR: dev-games/ogre-1.0.5 failed. !!! Function src_install, Line 92, Exitcode 2 !!! make install failed !!! If you need support, post the topmost build error, NOT this status message.
reopen with the output from "emerge --info"
# emerge --info Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.14-gentoo-r2 i686) ================================================================= System uname: 2.6.14-gentoo-r2 i686 AMD Athlon(TM) XP 2000+ Gentoo Base System version 1.6.13 dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 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 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -pipe -march=athlon-xp -fforce-addr -fomit-frame-pointer -falign-functions=4 -mfpmath=sse" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /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/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-Os -pipe -march=athlon-xp -fforce-addr -fomit-frame-pointer -falign-functions=4 -mfpmath=sse" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig digest distcc distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.gg3.net/ ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO http://gentoo.channelx.biz/ http://ftp.isu.edu.tw/pub/Linux/Gentoo ftp://ftp.isu.edu.tw/pub/Linux/Gentoo" LANG="it_IT@euro" LINGUAS="it" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex X X509 a52 aac aaca52 aad adns alsa apache2 audiofile avi berkdb bitmap-fonts bzip2 cdparanoia cdr chroot crypt cscope cups curl dga dts dvb dvd dvdr dvdread emboss encode erandom ethereal exif expat fam fbcon ffmpeg firefox flac flash foomaticdb fortran freetype gd gdbm ggi gif gimpprint ginac glut gmp gnutls gpm gtk gtk2 guile hal idn imagemagick imap imlib innodb ipv6 jack java javascript jikes jpeg junit kerberos krb4 lcms ldap libcaca libg++ libwww live lzo mad matroska mcal md5sum memlimit mhash mikmod ming mmx mmxext mng motif mozilla mozsvg mp3 mpeg mpi mysql ncurses network nls nptl nvidia odbc offensive ogg oggvorbis opengl pam parse-clocks pcre pdflib perl pic plotutils png ppds prelude python qhull qt quicktime readline real recode rtc samba scanner sdl skey slang slp sndfile snmp socks5 speex spell sqlite sse ssl stream svg tcltk tcpd tetex tga theora tiff truetype truetype-fonts type1-fonts udev usb v4l v4l2 vcd vorbis win32codecs wmf wxwindows xine xml xml2 xosd xprint xv xvid xvmc yaz zlib linguas_it userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS
Try it with CFLAGS="-pipe" CXXFLAGS="-pipe"
*** This bug has been marked as a duplicate of 105394 ***