Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 358929 - app-emulation/open-vm-tools hardened profile and pic
Summary: app-emulation/open-vm-tools hardened profile and pic
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 348050
  Show dependency tree
 
Reported: 2011-03-14 18:57 UTC by Constantine Kardaris
Modified: 2011-10-23 18:13 UTC (History)
2 users (show)

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


Attachments
full build.log (build.log.gz,18.97 KB, text/plain)
2011-03-14 18:57 UTC, Constantine Kardaris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Constantine Kardaris 2011-03-14 18:57:07 UTC
Created attachment 265859 [details]
full build.log

app-emulation/open-vm-tools with pic flag disabled (system default since few days ago?) fails to compile with error

/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/libvmtools_la-vmtoolsConfig.o: relocation R_X86_64_PC32 against symbol `VMTools_WriteConfig' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libvmtools.la] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-emulation/open-vm-tools-0.0.20110223.368700/work/open-vm-tools-2011.02.23-368700/libvmtools'
make: *** [all-recursive] Error 1
emake failed
 * ERROR: app-emulation/open-vm-tools-0.0.20110223.368700 failed (compile phase):
 *   failed to compile
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 3143:  Called die
 * The specific snippet of code:
 *       emake || die "failed to compile"
 * 

emerge --info
Portage 2.2.0_alpha26 (hardened/linux/amd64, gcc-4.4.5, glibc-2.11.3-r0, 2.6.37.3-grsecurity x86_64)
=================================================================
System uname: Linux-2.6.37.3-grsecurity-x86_64-AMD_Athlon-tm-_II_X3_440_Processor-with-gentoo-2.0.1
Timestamp of tree: Mon, 14 Mar 2011 11:30:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r2, 3.1.3-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5, 4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
Repositories: gentoo local_overlay
Installed sets: 
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -floop-interchange -floop-strip-mine -floop-block"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -floop-interchange -floop-strip-mine -floop-block"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="files.gentoo.gr"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm gtk hardened iconv jpeg justify mmx modules mudflap multilib ncurses nptl nptlonly pam pcre pppd python qt3support readline session smp sse sse2 ssl sysfs tcpd truetype unicode urandom vim-pager xft xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev vmmouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 mips mips64 mips64el mipsel" QEMU_USER_TARGETS="i386 mips mipsel" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vmware" XFCE_PLUGINS="menu" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Vadim Kuznetsov (RETIRED) gentoo-dev 2011-03-16 20:59:55 UTC
(In reply to comment #0)
> app-emulation/open-vm-tools with pic flag disabled (system default since few
> days ago?) fails to compile with error

pic USE flag is turned on by default in the ebuild (IUSE="+pic").
How did you turn it off and why?
Comment 2 Constantine Kardaris 2011-03-16 21:49:08 UTC
as i see pic got disabled on hardened amd64 profile

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/profiles/hardened/linux/amd64/make.defaults?revision=1.5&view=markup

also found a tracker for that #348050

+pic should override profile?
Comment 3 Enno Gröper 2011-03-17 15:17:13 UTC
Same here. I'm using the hardened profile, too.

Current make.profile symlink:
  hardened/linux/amd64

pic USE-Flag got turned off due to profile update. No specific settings about pic in make.conf or package.use.
Comment 4 Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2011-03-17 17:57:31 UTC
Well  we have two options, I bet first one is enabling the use on the profile for that package (which should be done as this is a clear regression). Second one is trying to fix the textrel but i won't do that until I recover from this exam week and this will take at least a few days.

PS: although I'll notify Zorry you should mark the bug as a blocker of the tracker bug to make sure he is aware of this.
Comment 5 Magnus Granberg gentoo-dev 2011-03-18 00:35:03 UTC
Have added the pic use flag for this package in package.use for hardened/amd64 profile. Any know way we need the pic on should not configure take care of that?