Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118413 - sys-fs/raidtools-1.00.3-r6 compilation fails on hardened
Summary: sys-fs/raidtools-1.00.3-r6 compilation fails on hardened
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-09 07:27 UTC by Gabe Martin-Dempesy
Modified: 2007-02-11 09:37 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gabe Martin-Dempesy 2006-01-09 07:27:26 UTC
When compiling raidtools during installation on stage3-amd64-2005.1-r1.tar.bz2

x86_64-pc-linux-gnu-gcc -o raidstart raidstart.o parser.o raidlib.o version.o raid_io.o scsi.o reconfiguration.o rrc_common.o rrc_raid0.o rrc_raid5.o rrc_single.o -Wl,-Bstatic -lpopt -Wl,-Bdynamic
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libpopt.a(popt.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libpopt.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [raidstart] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: sys-fs/raidtools-1.00.3-r6 failed.
!!! Function src_compile, Line 566, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.



My emerge --info is as follows:
Portage 2.0.53 (hardened/amd64, gcc-3.4.4, glibc-2.3.5-r2, 2.6.12-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
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.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 x86"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.chem.wisc.edu/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="amd64 apache2 bzip2 crypt expat gpm hardened hardenedphp jpeg justify mpm-prefork mysql ncurses nls nptl pam pcre perl pic png python readline sendfile sftplogging ssl symlink tcpd udev userlocales utf8 vchroot zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 SpanKY gentoo-dev 2006-01-09 16:15:03 UTC
use a vanilla toolchain and it'll work fine
Comment 2 Aiko Barz 2006-07-03 04:56:02 UTC
Since I wasn't able to recompile gcc with USE="-hardened -pic", I tried sys-fs/mdadm, which may be one more solution to this problem.
Comment 3 Gabe Martin-Dempesy 2006-07-03 08:40:34 UTC
(In reply to comment #2)
> Since I wasn't able to recompile gcc with USE="-hardened -pic", I tried
> sys-fs/mdadm, which may be one more solution to this problem.
> 

You don't have to recompile gcc to a non-hardened version to remove those features.  Use `gcc-config` and you can re-select the particular version of gcc, recompile with the vanilla version, and then switch back.
Comment 4 SpanKY gentoo-dev 2007-02-11 09:37:52 UTC
package has been masked and will be punted; use mdadm