media-libs/xine-lib-1_rc8 failed to emerge Here is output of error... gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../include -I../../include -I../../src -I../../src/xine-engine -I../../src/xine-engine -I../../src/xine-utils -I../../src/input -I../../src/input -I../../lib -I/usr/X11R6/include -DXINE_COMPILE -I../../src/video_out/vidix -I../../src/video_out/vidix -O3 -fomit-frame-pointer -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -ffast-math -funroll-loops -finline-functions -Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -DENABLE_IPV6 -O2 -pipe -fno-web -funit-at-a-time -ffunction-sections -MT video_out_xv.lo -MD -MP -MF .deps/video_out_xv.Tpo -c video_out_xv.c -fPIC -DPIC -o .libs/video_out_xv.o /bin/sh ../../libtool-nofpic --mode=link gcc -I/usr/X11R6/include -DXINE_COMPILE -I../../src/video_out/vidix -I../../src/video_out/vidix -O3 -fomit-frame-pointer -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -ffast-math -funroll-loops -finline-functions-Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -DENABLE_IPV6 -O2 -pipe -fno-web -funit-at-a-time -ffunction-sections -o xineplug_vo_out_xv.la -rpath /usr/lib/xine/plugins/1.0.0 -avoid-version -module x11osd.lo deinterlace.lo alphablend.lo video_out_xv.lo /usr/X11R6/lib/libXv.a -L/usr/X11R6/lib64 -lXinerama-lXext ../../src/xine-engine/libxine.la *** Warning: Linking the shared library xineplug_vo_out_xv.la against the *** static library /usr/X11R6/lib/libXv.a is not portable! libtool-nofpic: link: warning: `/usr/lib64/libfreetype.la' seems to be moved gcc -shared .libs/x11osd.o .libs/deinterlace.o .libs/alphablend.o .libs/video_out_xv.o -Wl,--rpath -Wl,/var/tmp/portage/xine-lib-1_rc8/work/xine-lib-1-rc8/src/xine-engine/.libs -Wl,--rpath -Wl,/usr/lib -L/usr/lib64 /usr/X11R6/lib/libXv.a -L/usr/X11R6/lib64 -lXinerama -lXext ../../src/xine-engine/.libs/libxine.so -Wl,-soname -Wl,xineplug_vo_out_xv.so -o .libs/xineplug_vo_out_xv.so /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/X11R6/lib/libXv.a(Xv.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC /usr/X11R6/lib/libXv.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[4]: *** [xineplug_vo_out_xv.la] Error 1 make[4]: Leaving directory `/var/tmp/portage/xine-lib-1_rc8/work/xine-lib-1-rc8/src/video_out' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/xine-lib-1_rc8/work/xine-lib-1-rc8/src/video_out' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/xine-lib-1_rc8/work/xine-lib-1-rc8/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/xine-lib-1_rc8/work/xine-lib-1-rc8' make: *** [all] Error 2 !!! ERROR: media-libs/xine-lib-1_rc8 failed. !!! Function src_compile, Line 153, Exitcode 2 !!! Parallel make failed !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: I just emerge the package. Actual Results: Packages fails to emerge. Expected Results: Packages emerges without problem. Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r9 x86_64) ================================================================= System uname: 2.6.9-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.4.16 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/piolyte/ebuilds" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X acpi alsa berkdb bitmap-fonts crypt f77 fam flac fortran gif gpm gtk ipv6 jp2 jpeg kde lzw lzw-tiff multilib ncurses nls opengloss pam perl png python qt readline ssl tcpd tiff truetype usb userlocales xml2 xpm xrandr xv zlib"
Created attachment 46506 [details, diff] libXv_linking.patch This patch file shows the fix I use.
Not sure if this goes in here, but I am also having a problem with XV. It fails as follows: . . . checking if gcc supports "-mpreferred-stack-boundary=2" flags... yes checking if gcc supports "-fno-strict-aliasing" flags... yes checking if gcc supports "-fschedule-insns2" flags... yes checking if gcc supports "-mwide-multiply" flags... no checking if gcc supports "-falign-functions=4" flags... yes checking if gcc supports "-falign-loops=4" flags... yes checking if gcc supports "-falign-jumps=4" flags... yes checking if gcc supports "-fno-omit-frame-pointer" flags... yes checking if gcc supports "-fno-inline-functions" flags... yes checking if gcc supports "-fno-rename-registers" flags... yes checking if gcc supports "-fprofile-arcs" flags... yes checking if gcc supports "-fbranch-probabilities" flags... yes checking for sane -Wpointer-arith... yes checking if gcc supports "-Wall" flags... yes checking __attribute__ ((aligned ())) support... 64 checking if gcc supports "-mtune=i386" flags... no checking if gcc supports "-mcpu=i386" flags... yes checking if gcc supports "-mcpu=athlon" flags... yes tail: `-1' option is obsolete; use `-n 1' since this will be removed in the future checking for sgmltools... no checking for fig2dev... no checking dependency style of ... none configure: error: conditional "HAVE_XV" was never defined. Usually this means the macro was only invoked conditionally. !!! ERROR: media-libs/xine-lib-1_rc8 failed. !!! Function econf, Line 449, Exitcode 1 !!! econf failed !!! If you need support, post the topmost build error, NOT this status message. emerge info Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r10 i686) ================================================================= System uname: 2.6.9-gentoo-r10 i686 Intel(R) Pentium(R) M processor 1400MHz Gentoo Base System version 1.6.8 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /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="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" DISTDIR="/packages" FEATURES="autoaddcvs autoconfig candy ccache distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://gg3.net/pub/linux/gentoo/ ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://192.168.0.40/gentoo-portage" USE="X a52 aalib acpi alsa anthy apm arts avi berkdb bitmap-fonts cdr cjk crypt cups dri dvd encode esd f77 fam flac foomaticdb fortran freetype gdbm gif glx gphoto2 gpm gtk gtk2 guile imagemagick imlib ipv6 java jpeg junit kde libg++ libwww live mad mailwrapper mikmod mjpeg mmx motif mp3 mpeg nas ncurses nls nptl oggvorbis opengl oss pam pcmcia pda pdflib perl png python qt quicktime readline samba scanner sdl slang speex spell sse ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts usb v4l x86 xml xml2 xmms xv xvid zlib"
Patch seems to of fixed it for me. Only my AMD64 needed it, my centrino laptop didn't. xine still dosnt work and the bug is just sitting in the xine bugzilla(http://sourceforge.net/tracker/index.php?func=detail&aid=1043792&group_id=9655&atid=109655)
Actually, can you guys add -fPIC to your CFLAGS and try. This may just be an amd64 "This needs PIC or else" situation. That said, I'd like to make sure before I step ahead on this.
I tried adding -fPIC in my CFLAGS but it didn't help. However, the patch given above fixed the problem.
Oops, forgot to mention I'm on amd64 ! Portage 2.0.51-r8 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r10 x86_64) ================================================================= System uname: 2.6.9-gentoo-r10 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Oct 31 2004, 11:18:19)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-march=athlon64 -O2 -pipe -fweb -frename-registers -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe -fweb -frename-registers -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildsyspkg ccache distlocks sandbox" GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.inode.at/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X acpi alsa audiofile avi bitmap-fonts cdr crypt cups dedicated dga divx4linux dvd dvdr f77 flac gif gtk gtk2 imagemagick imlib ipv6 java jp2 jpeg lzw lzw-tiff mad matroska mpeg multilib ncurses nls nptl oggvorbis opengl oss pam perl png python readline samba sdl slang ssl svg tcpd tiff truetype unicode usb userlocales wmf xml xml2 xpm xrandr xv xvid zlib
Just doing the pre-filing search and found this myself. Also on AMD64. Also tried adding -fPIC to CFLAGS, still fails. I ALSO tried with and without USE=pic, just in case, seeing the warning about that not in IUSE, to see if it affected the problem. It doesn't. I have NOT yet tried the patch JS attached, but I DID see something about STATIC linking in the post-config summary, and of course see the static/dynamic warning in the output, so suspect that's the problem and the patch should fix it. Note that in addition to the dynamic/static stuff, there's potentially some strange 32/64 bit stuff going on. The error mentions "R_X86_64_32", which to my untrained eye looks like it might be trying to link 32 and 64-bit code. Perhaps a multi-lib issue (it's enabled here)? That might explain the -fPIC error as well, and why adding -fPIC to CFLAGS doesn't help. Abbreviated emerge info: Portage 2.0.51-r8 (default-linux/amd64/2004.3/lib64, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-rc3 x86_64) ccache version 2.3 [enabled] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2
The error in comment #2: "configure: error: conditional "HAVE_XV" was never defined. Usually this means the macro was only invoked conditionally." .. also happens on my Centrino x86 laptop.
I'm getting the same problem as comment #2 and comment #8 on an Athlon XP. checking dependency style of ... none configure: error: conditional "HAVE_XV" was never defined. Usually this means the macro was only invoked conditionally. Emerge info- Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-rc3-ck1 i686) ================================================================= System uname: 2.6.10-rc3-ck1 i686 AMD Athlon(tm) Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Dec 18 2004, 01:21:49)] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9, 1.8.5-r2, 1.9.3 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://192.168.0.1/gentoo-portage" USE="3dnow X acpi alsa avi berkdb bitmap-fonts cdr crypt cups dga divx4linux dvd encode esd f77 fam flac foomaticdb fortran gdbm geoip gif gimpprint gnome gpm gstreamer gtk gtk2 imagemagick imlib joystick jpeg libg++ libwww mad mikmod mmx mng motif mozilla mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png ppds python quicktime readline sdl slang spell sse ssl svg svga tcpd theora tiff truetype unicode usb wmf x86 xml2 xmms xprint xv xvid zlib linguas_en_GB"
This looks like xorg was compiled statically. Thus said, I'm going to attach the conditional to a new static USE variable if the compiliation I'm doing right now doesn't fail. If it does, a static USE variable will be made (once again :P) and I'll link the shared xv configure option to it.
Ok, works fine on my system so, commited and resolving as fixed.
Ah....... How can I put this? My problem was on an x86 system, so to get it to compile I had to change this line in the ebuild FROM: use amd64 \ && myconf="${myconf} --with-xv-path=/usr/X11R6/$(get_libdir) TO: use x86 \ && myconf="${myconf} --with-xv-path=/usr/X11R6/$(get_libdir)
xorg-x11 version?
hist:2 cmnd:2 jobs:0 # qpkg -q xorg-x11 x11-base/xorg-x11-6.8.1.901 * Maybe my problem had something to do with using the latest version of xorg-x11. Anyway, after making the change in the ebuild to "x86" it compiled and ran OK.