can't install xen-tools. There is some problem with include header file with prototypes for mkfifo and mkdir functions (sys/stat.h is not included anywhere) Reproducible: Always Steps to Reproduce: 1.emerge xen-tools Actual Results: [...] gcc -fno-strict-overflow -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .subdirs-all.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .subdir-all-blktap.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .subdirs-all.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .subdir-all-drivers.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .blktapctrl.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Werror -Wno-unused -I../lib -I../../../tools/libxc -I../../../tools/include -I../../../tools/xenstore -I../../../tools/include -I ../../libaio/src -D_GNU_SOURCE -DUSE_GCRYPT -c -o blktapctrl.o blktapctrl.c gcc -fno-strict-overflow -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .subdirs-all.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .subdir-all-blktap.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .subdirs-all.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .subdir-all-drivers.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .blktapctrl_linux.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Werror -Wno-unused -I../lib -I../../../tools/libxc -I../../../tools/include -I../../../tools/xenstore -I../../../tools/include -I ../../libaio/src -D_GNU_SOURCE -DUSE_GCRYPT -c -o blktapctrl_linux.o blktapctrl_linux.c cc1: warnings being treated as errors 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' Expected Results: succesful installation Portage 2.1.9.42 (default/linux/amd64/10.0, gcc-4.4.5, libc-0-r0, 2.6.37-gentoo-r4 x86_64) ================================================================= System uname: Linux-2.6.37-gentoo-r4-x86_64-Intel-R-_Xeon-R-_CPU_5160_@_3.00GHz-with-gentoo-2.0.2 Timestamp of tree: Wed, 01 Jun 2011 08:00:01 +0000 app-shells/bash: 4.1_p9 dev-lang/python: 2.7.1-r1, 3.1.3-r1 sys-apps/baselayout: 2.0.2 sys-apps/openrc: 0.8.2-r1 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.65-r1 sys-devel/automake: 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.3.4, 4.4.5 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.82 sys-kernel/linux-headers: 2.6.36.1 sys-libs/glibc: 2.12.2 virtual/os-headers: 0 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs buildpkg collision-protect distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j2" 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="acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm iconv ipv6 mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline session sse sse2 ssl sysfs tcpd unicode 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Please attach the entire build log to this bug report.
Same problem : (
http://paste.pocoo.org/show/402374/
Created attachment 276315 [details] Buildlog
Same problem here ... amd64 ...
(In reply to comment #3) > http://paste.pocoo.org/show/402374/ Attach that, please, whatever it is.
Portage 2.1.9.42 (default/linux/amd64/10.0/server, gcc-4.4.5, libc-0-r0, 2.6.38-gentoo-r6 x86_64) ================================================================= System uname: Linux-2.6.38-gentoo-r6-x86_64-Intel-R-_Xeon-R-_CPU_E5645_@_2.40GHz-with-gentoo-2.0.2 Timestamp of tree: Wed, 15 Jun 2011 21:15:01 +0000 app-shells/bash: 4.1_p9 dev-lang/python: 2.7.1-r1, 3.1.3-r1 sys-apps/baselayout: 2.0.2 sys-apps/openrc: 0.8.2-r1 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.65-r1 sys-devel/automake: 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.5 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.82 sys-kernel/linux-headers: 2.6.36.1 sys-libs/glibc: 2.12.2 virtual/os-headers: 0 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://gentoo-euetib.upc.es/mirror/gentoo/" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j16" 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.de.gentoo.org/gentoo-portage" USE="acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm iconv ipv6 minimal mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre pppd readline session snmp sse sse2 ssl sysfs tcpd truetype unicode xml 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
It looks that this is the problem with header files. I've downgraded sys-kernel/linux-header to version 2.6.30-r1 and everything compiled clean.
Created attachment 277337 [details] Patch for xen-tools fixing the problem with latest linux-headers Proposed fix: fixing the problem in xen-tools ... not requiring a change in linux-headers package
Patch given by one4many tests OK here. amd64 and sys-kernel/linux-headers-2.6.36.1
Created attachment 278469 [details] New ebuild for xen-tools fixing the problem with latest linux-headers
Comment on attachment 278469 [details] New ebuild for xen-tools fixing the problem with latest linux-headers >+++ xen-tools-3.4.2.ebuild 2011-03-25 21:31:03.000000000 -0300 >--- xen-tools-3.4.2_p1.ebuild 2011-06-28 08:56:37.256933699 -0300 >@@ -126,11 +126,6 @@ > > # Fix --as-needed issues, bug 296631 > epatch "${FILESDIR}/${P}-as-needed.patch" >+ >+ # Fix headers for >=sys-kernel/linux-headers-2.6.36.1, #369615 >+ if has_version '>=sys-kernel/linux-headers-2.6.36.1' then >+ epatch "${FILESDIR}/${PN}-3.4.2-headers-nt-2.6.36.1.patch" >+ fi > } > > src_compile() {
Pleeease... comments at least?
works for me ... but encountered different problem with the xen-tools together with python 2.7 ... I have a patch .. I post tomorrow (need to pull if of the server first)
Created attachment 279815 [details, diff] patched ebuild
Created attachment 279817 [details, diff] headers patch
Had same problem here on x86. Worked with patched ebuild and "xen-tools-3.4.2-headers-nt-2.6.36.1.patch" Thanks
Please don't just add aliases for architechtures yourself. We do keywording, maintainers fix bugs.
Created attachment 280077 [details, diff] Allows to use python-2.7 and earlier as well
Comment on attachment 280077 [details, diff] Allows to use python-2.7 and earlier as well (In reply to comment #14) > works for me ... but encountered different problem with the xen-tools together > with python 2.7 ... I have a patch .. I post tomorrow (need to pull if of the > server first) Hi, maybe the problem you're having with python 2.7 is (or at least is similar to): Unexpected error: <type 'exceptions.AttributeError'> Please report to xen-devel [at] lists Traceback (most recent call last): File "/usr/sbin/xm", line 7, in <module> main.main(sys.argv) File "/usr/lib64/python2.7/site-packages/xen/xm/main.py", line 3616, in main _, rc = _run_cmd(cmd, cmd_name, args) File "/usr/lib64/python2.7/site-packages/xen/xm/main.py", line 3640, in _run_c md return True, cmd(args) File "/usr/lib64/python2.7/site-packages/xen/xm/main.py", line 969, in xm_list doms = getDomains(params, state, use_long) File "/usr/lib64/python2.7/site-packages/xen/xm/main.py", line 933, in getDoma ins return server.xend.domains_with_state(True, state, full) File "/usr/lib64/python2.7/xmlrpclib.py", line 1224, in __call__ return self.__send(self.__name, args) File "/usr/lib64/python2.7/site-packages/xen/util/xmlrpcclient.py", line 118, in __request response = xmlrpclib.ServerProxy.__request(self, methodname, params) File "/usr/lib64/python2.7/xmlrpclib.py", line 1570, in __request verbose=self.__verbose File "/usr/lib64/python2.7/site-packages/xen/util/xmlrpcclient.py", line 55, i n request request_body, verbose) File "/usr/lib64/python2.7/xmlrpclib.py", line 1264, in request return self.single_request(host, handler, request_body, verbose) File "/usr/lib64/python2.7/xmlrpclib.py", line 1294, in single_request response = h.getresponse(buffering=True) AttributeError: HTTPUnix instance has no attribute 'getresponse' That error came to me using python 2.7, and I found a solution on the internet. This is the original thread: http://www.gossamer-threads.com/lists/xen/devel/182210 This is the original patch: http://www.gossamer-threads.com/lists/engine?do=post_attachment;postatt_id=19159;list=xen That patch can be applied safely if you have python 2.6 and earlier according to the author (though I haven't tested). I tested that patch with python 2.7 and it runs smooth. So I think that if you all guys test this ok the patch given by one4many and the one I found should be joined together.
Hi guys, it's about 2 months for this bug and 11 days of inactivity, will this be solved soon? I've got it compiled by hand and working following the ebuild as a guide. Additionally, I applied: patch from one4many, patch allowing use of python-2.7 and earlier I found on the internet. These would be the USE flags I've been testing with: acm debug pygrub screen -api -custom-cflags -doc -flask -hvm. I did several tests which include cpu and i/o bound operations and different network configurations. one4many, can you tell if the issue with python-2.7 is solved with the patch? What other issues are to be tested? MMS?
Hi there, I just tested it and the python-2.7 patches in combination with my patch fix the packages entirely. Who ever is the maintainer of the package should bring a new version so I can get rid of overlay-fix.
Yes there was a change of kernel headers to 2.6.38 xen-tools-3.4 is now well superceded.
Well xen-3.4 is NOT superseded from a stability point of view ... I had to move back to 3.4 because this way the only way to keep a (IO) busy XEN server stable. 4.x crashes on heavy IO quite regularly ...
(In reply to comment #24) > Well xen-3.4 is NOT superseded from a stability point of view ... I had to move > back to 3.4 because this way the only way to keep a (IO) busy XEN server > stable. 4.x crashes on heavy IO quite regularly ... Well that's interesting. i was just about to start testing XEN-4*. Can you be more explicit about the difficulties you had and how you have tested? I really don't want to go off topic here so you may just post a link to something (bug report, forum thread, blog, etc.) or mail me. Thanks!
Hi Diego, I built a new server based on the following components: - Supermicro SuperChassis 216E26-R1200LPB (http://www.supermicro.com/products/chassis/2U/216/SC216E26-R1200LP.cfm ) - TYAN S8236 - S8236WGM3NR (http://www.tyan.com/product_SKU_spec.aspx?ProductType=MB&pid=668&SKU=600000176 ) - 3ware SAS 9750-8i Controller (http://www.lsi.com/products/storagecomponents/Pages/3wareSAS9750-8i.aspx ) - Several SSDs (6Gb/s) and HDDs (3Gb/s) The machine is rock stable on XEN 3.x and a vanilla Linux Kernel. I can achieve 2.5 GB/s on the SSDs and around 600 to 800 MB/s on the HDDs continuously for days. As soon as I have a XEN dom0 or domU (no difference here) the performance numbers are a not that high but near as good. Unfortunately the machine hangs itself after 10 minutes of heavy IO (complete standstill not crash or dump). I opened a ticket with LSI because it looks like a controller problem and I sent diagnose dumps back and forth. Even RMAd (replaced) the controller without any luck. After playing around with controllers from INTEL (nearly the same spec) and a NoName 4 channel SAS controller (no cache ram) the machine also crashed out (with the Intel Card within seconds of heavy IO). This strongly indicates that XEN 4.x has a different problem here which has not been solved yet (I tried the 4.0.x and 4.1.x series). Hope this helps.