- Compiles on amd64 - Requires a patch for ebuild to add -fPIC to CFLAGS - added using append-flags - package is a library (.so) no need to patch Makefile ? - With patch wma's play through BMP without any issues
ADD ~amd64 KEYWORD
Created attachment 67549 [details, diff] -fPIC ebuild patch
sandbox ~ # emerge --info Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12-gentoo-r8 x86_64) ================================================================= System uname: 2.6.12-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.12.0_pre8 dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe -fweb -frename-registers -ftracer -fomit-frame-pointer -funroll-loops" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe -fweb -frename-registers -ftracer -fomit-frame-pointer -funroll-loops -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache cvs distcc distlocks keeptemp keepwork noauto noclean notitles sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlay/local" SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage" USE="amd64 7zip X alsa arj artworkextra avi bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo cdr crypt cscope cups curl deb dvd dvdr eds encode esd firefox foomaticdb fortran gaim gd gif glitz gmail gnome gnomeoffice gpm gstreamer gtk gtk2 gzip hal imagemagick imap imlib ipv6 jpeg ldap lha lzw lzw-tiff mad mp3 mpeg ncurses new-login nls nptl nptlonly nvidia ogg oggvorbis opengl pam pdflib perl png pop3 quicktime rar readline rpm samba sdl sensord spell ssl svg tar tcltk tcpd tiff truetype truetype-fonts type1-fonts usb userlocales vorbis xchatdccserver xchattext xml2 xpm xv zip zlib zoo userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
- Been told that method I used to fix issue is incorrect. - patching Makefile - will add new patch soon
Created attachment 67555 [details, diff] bmp-wma-0.1.1-r1.ebuild.patch ebuild patch to epatch makefile.in
Created attachment 67556 [details, diff] files/bmp-wma_libffwma_fpic.patch the makefile patch adds -fPIC to libffwma
Created attachment 67559 [details, diff] files/bmp-wma_libffwma_fpic.patch [fixed] now only patches the *.o that fail without -fPIC
sorry, fails here: make[3]: Entering directory `/var/tmp/portage/bmp-wma-0.1.1-r1/work/bmp-wma-0.1.1/src/libffwma' if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -ggdb3 -pipe -march=opteron -MT libffwma_a-allcodecs.o -MD -MP -MF ".deps/libffwma_a-allcodecs.Tpo" -c -o libffwma_a-allcodecs.o `test -f 'allcodecs.c' || echo './'`allcodecs.c; \ then mv -f ".deps/libffwma_a-allcodecs.Tpo" ".deps/libffwma_a-allcodecs.Po"; else rm -f ".deps/libffwma_a-allcodecs.Tpo"; exit 1; fi if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -ggdb3 -pipe -march=opteron -MT libffwma_a-allformats.o -MD -MP -MF ".deps/libffwma_a-allformats.Tpo" -c -o libffwma_a-allformats.o `test -f 'allformats.c' || echo './'`allformats.c; \ then mv -f ".deps/libffwma_a-allformats.Tpo" ".deps/libffwma_a-allformats.Po"; else rm -f ".deps/libffwma_a-allformats.Tpo"; exit 1; fi if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -ggdb3 -pipe -march=opteron -MT libffwma_a-asf.o -MD -MP -MF ".deps/libffwma_a-asf.Tpo" -c -o libffwma_a-asf.o `test -f 'asf.c' || echo './'`asf.c; \ then mv -f ".deps/libffwma_a-asf.Tpo" ".deps/libffwma_a-asf.Po"; else rm -f ".deps/libffwma_a-asf.Tpo"; exit 1; fi In file included from avcodec.h:15, from avformat.h:17, from allformats.c:20: common.h:72: error: array type has incomplete element type common.h:74: error: array type has incomplete element type make[3]: *** [libffwma_a-allformats.o] Error 1 make[3]: *** Waiting for unfinished jobs.... In file included from avcodec.h:15, from avformat.h:17, from asf.c:20: common.h:72: error: array type has incomplete element type common.h:74: error: array type has incomplete element type asf.c: In function 'get_wav_header': asf.c:249: warning: assignment makes pointer from integer without a cast asf.c: In function 'asf_read_header': asf.c:401: warning: assignment makes pointer from integer without a cast asf.c:491: warning: cast to pointer from integer of different size asf.c:497: warning: cast to pointer from integer of different size asf.c: In function 'asf_read_packet': asf.c:777: warning: pointer targets in assignment differ in signedness make[3]: *** [libffwma_a-asf.o] Error 1 In file included from avcodec.h:15, from allcodecs.c:22: common.h:72: error: array type has incomplete element type common.h:74: error: array type has incomplete element type make[3]: *** [libffwma_a-allcodecs.o] Error 1 make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/bmp-wma-0.1.1-r1/work/bmp-wma-0.1.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/bmp-wma-0.1.1-r1/work/bmp-wma-0.1.1' make: *** [all] Error 2 >>> Test phase [enabled]: media-plugins/bmp-wma-0.1.1-r1 >>> Test phase [check]: media-plugins/bmp-wma-0.1.1-r1 Making check in src make[1]: Entering directory `/var/tmp/portage/bmp-wma-0.1.1-r1/work/bmp-wma-0.1.1/src' Making check in libffwma make[2]: Entering directory `/var/tmp/portage/bmp-wma-0.1.1-r1/work/bmp-wma-0.1.1/src/libffwma' if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -ggdb3 -pipe -march=opteron -MT libffwma_a-allcodecs.o -MD -MP -MF ".deps/libffwma_a-allcodecs.Tpo" -c -o libffwma_a-allcodecs.o `test -f 'allcodecs.c' || echo './'`allcodecs.c; \ then mv -f ".deps/libffwma_a-allcodecs.Tpo" ".deps/libffwma_a-allcodecs.Po"; else rm -f ".deps/libffwma_a-allcodecs.Tpo"; exit 1; fi In file included from avcodec.h:15, from allcodecs.c:22: common.h:72: error: array type has incomplete element type common.h:74: error: array type has incomplete element type make[2]: *** [libffwma_a-allcodecs.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/bmp-wma-0.1.1-r1/work/bmp-wma-0.1.1/src/libffwma' make[1]: *** [check-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/bmp-wma-0.1.1-r1/work/bmp-wma-0.1.1/src' make: *** [check-recursive] Error 1 !!! ERROR: media-plugins/bmp-wma-0.1.1-r1 failed. !!! Function src_test, Line 566, Exitcode 0 Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-4.0.1, glibc-2.3.5-r0, 2.6.12-gentoo-r6 x86_64) ================================================================= System uname: 2.6.12-gentoo-r6 x86_64 AMD Opteron(tm) Processor 242 Gentoo Base System version 1.6.12 ccache version 2.4 [enabled] dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.8 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16-r1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-ggdb3 -pipe -march=opteron" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /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/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-ggdb3 -pipe -march=opteron" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg ccache cvs debug distlocks keeptemp keepwork maketest multilib-strict nostrip sandbox sfperms test" GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo" MAKEOPTS="-j3" 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 aalib acpi alsa avi berkdb bitmap-fonts cdr crypt cups curl debug dvd eds encode esd fam fat flac font-server foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 hfs imagemagick imlib immqt-bc ipv6 jack java jfs jp2 jpeg kde ldap libwww lirc lzw lzw-tiff mad motif mozilla mp3 mpeg mysql ncurses network nls nptl nptlonly ntfs odbc ogg oggvorbis opengl pam pdflib perl png python qt quicktime readline reiserfs ruby sdl slang spell ssl svg tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb userlocales utf8 vorbis xfs xml xml2 xmms xpm xrandr xv zlib userland_GNU kernel_linux elibc_glibc"Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
- fails on FEATURES=test - should still be allowed to go to testing
when only .so-files are built, using append-flags -fPIC is okay.. keyworded testing, thanks