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

Bug 80020

Summary: media-libs/libjsw-1.5.4 works on amd64 with -fPIC modification
Product: Gentoo Linux Reporter: Clint Silvester <clint>
Component: New packagesAssignee: AMD64 Project <amd64>
Status: RESOLVED INVALID    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Clint Silvester 2005-01-29 19:59:36 UTC
media-libs/libjsw-1.5.4 needs -fPIC added to CFLAGS to work on amd64 ~amd64

I added 

        if use amd64; then
                CFLAGS="$CFLAGS -fPIC"
        fi
before
        emake CFLAGS="${CFLAGS}" || die "main build failed"

in the ebuild, added ~amd64 to the KEYWORDS and it worked

Please add those changes to allow amd64 users to able to emerge this.

emerge info:
Portage 2.0.51-r8 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 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.6.7
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Dec  2 2004, 06:10:12)]
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-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
ASFLAGS=""
AUTOCLEAN="yes"
CBUILD=""
CFLAGS="-march=k8 -O2 -pipe -fweb -ftracer -ffast-math -fomit-frame-pointer"
CHOST="x86_64-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/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"
CTARGET=""
CXXFLAGS="-march=k8 -O2 -pipe -fweb -ftracer -ffast-math -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.ccccom.com http://128.213.5.34/gentoo/ http://mirror.datapipe.net/gentoo"
LANG=""
LC_ALL=""
LDFLAGS=""
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 aalib acpi alsa berkdb bitmap-fonts blender-game cdr crypt cups djbfft dvd dvdr encode f77 fam flac font-server foomaticdb fortran gdbm gnutls gstreamer gtk2 guile imagemagick imlib jack java jp2 jpeg libwww lzw lzw-tiff mad mikmod mmap motif multilib mysql nas ncurses nls no_wxgtk1 nptl oggvorbis opengl oss pam perl png python readline samba sdl slang spell sqlite ssl svg tcltk tcpdtetex theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales xine xml xml2 xpm xprint xrandr xv xvid xvmc zlib"

Reproducible: Always
Steps to Reproduce:
1. add -fPIC to CFLAGS
2. add ~amd64 to KEYWORDS
3. emerge libjsw
Comment 1 Simon Stelling (RETIRED) gentoo-dev 2005-03-25 14:59:19 UTC
this is a workaround but not an acceptable long-term solution, please provide a patch or so