configure: error: keyutils.h header not found.

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 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'

The solution seems to simply be install sys-apps/keyutils .

2 thoughts on “configure: error: keyutils.h header not found.”

Leave a Reply

Your email address will not be published. Required fields are marked *