<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Niftiest Software</title>
	<atom:link href="http://www.niftiestsoftware.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.niftiestsoftware.com</link>
	<description>A blog about Linux, web development and more.</description>
	<lastBuildDate>Sat, 28 Jan 2012 11:07:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<div id='fb-root'></div>
					<script type='text/javascript'>
						window.fbAsyncInit = function()
						{
							FB.init({appId: null, status: true, cookie: true, xfbml: true});
						};
						(function()
						{
							var e = document.createElement('script'); e.async = true;
							e.src = document.location.protocol + '//connect.facebook.net/en_GB/all.js';
							document.getElementById('fb-root').appendChild(e);
						}());
					</script>	
						<item>
		<title>Printing to Google Cloud Print using CUPS</title>
		<link>http://www.niftiestsoftware.com/2011/10/15/printing-to-google-cloud-print-using-cups/</link>
		<comments>http://www.niftiestsoftware.com/2011/10/15/printing-to-google-cloud-print-using-cups/#comments</comments>
		<pubDate>Sat, 15 Oct 2011 10:50:45 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[cups]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[printing]]></category>

		<guid isPermaLink="false">http://www.niftiestsoftware.com/?p=330</guid>
		<description><![CDATA[I previously blogged about allowing printing to local printers via Google Cloud Print on Gentoo , and recently I have been looking at the opposite of this &#8211; printing to Google Cloud Print from Linux. The main reason to want &#8230; <a href="http://www.niftiestsoftware.com/2011/10/15/printing-to-google-cloud-print-using-cups/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I previously blogged about allowing printing to local printers via <a title="Google Cloud Print on Gentoo" href="http://www.niftiestsoftware.com/2011/05/24/google-cloud-print-on-gentoo/">Google Cloud Print on Gentoo</a> , and recently I have been looking at the opposite of this &#8211; printing to <a title="Google Cloud Print" href="http://www.google.com/cloudprint">Google Cloud Print</a> from Linux.<br />
<span id="more-330"></span></p>
<p>The main reason to want to print to Google Cloud Print is for future compatibility with printers within Linux &#8211; it means that any &#8216;Cloud Ready Printer&#8217; can be printed to without having to install possibly closed-source, or non-existent printer drivers.</p>
<p>It also allows printing directly to Google Docs, so you can easily print documents from work straight into your Google Docs account, making archiving documents simple, and easily accessible.</p>
<p>With this in mind, I was looking for a simple CUPS driver, which would allow printing via the normal printing functionality of any application, however this didn&#8217;t seem to exist&#8230; so I decided to write a CUPS backend and driver to support it.</p>
<p>The github project is available <a title="CUPS Cloud Print" href="https://github.com/simoncadman/CUPS-Cloud-Print">here</a> , and I have produced packages for Gentoo ( Sabayon etc ), Debian ( Ubuntu, Mint etc ) , RedHat ( Fedora, Centos, SuSe etc ) and Mac OS X, with instructions <a title="CUPS Cloud Print" href="http://www.niftiestsoftware.com/cups-cloud-print/" target="_blank">here</a>.</p>
<div class="plus-one-wrap"><g:plusone size="medium" count="false" href="http://www.niftiestsoftware.com/2011/10/15/printing-to-google-cloud-print-using-cups/"></g:plusone></div><div class='wpfblike' style='height: 40px;'><fb:like href='http://www.niftiestsoftware.com/2011/10/15/printing-to-google-cloud-print-using-cups/' layout='button_count' show_faces='false' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://www.niftiestsoftware.com/2011/10/15/printing-to-google-cloud-print-using-cups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>error: expected declaration specifiers or ‘&#8230;’ before ‘G_CONST_RETURN’</title>
		<link>http://www.niftiestsoftware.com/2011/09/30/error-expected-declaration-specifiers-or-%e2%80%98-%e2%80%99-before-%e2%80%98g_const_return%e2%80%99/</link>
		<comments>http://www.niftiestsoftware.com/2011/09/30/error-expected-declaration-specifiers-or-%e2%80%98-%e2%80%99-before-%e2%80%98g_const_return%e2%80%99/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 19:02:33 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[glib]]></category>
		<category><![CDATA[pango]]></category>

		<guid isPermaLink="false">http://www.niftiestsoftware.com/?p=318</guid>
		<description><![CDATA[After upgrading a few packages on one of my Gentoo machines, I was greeted with repeated errors like this one, whilst trying to emerge Avahi: /usr/include/pango-1.0/pango/pango-script.h:132: error: expected declaration specifiers or '...' before 'G_CONST_RETURN' /usr/include/pango-1.0/pango/pango-script.h:133: error: expected declaration specifiers or &#8230; <a href="http://www.niftiestsoftware.com/2011/09/30/error-expected-declaration-specifiers-or-%e2%80%98-%e2%80%99-before-%e2%80%98g_const_return%e2%80%99/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After upgrading a few packages on one of my Gentoo machines, I was greeted with repeated errors like this one, whilst trying to emerge Avahi:<br />
<span id="more-318"></span></p>
<pre>/usr/include/pango-1.0/pango/pango-script.h:132: error: expected declaration specifiers or '...' before 'G_CONST_RETURN'
/usr/include/pango-1.0/pango/pango-script.h:133: error: expected declaration specifiers or '...' before 'G_CONST_RETURN'
In file included from /usr/include/pango-1.0/pango/pango-script.h:138,
                 from /usr/include/pango-1.0/pango/pango-gravity.h:98,
                 from /usr/include/pango-1.0/pango/pango-types.h:91,
                 from /usr/include/pango-1.0/pango/pango-font.h:26,
                 from /usr/include/pango-1.0/pango/pango-attributes.h:25,
                 from /usr/include/pango-1.0/pango/pango.h:25,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:37,
                 from /usr/include/gtk-2.0/gdk/gdkscreen.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:32,
                 from avahi-ui.c:30:</pre>
<p>After doing some research, the problem seems to be that I have recently upgraded to version 2.30.0 of dev-libs/glib, which has removed G_CONST_RETURN . I believe packages in the future will remove references to G_CONST_RETURN , but for now, the best solution is to mask ( or remove from keywords ):</p>
<pre>=dev-libs/glib-2.30.0</pre>
<p>and reinstall the current stable version:</p>
<pre>=dev-libs/glib-2.28.8</pre>
<p>.</p>
<div class="plus-one-wrap"><g:plusone size="medium" count="false" href="http://www.niftiestsoftware.com/2011/09/30/error-expected-declaration-specifiers-or-%e2%80%98-%e2%80%99-before-%e2%80%98g_const_return%e2%80%99/"></g:plusone></div><div class='wpfblike' style='height: 40px;'><fb:like href='http://www.niftiestsoftware.com/2011/09/30/error-expected-declaration-specifiers-or-%e2%80%98-%e2%80%99-before-%e2%80%98g_const_return%e2%80%99/' layout='button_count' show_faces='false' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://www.niftiestsoftware.com/2011/09/30/error-expected-declaration-specifiers-or-%e2%80%98-%e2%80%99-before-%e2%80%98g_const_return%e2%80%99/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting a VirtualBox VM to an EC2 AMI</title>
		<link>http://www.niftiestsoftware.com/2011/09/24/converting-a-virtualbox-vm-to-an-ec2-ami/</link>
		<comments>http://www.niftiestsoftware.com/2011/09/24/converting-a-virtualbox-vm-to-an-ec2-ami/#comments</comments>
		<pubDate>Sat, 24 Sep 2011 15:05:18 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://www.niftiestsoftware.com/?p=266</guid>
		<description><![CDATA[There are many ways to create a new AMI for use with Amazon EC2, the best solution is to simulate EC2 with a local Xen install, however this sometimes isn&#8217;t possible, so the next best thing is to create a &#8230; <a href="http://www.niftiestsoftware.com/2011/09/24/converting-a-virtualbox-vm-to-an-ec2-ami/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There are many ways to create a new AMI for use with Amazon EC2, the best solution is to simulate EC2 with a local Xen install, however this sometimes isn&#8217;t possible, so the next best thing is to create a VirtualBox based VM, then generate an EC2 AMI from it .<br />
<span id="more-266"></span></p>
<h2>Preparing the Virtual Machine</h2>
<p>The main special requirement for the VirtualBox based VM is that it needs to be configured to boot from a Xen-based kernel. Obviously VirtualBox can&#8217;t boot Xen-dependant kernels, so I usually have two similarly configured kernels, one with Xen support, one without.</p>
<p>Compiling a Linux kernel with Xen support ( at least on Gentoo ) results in a kernel image named &#8216;vmlinuz&#8217; whereas the normal kernel without Xen support creates a kernel ( assuming compressed with bzip ) called &#8216;bzImage&#8217;. I have a Grub config file which tries the Xen-based kernel , then falls back to the normal one if this fails. The only disadvantage to this is I have to compile a kernel twice, once with Xen support, once without, but it allows me to test a kernel with my own configuration before I upload it to the cloud:</p>
<pre>default 0
timeout 1
fallback 1

title Xen
root (hd0,0)
kernel /boot/vmlinuz spinlock=tickless root=/dev/sda1

title Local
root (hd0,0)
kernel /boot/bzImage spinlock=tickless root=/dev/sda1</pre>
<p>Next, remove all data which you don&#8217;t want to upload yourself ( all my sites I am hosting on the image are stored in SVN, which I will just &#8216;svn co&#8217; when the instance is running ), then clean the filesystem (  by filling the empty space with zeros ) to reduce the data we have to upload:</p>
<pre>cat /dev/zero &gt; /tmp/zerofill
sleep 1
sync
rm /tmp/zerofill
sleep 1
sync</pre>
<p>Power off the VM, and we can now create an image we can create an AMI from.</p>
<h2>Creating the Image</h2>
<p>Next, delete all the VirtualBox snapshots for the VM, so the changes get merged into the &#8216;root&#8217; image &#8211; if you do not do this then you get a version of your image before snapshots have happened ( I found this out the hard way when the VM booted with software running that I had long removed ).<br />
Convert the virtualbox VDI to a raw image ( the VDI file is found in ~/.VirtualBox/Machines/machinename/ ):</p>
<pre>VBoxManage internalcommands converttoraw vboximage.vdi ec2.img</pre>
<p>Compress the image, this reduced my image down from 10GB to ~400MB:</p>
<pre>tar cjf image.tar.bz2 ec2.img</pre>
<p>Delete the uncompressed image:</p>
<pre>rm ec2.img</pre>
<h2>Turning the Image into an AMI</h2>
<p>Start up a new Amazon EC2 instance ( you can use any standard EC2 Linux VM for this ), and upload the image using scp (or another method):</p>
<pre>scp image.tar.bz2 user@imagingserver:</pre>
<p>Through the AWS control panel, create a new EBS volume ( ideally the same size as the VirtualBox VM ) and attach it to the instance. Make a note of the volume device name ( in my case /dev/sdi ), and overwrite the EBS volume with the image we have just uploaded:</p>
<pre>tar xf image.tar.bz2 -O | dd of=/dev/sdi bs=10M</pre>
<p>The EC2 volume now has our VM on it. You may notice that although the data has completed being written to the disk, there is no entries in /dev for the partitions. We need to tell Linux to update it&#8217;s partition listing, simply run fdisk against the volume, print the partition table, then write the ( unchanged )  layout:</p>
<pre># fdisk /dev/sdi

Command (m for help): p

Disk /dev/sdi: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders, total 20971520 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xeb52e322

   Device Boot      Start         End      Blocks   Id  System
/dev/sdi1              63    20964824    10482381   83  Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.</pre>
<p>/dev/sdi1 ( in this case ) now exists. Mount the volume to check that it looks sane, then unmount it:</p>
<pre>mkdir /mnt/newimage
mount /dev/sdi1 /mnt/newimage
ls /mnt/newimage
...
umount /mnt/newimage</pre>
<p>Through the AWS control panel, detach the volume, take a snapshot and make a note of the snapshot id. You can delete the volume once the snapshot is complete. Also find the correct snapshot id for your instance from <a href="http://ec2-downloads.s3.amazonaws.com/user_specified_kernels.pdf">this guide</a> then register the image, replacing $SNAPSHOTID, $KERNELID, name and description with your values:</p>
<pre>ec2-register -a x86_64 -n "Name" -d "Description" --root-device-name /dev/sda1 -b /dev/sda=$SNAPSHOTID:10:true --kernel $KERNELID</pre>
<p>You should now be able to start the new instance and have it boot your own customized Linux EC2 AMI.</p>
<div class="plus-one-wrap"><g:plusone size="medium" count="false" href="http://www.niftiestsoftware.com/2011/09/24/converting-a-virtualbox-vm-to-an-ec2-ami/"></g:plusone></div><div class='wpfblike' style='height: 40px;'><fb:like href='http://www.niftiestsoftware.com/2011/09/24/converting-a-virtualbox-vm-to-an-ec2-ami/' layout='button_count' show_faces='false' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://www.niftiestsoftware.com/2011/09/24/converting-a-virtualbox-vm-to-an-ec2-ami/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GlusterFS 3.2 on Gentoo</title>
		<link>http://www.niftiestsoftware.com/2011/09/23/glusterfs-3-2-on-gentoo/</link>
		<comments>http://www.niftiestsoftware.com/2011/09/23/glusterfs-3-2-on-gentoo/#comments</comments>
		<pubDate>Thu, 22 Sep 2011 23:15:28 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[GlusterFS]]></category>

		<guid isPermaLink="false">http://www.niftiestsoftware.com/?p=243</guid>
		<description><![CDATA[I&#8217;ve been looking at cloning ( or somehow maintaining synced ) file-systems between multiple servers, and after looking at other solutions ( regular rsyncs, inotify etc ), a clustered file-system seems to be the best solution. GlusterFS looks to be &#8230; <a href="http://www.niftiestsoftware.com/2011/09/23/glusterfs-3-2-on-gentoo/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been looking at cloning ( or somehow maintaining synced ) file-systems between multiple servers, and after looking at other solutions ( regular rsyncs, inotify etc ), a clustered file-system seems to be the best solution. GlusterFS looks to be a popular Open Source based solution, however there doesn&#8217;t seem to be a complete walk-through for setting it up on Gentoo ( there is a <a title="GlusterFS on the cheap with Rackspace's Cloud Servers or Slicehost " href="http://rackerhacker.com/2010/05/27/glusterfs-on-the-cheap-with-rackspaces-cloud-servers-or-slicehost/">guide for Fedora 13</a> which I have based some of this guide from, however it seems to be based on an older version of GlusterFS ), so I&#8217;ve decided to write one specifically for Gentoo and GlusterFS 3.2.<br />
<span id="more-243"></span><br />
For this tutorial, I am only going to document setting up 2 servers, but adding more servers during the initial setup should just require adding the additional servers in the same way as the first two are described ( an extra hosts entry, extra &#8216;disks&#8217; listed on the volume creation commands ).</p>
<p>In this example, we have two servers, server1 and server2. If there is no DNS setup to do this already, the first step is to add these entries on each machine, replacing the server IPs with the correct ones:</p>
<pre>192.168.1.100 server1
192.168.1.101 server2</pre>
<p>Next, simply install and start sys-cluster/glusterfs on each machine:</p>
<pre>emerge sys-cluster/glusterfs
/etc/init.d/glusterd start</pre>
<p>A Glusterfs daemon should now be listening on both servers. Next we need to probe the second server from the first ( which fixes the &#8216;Host server2 not a friend&#8217; error message which I had before I ran this ), simply run this on server1:</p>
<pre>gluster peer probe server2</pre>
<p>You can now confirm that the machines can see each other using the gluster peer status command ( you can do this on both machines and they should report each other ):</p>
<pre># gluster peer status
Number of Peers: 1

Hostname: server2
Uuid: 963aee89-fca3-4a5a-90ae-ada89f8a277d
State: Peer in Cluster (Connected)</pre>
<p>Now we have GlusterFS up and running, we can create a directory to store the data on each machine:</p>
<pre>mkdir -p /export/store1</pre>
<p>Now we can actually create the volume for the data to sit on. For this example I have set replica to be 2, so the data will exist on all machines ( this command only needs to be ran on server1 ):</p>
<pre>gluster volume create test-volume replica 2 transport tcp server1:/export/store1 server2:/export/store1</pre>
<p>This should return successfully, now we can start the volume ( again, only run this on server1 ):</p>
<pre>gluster volume start test-volume</pre>
<p>We now have a GlusterFS volume up and running, but before we can access the file-system, we need to mount it. First create a mount-point on both servers:</p>
<pre>mkdir /mnt/glusterfs</pre>
<p>Then ensure GlusterFS runs on boot ( on both servers ):</p>
<pre>rc-update add glusterd default</pre>
<p>And add a row to fstab on server1 ( so the file-system is mounted on boot ):</p>
<pre>server1:/test-volume /mnt/glusterfs glusterfs auto,rw,allow_other,default_permissions,max_read=131072 0 0</pre>
<p>Then server2:</p>
<pre>server2:
server2:/test-volume /mnt/glusterfs glusterfs auto,rw,allow_other,default_permissions,max_read=131072 0 0</pre>
<p>On both servers we can now mount the file-system manually, and should be able to add/remove/copy etc files on one machine and have it appear on the other:</p>
<pre>mount /mnt/glusterfs</pre>
<p>Assuming there were no errors reporting, the disks should now stay in sync ( it seems that even when one machine is disabled, and files are added to the disk , the files are copied to the other machine when it returns. ), and you have a solution for serving or sharing multiple files across multiple servers.</p>
<div class="plus-one-wrap"><g:plusone size="medium" count="false" href="http://www.niftiestsoftware.com/2011/09/23/glusterfs-3-2-on-gentoo/"></g:plusone></div><div class='wpfblike' style='height: 40px;'><fb:like href='http://www.niftiestsoftware.com/2011/09/23/glusterfs-3-2-on-gentoo/' layout='button_count' show_faces='false' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://www.niftiestsoftware.com/2011/09/23/glusterfs-3-2-on-gentoo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>configure: error: keyutils.h header not found.</title>
		<link>http://www.niftiestsoftware.com/2011/09/01/configure-error-keyutils-h-header-not-found/</link>
		<comments>http://www.niftiestsoftware.com/2011/09/01/configure-error-keyutils-h-header-not-found/#comments</comments>
		<pubDate>Thu, 01 Sep 2011 18:38:37 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[nfs-utils]]></category>

		<guid isPermaLink="false">http://www.niftiestsoftware.com/?p=239</guid>
		<description><![CDATA[Just upgraded net-fs/nfs-utils to nfs-utils-1.2.3-r1 on my Gentoo machine, and came across this error: checking for keyutils.h... no configure: error: keyutils.h header not found. !!! Please attach the following file when seeking support: !!! /var/tmp/portage/net-fs/nfs-utils-1.2.4/work/nfs-utils-1.2.4/config.log * ERROR: net-fs/nfs-utils-1.2.4 failed (configure &#8230; <a href="http://www.niftiestsoftware.com/2011/09/01/configure-error-keyutils-h-header-not-found/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Just upgraded net-fs/nfs-utils to nfs-utils-1.2.3-r1 on my Gentoo machine, and came across this error:<br />
<span id="more-239"></span></p>
<pre>
checking for keyutils.h... no
configure: error: keyutils.h header not found.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-fs/nfs-utils-1.2.4/work/nfs-utils-1.2.4/config.log
 * ERROR: net-fs/nfs-utils-1.2.4 failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_configure
 *   environment, line 2566:  Called econf '--with-statedir=/var/lib/nfs' '--enable-tirpc' '--with-tcp-wrappers' '--enable-nfsv3' '--enable-nfsv4' '--enable-ipv6' '--disable-caps' '--disable-gss'
 *     ebuild.sh, line  561:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *
 * If you need support, post the output of 'emerge --info =net-fs/nfs-utils-1.2.4',
 * the complete build log and the output of 'emerge -pqv =net-fs/nfs-utils-1.2.4'.
 * The complete build log is located at '/var/tmp/portage/net-fs/nfs-utils-1.2.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-fs/nfs-utils-1.2.4/temp/environment'.
 * S: '/var/tmp/portage/net-fs/nfs-utils-1.2.4/work/nfs-utils-1.2.4'

>>> Failed to emerge net-fs/nfs-utils-1.2.4, Log file:

>>>  '/var/tmp/portage/net-fs/nfs-utils-1.2.4/temp/build.log'

 * Messages for package net-fs/nfs-utils-1.2.4:

 * ERROR: net-fs/nfs-utils-1.2.4 failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_configure
 *   environment, line 2566:  Called econf '--with-statedir=/var/lib/nfs' '--enable-tirpc' '--with-tcp-wrappers' '--enable-nfsv3' '--enable-nfsv4' '--enable-ipv6' '--disable-caps' '--disable-gss'
 *     ebuild.sh, line  561:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *
 * If you need support, post the output of 'emerge --info =net-fs/nfs-utils-1.2.4',
 * the complete build log and the output of 'emerge -pqv =net-fs/nfs-utils-1.2.4'.
 * The complete build log is located at '/var/tmp/portage/net-fs/nfs-utils-1.2.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-fs/nfs-utils-1.2.4/temp/environment'.
 * S: '/var/tmp/portage/net-fs/nfs-utils-1.2.4/work/nfs-utils-1.2.4'
</pre>
<p>The solution seems to simply be install sys-apps/keyutils .</p>
<div class="plus-one-wrap"><g:plusone size="medium" count="false" href="http://www.niftiestsoftware.com/2011/09/01/configure-error-keyutils-h-header-not-found/"></g:plusone></div><div class='wpfblike' style='height: 40px;'><fb:like href='http://www.niftiestsoftware.com/2011/09/01/configure-error-keyutils-h-header-not-found/' layout='button_count' show_faces='false' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://www.niftiestsoftware.com/2011/09/01/configure-error-keyutils-h-header-not-found/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

