I'm running an unstable amd64 system and recently ran into a problem compiling qvamps-0.96. The following error is given upon compiling which complains about the PIC flag needing to be set for compiling shared objects. I have attached a patch to the Makefile and my modified ebuild that worked for me (just made a quick diff...). This is a minor bug with a quick fix but I figured I'd help anyone else out and let the developers know as well. Thanks! x86_64-pc-linux-gnu-gcc -s -shared libdvdread_wrap.o -ldvdread -o LibDvdRead.so /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: libdvdread_wrap.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC libdvdread_wrap.o: could not read symbols: Bad value collect2: ld returned 1 exit status make: *** [LibDvdRead.so] Error 1 !!! ERROR: media-video/qvamps-0.96 failed. Call stack: ebuild.sh, line 1543: Called dyn_compile ebuild.sh, line 938: Called src_compile qvamps-0.96.ebuild, line 45: Called die emerge --info Portage 2.1.1_pre4-r1 (default-linux/amd64/2006.0, gcc-3.4.4/amd64-vanilla, glib c-2.4-r3, 2.6.17-gentoo-r4 x86_64) ================================================================= System uname: 2.6.17-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.12.4 app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] 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 sys-devel/gcc-config: 2.0.0_rc1 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 -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/shu tdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gcon f /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://ftp.wwc.edu/pub/mirrors/ftp.gentoo.org" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/d istfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="amd64 X aac aalib alsa apache2 avi berkdb bitmap-fonts cdr cli crypt cups d irectfb dlloader dri dvd dvdread eds emboss encode fbcon fbdev fglrx foomaticdb fortran gif gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog jack java jpeg kde k eyboard lzw lzw-tiff mouse mp3 mpeg mysql ncurses nls nptl nptlonly nsplugin nvi dia offensive opengl pam pcre pdflib perl php png pppd python qt qt3 qt4 quickti me readline reflection samba sdl session spell spl ssl tcpd tiff truetype truety pe-fonts type1-fonts unicode usb vorbis xanim xmms xorg xpm xv xvid zlib elibc_g libc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_vesa video_cards_fbcon video_cards_nv" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGU AS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 93270 [details] modified ebuild: qvamps-0.96.ebuild This is my modified ebuild that fixed this compile error
Created attachment 93271 [details, diff] patch for ebuild posted above (qvamps-0.96) This is the patch required by the above ebuild
Just to say this ebuild is working for me too.
I'm working on the new 0.98 release.
ok, new version in CVS. The -fPIC issue is solved there. But I will not fix the 0.96 version, because I want to remove it in a few days in favour to 0.98 which seems to work well and has some bug fixes.
(In reply to comment #5) > ok, new version in CVS. The -fPIC issue is solved there. But I will not fix the > 0.96 version, because I want to remove it in a few days in favour to 0.98 which > seems to work well and has some bug fixes. > New version 0.98 compiles just fine on my ~amd64 box. Thanks for getting on this! ~jtriley