Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281919 - app-emulation/xen-tools-3.4.1 don't compile on hardened
Summary: app-emulation/xen-tools-3.4.1 don't compile on hardened
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-18 14:32 UTC by David Roma
Modified: 2011-09-23 09:20 UTC (History)
4 users (show)

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


Attachments
build log (buildlog.txt,1.94 KB, text/plain)
2009-10-30 18:59 UTC, Fabiano Francesconi
Details
emerge --info (einfo.txt,3.40 KB, text/plain)
2009-10-30 18:59 UTC, Fabiano Francesconi
Details
emerge --info (einfo.txt,6.76 KB, text/plain)
2009-10-30 19:00 UTC, Fabiano Francesconi
Details
emerge --info (einfo.txt,3.36 KB, text/plain)
2009-10-30 19:02 UTC, Fabiano Francesconi
Details
xen-tools-3.4.2 on x86 build log (buildlog,152.59 KB, text/plain)
2011-06-30 21:13 UTC, Sergey Kovalskiy
Details
xen-3-4-2 build log after applying changes to Rules.mk (buildlog2,66.13 KB, text/plain)
2011-06-30 21:16 UTC, Sergey Kovalskiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Roma 2009-08-18 14:32:27 UTC
emerge of xen-tols-3.4.1 fails. Adding CFLAGS += -nopie to /var/tmp/portage/app-emulation/xen-tools-3.4.1/work/xen-3.4.1/tools/Rules.mk seems to solve the problem.

Reproducible: Always

Steps to Reproduce:
1. emerge =app-emulation/xen-tools-3.4.1





Portage 2.1.6.13 (hardened/x86, gcc-3.4.6, glibc-2.9_p20081201-r2, 2.6.18.8v1.5 i686)
=================================================================
System uname: Linux-2.6.18.8v1.5-i686-Intel-R-_Xeon-R-_CPU_5110_@_1.60GHz-with-gentoo-1.12.11.1
Timestamp of tree: Tue, 18 Aug 2009 13:00:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.4-r3, 2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-mtune=prescott -O2 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-mtune=prescott -O2 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages keepwork parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS=" #http://gentoo-euetib.upc.es/mirror/gentoo http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="bash-completion cracklib hardened hvm nptl nptlonly pam pic python readline sdl ssl sysfs tcpd urandom x86 xen xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 	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 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" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 imstt intel 	mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage 	siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware 	voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Fabiano Francesconi 2009-10-30 18:58:42 UTC
Same happens here.
Comment 2 Fabiano Francesconi 2009-10-30 18:59:00 UTC
Created attachment 208762 [details]
build log
Comment 3 Fabiano Francesconi 2009-10-30 18:59:17 UTC
Created attachment 208764 [details]
emerge --info
Comment 4 Fabiano Francesconi 2009-10-30 19:00:44 UTC
Created attachment 208765 [details]
emerge --info

Sorry the previous was the wrong machine
Comment 5 Fabiano Francesconi 2009-10-30 19:02:15 UTC
Created attachment 208766 [details]
emerge --info

Please, kill me. Statistics is killing me softly.
Comment 6 Fabiano Francesconi 2009-10-30 19:05:08 UTC
Switching to i686-pc-linux-gnu-4.3.4-hardenednopie seems to fix the issue although this is more a workaround than a solution.
Comment 7 Mike Williams 2010-01-29 12:47:21 UTC
Same problem here, and workaround from #6 gets it to build.
Interestingly amd64 builds fine.
Comment 8 Fabiano Francesconi 2011-05-01 19:37:50 UTC
This problem keeps occurring  even with xen-tools-3.4.2
Comment 9 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-06-29 17:43:31 UTC
When I emerge I get these errors, are these what you were seeing?

blktapctrl.c: In function 'open_ctrl_socket':
blktapctrl.c:765: error: implicit declaration of function 'mkdir'
blktapctrl.c:767: error: implicit declaration of function 'mkfifo'
Comment 10 Sergey Kovalskiy 2011-06-30 21:13:15 UTC
Created attachment 278741 [details]
xen-tools-3.4.2 on x86 build log
Comment 11 Sergey Kovalskiy 2011-06-30 21:16:27 UTC
Created attachment 278743 [details]
xen-3-4-2 build log after applying changes to Rules.mk

(In reply to comment #8)
> This problem keeps occurring  even with xen-tools-3.4.2

I confirm, problem exists with xen-tools-3.4.2 on x86 hardened (see attachment 278741 [details] for buildlog)

I used solution given here, only to get another error, sililar to Matthew's (see attachment to this post)

(In reply to comment #9)
> When I emerge I get these errors, are these what you were seeing?
> 
> blktapctrl.c: In function 'open_ctrl_socket':
> blktapctrl.c:765: error: implicit declaration of function 'mkdir'
> blktapctrl.c:767: error: implicit declaration of function 'mkfifo'

Then, I used solution given here https://bugs.gentoo.org/show_bug.cgi?id=369615 (they use x64, but it worked for me on x86)

After applying both solutions, I managed to build xen-tools.
Comment 12 Ian Delaney (RETIRED) gentoo-dev 2011-09-23 09:20:25 UTC
(In reply to comment #9)
> When I emerge I get these errors, are these what you were seeing?
> 
> blktapctrl.c: In function 'open_ctrl_socket':
> blktapctrl.c:765: error: implicit declaration of function 'mkdir'
> blktapctrl.c:767: error: implicit declaration of function 'mkfifo'

Fixed in xen-tools-3.4.1-r1