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
Same happens here.
Created attachment 208762 [details] build log
Created attachment 208764 [details] emerge --info
Created attachment 208765 [details] emerge --info Sorry the previous was the wrong machine
Created attachment 208766 [details] emerge --info Please, kill me. Statistics is killing me softly.
Switching to i686-pc-linux-gnu-4.3.4-hardenednopie seems to fix the issue although this is more a workaround than a solution.
Same problem here, and workaround from #6 gets it to build. Interestingly amd64 builds fine.
This problem keeps occurring even with xen-tools-3.4.2
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'
Created attachment 278741 [details] xen-tools-3.4.2 on x86 build log
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.
(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