<html><body><div style="font-family: Arial; font-size: 10pt; color: #000000"><div>Hi Joe,</div><div><br></div><div>I've not had the problem you're experiencing. I have a little different process though. &nbsp;I do all of image work and prep as root and then change owner when I'm ready to have it interact with qemu. I'm running glusterfs 3.4.1 on Ubuntu 13.04 using the build steps I've outlined below for Bernhard. &nbsp;I've the insecure option enabled but I don't do any funky stuff with uid and gid at the gluster level.</div><div><br></div><div>Hi Bernhard,</div><div><br></div><div>I've had good luck building upstream using qemu from debian sid for ubuntu 13.10. &nbsp;Rough steps to build follow&nbsp;</div><div>#Make first rough attempt at getting build dependencies</div><div>apt-get &nbsp;build-dep qemu&nbsp;</div><div># get almost all the rest and the tools to work up the debian magic</div><div>apt-get install devscripts quilt&nbsp;libiscsi-dev libseccomp-dev libusbredirparser-dev libssh2-1-dev libvdeplug-dev&nbsp;libjpeg-dev glusterfs*</div><div># we need a newer version of libseccomp&nbsp;</div><div>mkdir libseccomp</div><div>cd libseccomp</div><div># grab it from upstream sid</div><div>wget <a href="http://ftp.de.debian.org/debian/pool/main/libs/libseccomp/libseccomp_2.1.0+dfsg.orig.tar.gz">http://ftp.de.debian.org/debian/pool/main/libs/libseccomp/libseccomp_2.1.0+dfsg.orig.tar.gz</a></div><div><p style="margin: 0px;" data-mce-style="margin: 0px;">wget <a href="http://ftp.de.debian.org/debian/pool/main/libs/libseccomp/libseccomp_2.1.0+dfsg-1.debian.tar.gz" data-mce-href="http://ftp.de.debian.org/debian/pool/main/libs/libseccomp/libseccomp_2.1.0+dfsg-1.debian.tar.gz">http://ftp.de.debian.org/debian/pool/main/libs/libseccomp/libseccomp_2.1.0+dfsg-1.debian.tar.gz</a></p><p style="margin: 0px;" data-mce-style="margin: 0px;"># get it ready</p><p style="margin: 0px;" data-mce-style="margin: 0px;">tar xf libseccomp_2.1.0+dfsg.orig.tar.gz&nbsp;</p><p style="margin: 0px;" data-mce-style="margin: 0px;">cd libseccomp-2.1.0+dfsg/</p><p style="margin: 0px;" data-mce-style="margin: 0px;"># install the debian magic</p><p style="margin: 0px;" data-mce-style="margin: 0px;">tar xf ../libseccomp_2.1.0+dfsg-1.debian.tar.gz</p><p style="margin: 0px;" data-mce-style="margin: 0px;"># apply series files if any</p><p style="margin: 0px;" data-mce-style="margin: 0px;">while quilt push; do quilt refresh; done</p><p style="margin: 0px;" data-mce-style="margin: 0px;"># build debs, they'll appear one directory up</p><p style="margin: 0px;" data-mce-style="margin: 0px;">debuild -i -us -uc -b</p><p style="margin: 0px;" data-mce-style="margin: 0px;">cd ..</p><p style="margin: 0px;" data-mce-style="margin: 0px;"># install it</p><p style="margin: 0px;" data-mce-style="margin: 0px;">dpkg -i *.deb</p><p style="margin: 0px;" data-mce-style="margin: 0px;"># qemu deps have been satisfied let's build</p><p style="margin: 0px;" data-mce-style="margin: 0px;">cd ..</p><p style="margin: 0px;" data-mce-style="margin: 0px;">mkdir qemu</p><p style="margin: 0px;" data-mce-style="margin: 0px;">cd qemu</p><p style="margin: 0px;" data-mce-style="margin: 0px;"># download our sources. you'll want to check back frequently on these for changes</p><p style="margin: 0px;" data-mce-style="margin: 0px;">wget http://ftp.de.debian.org/debian/pool/main/q/qemu/qemu_1.7.0+dfsg.orig.tar.xz<br>wget <a href="http://ftp.de.debian.org/debian/pool/main/q/qemu/qemu_1.7.0+dfsg-2.debian.tar.gz">http://ftp.de.debian.org/debian/pool/main/q/qemu/qemu_1.7.0+dfsg-2.debian.tar.gz</a><a href="http://ftp.de.debian.org/debian/pool/main/q/qemu/qemu_1.7.0+dfsg-2.debian.tar.gz" data-mce-href="http://ftp.de.debian.org/debian/pool/main/q/qemu/qemu_1.7.0+dfsg-2.debian.tar.gz"></a></p><p style="margin: 0px;" data-mce-style="margin: 0px;">wget <a href="http://download.gluster.org/pub/gluster/glusterfs/3.4/LATEST/glusterfs-3.4.2.tar.gz">http://download.gluster.org/pub/gluster/glusterfs/3.4/LATEST/glusterfs-3.4.2.tar.gz</a></p><p style="margin: 0px;" data-mce-style="margin: 0px;">tar xf glusterfs-3.4.2.tar.gz&nbsp;</p><p style="margin: 0px;" data-mce-style="margin: 0px;">tar xf qemu_1.7.0+dfsg.orig.tar.xz&nbsp;</p><p style="margin: 0px;" data-mce-style="margin: 0px;">cd qemu-1.7.0+dfsg/</p><p style="margin: 0px;" data-mce-style="margin: 0px;"># unpack the debian magic</p><p style="margin: 0px;" data-mce-style="margin: 0px;">tar xf ../qemu_1.7.0+dfsg-2.debian.tar.gz</p><p style="margin: 0px;" data-mce-style="margin: 0px;"># bring glusterfs in to the buiild</p><p style="margin: 0px;" data-mce-style="margin: 0px;">cp -r ../glusterfs-3.4.2 glusterfs</p><p style="margin: 0px;" data-mce-style="margin: 0px;"># the glusterfs check in configure looks around weird. I've never asked why but moving the src stuff up one works and tests fine</p><p style="margin: 0px;" data-mce-style="margin: 0px;">cd glusterfs/api/</p></div><div>mv src/* .</div><div>cd ../..</div><div>#you'll need to edit debian/control to enable glusterfs replacing &nbsp;<p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;">##--enable-glusterfs todo&nbsp;</p></div><div><br></div><div>#with the following</div><div><p style="margin: 0px;" data-mce-style="margin: 0px;"><br></p><p style="margin: 0px;" data-mce-style="margin: 0px;"># --enable-glusterfs <br>&nbsp;glusterfs-common (&gt;= 3.4.0),</p></div><div><br></div><div>#And finally build. It'll take ages. &nbsp;<a href="http://xkcd.com/303/">http://xkcd.com/303/</a></div><div># apply series if any</div><div><p style="margin: 0px;" data-mce-style="margin: 0px;">while quilt push; do quilt refresh; done<br></p><p style="margin: 0px;" data-mce-style="margin: 0px;"># build packages</p><p style="margin: 0px;" data-mce-style="margin: 0px;">debuild -i -us -uc -b</p><p style="margin: 0px;" data-mce-style="margin: 0px;"># You now have shiny qemu debs up a directory to install as you please with.&nbsp;</p></div><div><br></div><div>Let me know if you have any problems. &nbsp;Also have you tried out the new port option in 3.4.2 yet for migrations?</div><div><br></div><div><br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Joe Topjian" &lt;joe@topjian.net&gt;<br><b>To: </b>"Bernhard Glomm" &lt;bernhard.glomm@ecologic.eu&gt;<br><b>Cc: </b>gluster-users@gluster.org<br><b>Sent: </b>Tuesday, January 14, 2014 4:24:26 AM<br><b>Subject: </b>Re: [Gluster-users] libgfapi on ubuntu<br><div><br></div><div dir="ltr">Hi Bernhard<div><br></div><div>(dropping -devel as I'm not subscribed)</div><div><br></div><div>I've been able to compile qemu using Ubuntu 12.04 and the OpenStack Havana cloud archive (<a href="https://wiki.ubuntu.com/ServerTeam/CloudArchive" target="_blank">https://wiki.ubuntu.com/ServerTeam/CloudArchive</a>) which comes with its own version of qemu. Maybe you can just pull qemu from that repo without having to use 12.04.</div>
<div><br></div><div>If you do get qemu to compile, though, I'd be curious if you run into the issue described here:</div><div><br></div><div><a href="http://www.gluster.org/pipermail/gluster-users/2013-December/thread.html#38302" target="_blank">http://www.gluster.org/pipermail/gluster-users/2013-December/thread.html#38302</a><br>
</div><div><br></div><div>I've been trying for weeks to clear time out to debug more, but just haven't been able to.</div><div><br></div><div>Thanks,</div><div>Joe</div></div><div class="gmail_extra"><br><div><br></div><div class="gmail_quote">
On Tue, Jan 14, 2014 at 1:59 AM, Bernhard Glomm <span dir="ltr">&lt;<a href="mailto:bernhard.glomm@ecologic.eu" target="_blank">bernhard.glomm@ecologic.eu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><span style="font-size:12px"><span face="verdana" data-mce-style="font-family: verdana;" style="font-family: verdana;">I'm running ubuntu 13.10 and try recompile qemu as described here</span></span><div><a href="https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1224517" target="_blank">https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1224517</a></div>
<div>in order to test libgfapi.</div><div>unfortunately compiling failed with messages like this:</div><div>....</div><div><div>In file included from /usr/include/libfdt.h:55:0,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from /usr/src/rebuild-qemu/qemu-1.5.0+dfsg/device_tree.c:28:</div>
<div>/usr/include/fdt.h:58:2: error: unknown type name âfdt32_tâ</div><div>&nbsp; fdt32_t magic; /* magic word FDT_MAGIC */</div><div>&nbsp; ^</div></div><div>.....</div><div><div>this both files are causing the trouble:</div><div>
&nbsp;/usr/include/fdt.h and</div><div>&nbsp;/usr/include/libfdt.h</div></div><div><br></div><div>I tried the qemu sources from "trusty" (ubuntu 14.04)&nbsp;</div><div>with them make failes with:</div><div>...</div><div><div>dpkg-shlibdeps: error: no dependency information found for /usr/lib/libgfapi.so.0 (used by debian/qemu-system-misc/usr/bin/qemu-system-s390x)</div>
<div>dh_shlibdeps: dpkg-shlibdeps -Tdebian/qemu-system-misc.substvars debian/qemu-system-misc/usr/bin/qemu-system-microblazeel debian/qemu-system-misc/usr/bin/qemu-system-or32 debian/qemu-system-misc/usr/bin/qemu-system-xtensaeb debian/qemu-system-misc/usr/bin/qemu-system-alpha debian/qemu-system-misc/usr/bin/qemu-system-sh4eb debian/qemu-system-misc/usr/bin/qemu-system-unicore32 debian/qemu-system-misc/usr/bin/qemu-system-m68k debian/qemu-system-misc/usr/bin/qemu-system-cris debian/qemu-system-misc/usr/bin/qemu-system-lm32 debian/qemu-system-misc/usr/bin/qemu-system-moxie debian/qemu-system-misc/usr/bin/qemu-system-microblaze debian/qemu-system-misc/usr/bin/qemu-system-s390x debian/qemu-system-misc/usr/bin/qemu-system-sh4 debian/qemu-system-misc/usr/bin/qemu-system-xtensa returned exit code 2</div>
<div>make: *** [install] Error 2</div><div>dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2</div><div>debuild: fatal error at line 1361:</div><div>dpkg-buildpackage -rfakeroot -D -us -uc -j10 failed</div>
</div><div>....</div><div>anyone an idea how to proceed?</div><div><br></div><div>Since the above mentioned bug report is closed with "won't fix"</div><div>until there is a MIR filed for glusterfs I may ask</div>
<div>will that be done?</div><div>Otherwise how can I use libgfapi on an ubuntu system?</div><div>TIA</div><span class="HOEnZb"><span color="#888888" data-mce-style="color: #888888;" style="color: #888888;"><div>Bernhard</div></span></span></div>
<br>_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a><br></blockquote></div><br></div>
<br>_______________________________________________<br>Gluster-users mailing list<br>Gluster-users@gluster.org<br>http://supercolony.gluster.org/mailman/listinfo/gluster-users</div><div><br></div></div></body></html>