Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 146543

Summary: xine-lib and Nvidia xvmc detetion won't work with --as-needed
Product: Gentoo Linux Reporter: Prakash Punnoor <prakashp>
Component: New packagesAssignee: Diego Elio Pettenò (RETIRED) <flameeyes>
Status: VERIFIED CANTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 129413    

Description Prakash Punnoor 2006-09-06 05:33:42 UTC
config.log will show something like:

configure:33674: x86_64-pc-linux-gnu-gcc -o conftest -DENABLE_IPV6 -march=k8 -msse3 -O2 -pipe -frename-registers -ffunction-sections   -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both conftest.c -lXvMCNVIDIA -L//usr/lib64 -lXvMC  -L/usr/lib64  -lSM -lICE -lXv -lXext   >&5
//usr/lib64/libXvMCNVIDIA.so: undefined reference to `XvMCQueryExtension'
//usr/lib64/libXvMCNVIDIA.so: undefined reference to `_xvmc_destroy_subpicture'
//usr/lib64/libXvMCNVIDIA.so: undefined reference to `_xvmc_destroy_surface'
//usr/lib64/libXvMCNVIDIA.so: undefined referconfigure:33674: x86_64-pc-linux-gnu-gcc -o conftest -DENABLE_IPV6 -march=k8 -msse3 -O2 -pipe -frename-registers -ffunction-sections   -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both conftest.c -lXvMCNVIDIA -L//usr/lib64 -lXvMC  -L/usr/lib64  -lSM -lICE -lXv -lXext   >&5
//usr/lib64/libXvMCNVIDIA.so: undefined reference to `XvMCQueryExtension'
//usr/lib64/libXvMCNVIDIA.so: undefined reference to `_xvmc_destroy_subpicture'
//usr/lib64/libXvMCNVIDIA.so: undefined reference to `_xvmc_destroy_surface'
//usr/lib64/libXvMCNVIDIA.so: undefined reference to `_xvmc_create_surface'
//usr/lib64/libXvMCNVIDIA.so: undefined reference to `_xvmc_create_subpicture'
//usr/lib64/libXvMCNVIDIA.so: undefined reference to `_xvmc_create_context'
//usr/lib64/libXvMCNVIDIA.so: undefined reference to `_xvmc_destroy_context'
//usr/lib64/libXvMCNVIDIA.so: undefined reference to `XvGetPortAttribute'
ence to `_xvmc_create_surface'
//usr/lib64/libXvMCNVIDIA.so: undefined reference to `_xvmc_create_subpicture'
//usr/lib64/libXvMCNVIDIA.so: undefined reference to `_xvmc_create_context'
//usr/lib64/libXvMCNVIDIA.so: undefined reference to `_xvmc_destroy_context'
//usr/lib64/libXvMCNVIDIA.so: undefined reference to `XvGetPortAttribute'


If I take out --as-needed detection is fine. As I understood gentoo supports --as-needed now, so I report this bug.


portage 2.1.1_rc1-r4 (default-linux/amd64/2006.1/desktop, gcc-4.1.1/amd64-vanilla, glibc-2.4.90.20060805-r1, 2.6.18-rc6 x86_64)
=================================================================
System uname: 2.6.18-rc6 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Gentoo Base System version 1.12.4
Last Sync: Wed, 06 Sep 2006 05:50:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17.50.0.3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -msse3 -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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -msse3 -O2 -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache digest distlocks parallel-fetch sandbox sfperms splitdebug"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ "
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both"
LINGUAS="de"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/toolchain_overlay /usr/lportage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 3dnow-ext X a52 aac alsa avi berkdb bitmap-fonts bzip2 cairo cdr cli crypt css cups cvs dlloader dri dts dvd dvdr eds elibc_glibc emboss encode fam ffmpeg fftw firefox flac gif gimp glitz gpm graphviz gtk gtk2 hashstyle input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog java jikes jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kernel_linux libg++ linguas_de mad mikmod mmx-ext mp3 mp4 mpeg musepack ncurses nls nptl nptlonly nsplugin ogg opengl oss pam pcre pdf pdflib perl png ppds pppd python qt3 qt4 quicktime readline reflection samba sdl session smp sndfile speex spell spl ssl subversion svg tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_dummy video_cards_none video_cards_nv video_cards_nvidia video_cards_vesa video_cards_vga vorbis x264 xcomposite xml xorg xv xvid xvmc zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Prakash Punnoor 2006-09-06 05:35:15 UTC
Aarg, I pressed middle button twice, so here it is again:

configure:33674: x86_64-pc-linux-gnu-gcc -o conftest -DENABLE_IPV6 -march=k8 -msse3 -O2 -pipe -frename-registers -ffunction-sections   -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both conftest.c -lXvMCNVIDIA -L//usr/lib64 -lXvMC  -L/usr/lib64  -lSM -lICE -lXv -lXext   >&5
//usr/lib64/libXvMCNVIDIA.so: undefined reference to `XvMCQueryExtension'
//usr/lib64/libXvMCNVIDIA.so: undefined reference to `_xvmc_destroy_subpicture'
//usr/lib64/libXvMCNVIDIA.so: undefined reference to `_xvmc_destroy_surface'
//usr/lib64/libXvMCNVIDIA.so: undefined reference to `_xvmc_create_surface'
//usr/lib64/libXvMCNVIDIA.so: undefined reference to `_xvmc_create_subpicture'
//usr/lib64/libXvMCNVIDIA.so: undefined reference to `_xvmc_create_context'
//usr/lib64/libXvMCNVIDIA.so: undefined reference to `_xvmc_destroy_context'
//usr/lib64/libXvMCNVIDIA.so: undefined reference to `XvGetPortAttribute'
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-09-06 06:01:55 UTC
I cannot really fix libXvMCNVIDIA ... use XvMCW, or report to NVIDIA itself.
Comment 3 Prakash Punnoor 2006-09-06 06:25:53 UTC
Hmm, but why does mplayer happily compile with --as-needed and Nvidia xvmc support?
Comment 4 Prakash Punnoor 2006-09-06 06:27:16 UTC
Oh, and perhaps you want to filter --as-needed if nvidia and xvmc are enabled?
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-09-06 06:29:37 UTC
No I don't want to filter it. libXvMCNVIDIA is broken, not my problem nor fault. I think mplayer simply don't respect --as-needed, so it's not my problem either.