I tried to build ogre 1.6.1 but it fails with a strange error. libtool: relink: x86_64-pc-linux-gnu-g++ -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/crtbeginS.o .libs/OgreGLEngineDll.o .libs/OgreGLPlugin.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/OgreGLRenderTexture.o .libs/OgreGLRenderToVertexBuffer.o .libs/OgreGLFBORenderTexture.o .libs/OgreGLPBRenderTexture.o .libs/OgreGLFBOMultiRenderTarget.o .libs/OgreGLFrameBufferObject.o .libs/glew.o -Wl,--whole-archive ../../../RenderSystems/GL/src/GLX/.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 -L/var/tmp/portage/dev-games/ogre-1.6.1/work/ogre/OgreMain/src -L/usr/lib64 -L/var/tmp/portage/dev-games/ogre-1.6.1/image//usr/lib -L/usr/lib -lGLU -L/var/tmp/portage/dev-games/ogre-1.6.1/image//usr/lib64 -lXrandr -lXxf86vm -lOgreMain -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../lib64 -lzzip -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lgio-2.0 -lpangocairo-1.0 -lpangoft2-1.0 -lcairo -lpixman-1 -lglitz-glx -lGL -lXmu -lXt -lSM -lICE -luuid -lXi -lXext -lglitz -lxcb-render-util -lxcb-render -lXrender -lpango-1.0 -lfontconfig -lfreetype -lexpat -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lX11 -lxcb-xlib -lxcb -lXau -lXdmcp -lXaw -lboost_thread -lILU -lIL -ltiff -lpng12 -lmng -llcms -ljasper -ljpeg -lIlmImf -lImath -lHalf -lIlmThread -lIex -lpthread -lz -ldl -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../lib64/crtn.o -march=k8 -Wl,-z -Wl,defs -Wl,-soname -Wl,RenderSystem_GL.so -o .libs/RenderSystem_GL.so .libs/OgreGLEngineDll.o: In function `Ogre::NedAllocPolicy::allocateBytes(unsigned long, char const*, int, char const*)': /var/tmp/portage/dev-games/ogre-1.6.1/work/ogre/RenderSystems/GL/src/../../../OgreMain/include/OgreMemoryNedAlloc.h:65: undefined reference to `Ogre::NedAllocImpl::allocBytes(unsigned long, char const*, int, char const*)' .libs/OgreGLEngineDll.o: In function `Ogre::NedAllocPolicy::deallocateBytes(void*)': /var/tmp/portage/dev-games/ogre-1.6.1/work/ogre/RenderSystems/GL/src/../../../OgreMain/include/OgreMemoryNedAlloc.h:69: undefined reference to `Ogre::NedAllocImpl::deallocBytes(void*)' .libs/OgreGLPlugin.o: In function `Ogre::NedAllocPolicy::allocateBytes(unsigned long, char const*, int, char const*)': /var/tmp/portage/dev-games/ogre-1.6.1/work/ogre/RenderSystems/GL/src/../../../OgreMain/include/OgreMemoryNedAlloc.h:65: undefined reference to `Ogre::NedAllocImpl::allocBytes(unsigned long, char const*, int, char const*)' Many more of the NedAllocImpl refs fail. This was done using: USE="-openexr -cg" LDFLAGS="" emerge ogre to reduce the amount of stuff built. So luse looks like USE="cegui devil gtk threads -cg -doc -double-precision -examples -openexr" Reproducible: Always Portage 2.2_rc23 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r1, 2.6.28-gentoo x86_64) ================================================================= System uname: Linux-2.6.28-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4400+-with-glibc2.2.5 Timestamp of tree: Sat, 14 Feb 2009 09:00:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p48-r1 dev-java/java-config: 1.3.7-r1, 2.1.7 dev-lang/python: 2.5.4-r2 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.2-r1 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.3-r1 sys-apps/sandbox: 1.3.7 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19.1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.28-r1 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -ggdb -march=k8" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -pipe -ggdb -march=k8" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.cambrium.nl/pub/os/linux/gentoo/ ftp://mirror.muntinternet.net/pub/gentoo/ http://de-mirror.org/distro/gentoo/ http://mirror.netcologne.de/gentoo/ http://mirror.muntinternet.net/pub/gentoo/" LANG="de_DE.UTF-8" LC_ALL="de_DE.UTF-8" LDFLAGS="-Wl,--as-needed" LINGUAS="de pl en es es_ES en_US" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlays/x11 /usr/local/overlays/sunrise /usr/local/overlays/java-overlay /usr/local/overlays/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext 3ds 7zip S3TC X a52 aac acct ace acl acpi ads aim alsa amd64 ao apache2 applet archive artworkextra aspell aspnet aspnet2 aspnetedit async audiofile avahi berkdb binary-drivers bluetooth bonjour boost branding bzip2 cairo cal3d ccache cdaudio cdda cddb cdio cdparanoia cdr cdrom cegui cg chm cli colordiff consolekit cpio cpufreq cracklib crypt cscope css csv ctype ctyps cups curl daap dbus devhelp device-mapper devil dhcp dia dirac disk-partition divx dri dts dvd dvdnav dvdr dvdread dvi editor eds emboss encode eog epiphany esd evo exif exiv2 expat fam fat fbcon ffmpeg filter firefox flac flash fontconfig foomaticdb freeimage freesound ftp fuse gadu galago games gconf gd gdbm gedit geoip gif gimp git glade glib glitz glsa glut gmedia gnome gnome-keyring gnome-print gnomecanvas gphoto2 gpm gps grub gstreamer gtk gtkhtml guile gzip h323 hal hddtemp howl-compat hvm iconv icq id3 id3tag imagemagick imap imlib inherit-graph inkjar inotify iproute2 ipv6 irc irrlicht isdnlog jai java java5 java6 javamail javascript jmf joystick jpeg jpeg2k json kdehiddenvisibility kerberos lame latex lcms ldap libburn libnotify libsamplerate lm_sensors lzma lzo mad maps math matroska mdnsresponder-compat midi mikmod mjpeg mmap mmx mmxext mng mod module modules mono mouse mp2 mp3 mp4 mpeg mpeg2 mplayer msn mtp mudflap multilib mysql mysqli nautilus ncurses nemesi neon network networking nls nptl nptlonly nsplugin ntfs obex ode ogg ogre openal openexr opengl openmp openstreetmap openvpn pam pccts pcre pdf pdo perl php pidgin pmount png policykit portage postscript ppds pppd prediction pulseaudio python quicktime radio rar rdesktop readline reflection regex reiser4 reiserfs remote resolvconf rhythmbox rtc samba scanner schroedinger sdl server session smp sndfile sound sourceview speech speechd spell spl sql sqlite sqlite3 srt sse sse2 ssl startup-notification subversion suexec svg svgz sysfs syslog t1lib taglib tagwriting tcpd teletext tex tga theora threads tidy tiff tokenizer totem truetype unicode unzip upnp urandom usb userlocales v4l v4l2 valgrind vcd vde verse vim-syntax visualization vnc vncviewer vorbis webdav wma wmf wmp wxwindows x264 xattr xcb xcomposite xml xmlreader xmlrpc xmlwriter xmp xorg xpm xrandr xscreensaver xsl xulrunner xv xvid yahoo zeroconf zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon casio_qv" ELIBC="glibc" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de pl en es es_ES en_US" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
This duplicate of bug #258319
No, this is not a duplicate of bug #258319 as the other bug is about gcc 4.3 and openexr issues while this is about linker issues.
I got similar errors when I compiled by hand. After I deleted libOgreMain from the previous install, the compile worked without these errors. So I suspect the build for 1.6.1 may be linking newly compiled libraries against a previously installed libOgreMain (without nedmalloc), rather than the libOgreMain that it just built.
Interesting point. Will try that when I get home.
(In reply to comment #3) I can confirm. After purge ogre-1.4.9, new version was build w/o any errors.
Indeed interesting. The error also occured with ogre-1.6.2, but after unmerging ogre-1.4.9 all compiles fine.
I can't reproduce this. I wonder if it's parallel-make related. If you're still able to reproduce this, can you try with MAKEOPTS=-j1 please?
Should be fixed now.
I don't know, what has been changed (version 1.6.4 is still the latest in the portage tree). However, the problem remains.