Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 67365 - sys-apps/x86info can't compile with -fPIC
Summary: sys-apps/x86info can't compile with -fPIC
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-13 04:14 UTC by Csaba Tóth
Modified: 2005-05-02 23:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
The correct ebuild script (x86info-1.12b.ebuild,1.84 KB, text/plain)
2004-10-13 04:17 UTC, Csaba Tóth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Csaba Tóth 2004-10-13 04:14:23 UTC
x86info can't compile with -fPIC option
i make a modified ebuild script, with this it will be ok
i think, this is just a workaround, the better way is to correct the source code (i can't do this)

Reproducible: Always
Steps to Reproduce:
1. USE="pic" emerge sys-apps/x86info
2.
3.




emerge info:

Portage 2.0.51_rc9 (hardened/x86/2.6, gcc-3.4.2, glibc-2.3.4.20041006-r0,
2.6.6-1.435.2.3 i686)
=================================================================
System uname: 2.6.6-1.435.2.3 i686 Intel(R) Celeron(R) CPU 2.60GHz
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -mtune=pentium4 -mfpmath=sse -fPIC -pipe
-fomit-frame-pointer -msse -mmmx"
CHOST="i686-pc-linux-gnu"
COMPILER=""
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="-O2 -march=pentium4 -mtune=pentium4 -mfpmath=sse -fPIC -pipe
-fomit-frame-pointer -msse -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks fixpackages sandbox"
GENTOO_MIRRORS="http://gentoo.mirror.icd.hu/ ftp://ftp.easynet.nl/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="aac accounting acl acpi acpi4linux apache2 apm bcmath berkdb bzlib calendar
cdparanoia cdr cdrom clamac clamav crypt ctype curl curlwrappers dba dbase dbm
devfs devfs26 dio dlloader dv dvb dvd dvdr dvdread encode erandom exif f77 fam
freetype fs ftp gcj gd gdbm geoip gif gmp gnutls guile hal hardened iconv image
imagemagick imap inifile innodb intl java javascript jikes jpeg jpeg2k junit
ldap lesstif libg++ libwww live lm_sensors lzo lzw lzw-tiff mcal memlimit mhash
mime mmap mmx mmx2 mng mp3 mpeg mpeg4 mysql ncurses nethack network nls nptl
ntlm objc odbc oggvorbis openal openssh pam parse-clocks pcap pcntl pcre pdf
pdflib perl pic pie png pnp posix postgres pthreads pwdb python readline recode
samba sasl shared sharedmem simplexml skey slang smime sms snmp sockets spell
squid sse ssl svg sysvipc tcltktcpd threads tiff transcode truetype type1
unicode usb userlocales virus-scan wmf x86 xfs xinetd xml xml2 xmlrpc xpm zlib"
Comment 1 Csaba Tóth 2004-10-13 04:17:15 UTC
Created attachment 41702 [details]
The correct ebuild script

The modifications:

- inherit eurils
+ inherit eurils flag-o-matic

  scr_compile() {
+	filter-flags "-fPIC"
	emake ....
}
Comment 2 SpanKY gentoo-dev 2004-10-13 16:38:21 UTC
added a patch to fix the assembly code and support PIC
Comment 3 Csaba Tóth 2005-05-02 23:51:20 UTC
Oh, i forget to close this.