Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 230838 - dev-games/ogre-1.4.9 Cg check failed with --as-needed
Summary: dev-games/ogre-1.4.9 Cg check failed with --as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-05 11:21 UTC by Artem Semendyaev
Modified: 2008-09-23 18:30 UTC (History)
2 users (show)

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


Attachments
config.log (config.log,89.31 KB, text/plain)
2008-07-05 11:23 UTC, Artem Semendyaev
Details
modified ogre-1.4.9-as-needed.patch (ogre-1.4.9-as-needed.patch,437 bytes, text/plain)
2008-07-05 11:24 UTC, Artem Semendyaev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Artem Semendyaev 2008-07-05 11:21:57 UTC
Cg check failed when using gcc 4.3.1 with this error:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/../../../../lib64/libCg.so: undefined reference to `__cxa_guard_release' 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/../../../../lib64/libCg.so: undefined reference to `__cxa_guard_acquire'

But it compiles fine if I add "-lstdc++" to AC_CHECK_LIB arguments in acinclude.m4

Reproducible: Always




Portage 2.2_rc1 (default/linux/amd64/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.24-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.24-gentoo-r5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4400+-with-glibc2.2.5
Timestamp of tree: Fri, 04 Jul 2008 22:30:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r5
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r2
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /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/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LDFLAGS=""
LINGUAS="ru en"
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/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl acpi alsa amd64 apm arts berkdb bluetooth bzip2 cdb cddb cdr cli cracklib crypt cups cxx dbus dedicated djvu dri dv dvb dvd dvdr dvdread encode examples exif ffmpeg flac fontconfig fortran ftp fuse gdbm gif gimp gpm hal hddtemp iconv icq imagemagick imap isdnlog jabber javascript jingle joystick jpeg jpeg2k kde lame libcaca libnotify logitech-mouse lua mad matroska matrox midi mmx mng modplug mp3 mpeg mplayer mudflap multilib multilibs ncurses nls nptl nptlonly ogg opengl openmp oscar oss pam pcre pda perl png pppd python qt4 quicktime radius raw rdesktop readline reflection rss samba scanner sdl session speex spell spl sse sse2 ssl startup-notification subversion svg taglib tcpd theora threads tiff truetype unicode usb userlocales v4l v4l2 vcd vnc vorbis wavpack wmf wxwindows x264 xattr xcomposite xine xml xorg xpm xscreensaver xv xvid zlib" ALSA_CARDS="ice1724" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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" ELIBC="glibc" INITNG_PLUGINS="also bash_launcher chdir chroot conflict cpout critical ctrlaltdel daemon_clean debug_commands envparser find fmon fstat history idleprobe initctl interactive iparser last limit lockfile logfile netdev netprobe ngc4 ngcs nge pause provide reload renice rlparser simple_launcher stcmd stdout suid syncron syslog sysreq unneeded usplash" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

nvidia-cg-toolkit version - 2.0.0015
Comment 1 Artem Semendyaev 2008-07-05 11:23:06 UTC
Created attachment 159601 [details]
config.log
Comment 2 Artem Semendyaev 2008-07-05 11:24:23 UTC
Created attachment 159603 [details]
modified ogre-1.4.9-as-needed.patch

modified ogre-1.4.9-as-needed.patch to include -lstdc++ flag in Cg test
Comment 3 David Sveningsson 2008-07-06 22:03:43 UTC
Confirming that the bug is present and the attached patch works.
Comment 4 Van Aarde Krynauw 2008-07-25 23:20:56 UTC
Another confirmation that this works. 

Thanks for the patch! :)

Comment 5 Tolga Dalman 2008-08-24 13:37:37 UTC
I think this problems also hits me. Is there any progress with this patch ?
Comment 6 Phillip Scholz 2008-09-07 20:15:18 UTC
works for me, too - but is still not in portage tree :-(

needed to do this change manually to the patch file:

# diff /usr/portage/dev-games/ogre/files/ogre-1.4.9-as-needed.patch-backup /usr/portage/dev-games/ogre/files/ogre-1.4.9-as-needed.patch
8c8
< +     ,-Xlinker --no-as-needed)
---
> +     ,-Xlinker --no-as-needed -lstdc++)
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2008-09-23 18:30:28 UTC
in portage.