Trying to emerge ogre-1.6.5 With both use flags "cg" and "devil" it's failed to configure. Emerges fine with cg OR devil. Reproducible: Always Steps to Reproduce: 1. add cg and devil to USE 2. emerge ogre 3. Actual Results: checking for ilInit in -lIL... yes checking for iluFlipImage in -lILU... yes checking for cgCreateProgram in -lCg... no configure: error: **************************************************************** * You do not have the nVidia Cg libraries installed. * * Go to http://developer.nvidia.com/object/cg_toolkit.html * * (Click on Cg_Linux.tar.gz). * * You can disable the building of Cg support by providing * * --disable-cg to this configure script but this is highly * * discouraged as this breaks many of the examples. * **************************************************************** Expected Results: emerged ogre engine solshark@solshark ~ $ emerge --info Portage 2.2_rc65 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11-r1, 2.6.32-zen6 x86_64) ================================================================= System uname: Linux-2.6.32-zen6-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5200+-with-gentoo-2.0.1 Timestamp of tree: Sun, 07 Mar 2010 10:00:03 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.1_p2 dev-java/java-config: 1.3.7-r1, 2.1.10 dev-lang/python: 2.6.4-r1, 3.1.1-r1 dev-python/pycrypto: 2.1.0 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.8.0-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.0-r1 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.65 sys-devel/automake: 1.7.9-r2, 1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1 sys-devel/binutils: 2.20-r1 sys-devel/gcc: 4.4.3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.32 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -mmmx -msse -msse2 -msse3 -mssse3 -m3dnow -mtune=k8-sse3 -march=k8-sse3 -mfpmath=sse -falign-functions=64 -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /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/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -mmmx -msse -msse2 -msse3 -mssse3 -m3dnow -mtune=k8-sse3 -march=k8-sse3 -mfpmath=sse -falign-functions=64 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests ccache distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="" LC_ALL="POSIX.UTF-8" LDFLAGS="-Wl,--as-needed" LINGUAS="ru en" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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="/var/lib/layman/kde /var/lib/layman/devnull /var/lib/layman/qting-edge /usr/local/portage/solshark" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext 7zip X a52 aac acl alsa amd64 artworkextra bash-completion berkdb bluetooth branding bzip2 cairo cdinstall cdparanoia cdr chardet clearcase cleartype cli cracklib crypt cups curl cxx dba dbus dri dv dvd dvdr dvdread encode exif extras fat fbcon fbsplash ffmpeg flac fortran ftp gdbm gif hal iconv icq imagemagick infopipe jpeg jpeg2k libnotify logrotate mailwrapper mime mmx mmxext modplug modules mozdevelop mp3 mpeg mudflap multilib musepack mysql ncurses nls nptl nptlonly ntfs nvidia ogg openexr opengl openmp optimized-qmake pam pcre pda perl pertty plasma png pppd python qt qt-copy qt4 rar readline reflection reiserfs samba scanner script sdl semantic-desktop session sharedmem skins slang smp sndfile soap spell spl sse sse2 ssl ssse3 startup-notification subversion svg sysfs tcpd threads tiff tools transparency truetype udev unicode usb utf8 v4l2 vcd vdpau verbose vhosts vim vim-pager vim-syntax vorbis wavpack wma wmf xcomposite xine xml xmldoclet xorg xosd xpm xsl xv xvid 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" NETBEANS_MODULES="webcommon nb harness ide" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 222589 [details] config.log
could you try again removing -Wl,--as-needed
Just tried and it works. configured/compiled fine without "-Wl,--as-needed"
Problem with --as-needed, changing bug subject
The problems seems to be the libCg.so : it needs pthread as you can see but doing readelf -s /opt/nvidia-cg-toolkit/lib/libCg.so | grep pthread but that library is not declared as a requireement readelf -d /opt/nvidia-cg-toolkit/lib/libCg.so | grep NEEDED
This was fixed back in 23 Sep 2008 for ogre-1.4.9 but for some reason the patch got dropped. + 01 Jul 2010; Samuli Suominen <ssuominen@gentoo.org> ogre-1.6.5.ebuild: + Apply ogre-1.4.9-as-needed.patch also to 1.6.5 wrt #308387 by Mik B. + Shvets. There is no other way of fixing this because the lib in question is binary-only nvidia propietary and we can't recompile & relink it against -lm and -lpthread.