emerge fails during compilation phase: >>> Compiling source in /var/tmp/portage/net-libs/libtirpc-0.3.1/work/libtirpc-0.3.1 ... * abi_x86_32.x86: running multilib-minimal_abi_src_compile make -j1 make all-recursive make[1]: Entering directory '/var/tmp/portage/net-libs/libtirpc-0.3.1/work/libtirpc-0.3.1-abi_x86_32.x86' Making all in src make[2]: Entering directory '/var/tmp/portage/net-libs/libtirpc-0.3.1/work/libtirpc-0.3.1-abi_x86_32.x86/src' CC libtirpc_la-auth_none.lo CC libtirpc_la-auth_unix.lo CC libtirpc_la-authunix_prot.lo CC libtirpc_la-bindresvport.lo CC libtirpc_la-clnt_bcast.lo CC libtirpc_la-clnt_dg.lo CC libtirpc_la-clnt_generic.lo CC libtirpc_la-clnt_perror.lo CC libtirpc_la-clnt_raw.lo CC libtirpc_la-clnt_simple.lo CC libtirpc_la-clnt_vc.lo CC libtirpc_la-rpc_dtablesize.lo CC libtirpc_la-getnetconfig.lo CC libtirpc_la-getnetpath.lo CC libtirpc_la-getrpcent.lo CC libtirpc_la-getrpcport.lo CC libtirpc_la-mt_misc.lo CC libtirpc_la-pmap_clnt.lo CC libtirpc_la-pmap_getmaps.lo CC libtirpc_la-pmap_getport.lo CC libtirpc_la-pmap_prot.lo CC libtirpc_la-pmap_prot2.lo CC libtirpc_la-pmap_rmt.lo CC libtirpc_la-rpc_prot.lo CC libtirpc_la-rpc_commondata.lo CC libtirpc_la-rpc_callmsg.lo CC libtirpc_la-rpc_generic.lo CC libtirpc_la-rpc_soc.lo CC libtirpc_la-rpcb_clnt.lo CC libtirpc_la-rpcb_prot.lo CC libtirpc_la-rpcb_st_xdr.lo CC libtirpc_la-svc.lo CC libtirpc_la-svc_auth.lo CC libtirpc_la-svc_dg.lo CC libtirpc_la-svc_auth_unix.lo CC libtirpc_la-svc_auth_none.lo CC libtirpc_la-svc_generic.lo CC libtirpc_la-svc_raw.lo CC libtirpc_la-svc_run.lo CC libtirpc_la-svc_simple.lo CC libtirpc_la-svc_vc.lo CC libtirpc_la-getpeereid.lo CC libtirpc_la-auth_time.lo CC libtirpc_la-debug.lo CC libtirpc_la-xdr.lo CC libtirpc_la-xdr_rec.lo CC libtirpc_la-xdr_array.lo CC libtirpc_la-xdr_float.lo CC libtirpc_la-xdr_mem.lo CC libtirpc_la-xdr_reference.lo CC libtirpc_la-xdr_stdio.lo CC libtirpc_la-auth_gss.lo CC libtirpc_la-authgss_prot.lo CC libtirpc_la-svc_auth_gss.lo /var/tmp/portage/net-libs/libtirpc-0.3.1/work/libtirpc-0.3.1/src/svc_auth_gss.c:51:31: fatal error: gssapi/gssapi_ext.h: No such file or directory #include <gssapi/gssapi_ext.h> ^ compilation terminated. # emerge --info '=net-libs/libtirpc-0.3.1::gentoo' Portage 2.2.20 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.9.2, glibc-2.20-r2, 4.0.4-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.0.4-gentoo-x86_64-AMD_Phenom-tm-_9600_Quad-Core_Processor-with-gentoo-2.2 KiB Mem: 7659220 total, 1913196 free KiB Swap: 2047996 total, 2034784 free Timestamp of repository gentoo: Tue, 02 Jun 2015 21:30:01 +0000 sh bash 4.3_p39 ld GNU ld (Gentoo 2.25 p1.2) 2.25 ccache version 3.2.2 [disabled] app-shells/bash: 4.3_p39::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.20.2-r1::gentoo dev-lang/python: 2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo dev-util/ccache: 3.2.2::gentoo dev-util/cmake: 3.2.2::gentoo dev-util/pkgconfig: 0.28-r3::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.16.3::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r1::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25-r1::gentoo sys-devel/gcc: 4.9.2::gentoo sys-devel/gcc-config: 1.8::gentoo sys-devel/libtool: 2.4.6-r1::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.0::gentoo (virtual/os-headers) sys-libs/glibc: 2.20-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 local location: /usr/local/portage masters: gentoo priority: 0 printer-drivers location: /var/lib/layman/printer-drivers sync-type: git sync-uri: git://git.overlays.gentoo.org/proj/printer-drivers.git masters: gentoo java location: /var/lib/layman/java masters: gentoo priority: 50 x11 location: /var/lib/layman/x11 masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA dlj-1.1 PUEL AdobeFlash-10.3 AdobeFlash-11.x Oracle-BCLA-JavaSE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=opteron -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=opteron -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1" MAKEOPTS="-j4" PKGDIR="/usr/local/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--timeout=15" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" USE="10bit 3dnow 3dnowext X a52 aac aalib accessibility acl acpi aio alsa amd64 amr anthy ao apache2 audiofile automount avahi berkdb bluray bonjour boost branding bzip2 cairo cdda cdio cdr chm cjk cli consolekit cracklib crypt css cups curl curlwrappers cxx dbus declarative dga dia directfb dri dts dv dvd dvdr dynamic emboss encode exif expat fam fat fbcon ffmpeg fftw firefox flac flash fontconfig foomaticdb fortran ftp gcj gd gdbm gif gimp glamor glib gmp gnutls gpac gphoto2 gpm graphviz gs gstreamer gtk hddtemp hdri ibus iconv icu id3tag imagemagick imlib immqt-bc inotify ipfilter ipv6 irc java javascript jbig jpeg jpeg2k kde kerberos kipi lame lcms libcaca libnotify libvisual lm_sensors lzo m17n-lib mad midi mikmod mjpeg mmap mmx mmxext mng modules mono mp3 mp4 mpeg mpi multilib multiuser musepack mysql nas ncurses network nls nptl nsplugin ntfs odbc offensive ogg openexr opengl openmp oscar pam pango pcre pdf perl phonon plasma plugins png policykit postscript ppds pulseaudio python q32 qt3support qt4 quicktime rar raw rdesktop readline recode regex reiser4 reiserfs rle rss ruby samba sasl scanner schroedinger scim sdk sdl semantic-desktop sensord session sftp sndfile snmp sox speex spell sqlite sse sse2 ssl startup-notification subversion svg syslog taglib tcl tcpd theora threads tidy tiff timidity tk toolbar tools transcode truetype udev udisks unicode upower usb utils vaapi vala vcd vdpau vdr video vorbis wavpack webkit winbind wmf wxwidgets x264 xcb xcomposite xft xine xinerama xml xorg xosd xpm xscreensaver xv xvid xvmc yahoo zeroconf zip zlib" ABI_X86="32 64" ALSA_CARDS="hda-intel" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon minolta konica" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LINGUAS="en ja" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
What do your Kerberos packages look like? I've successfully built libtirpc[kerberos]: net-libs/libtirpc-0.3.1::gentoo was built with the following: USE="ipv6 kerberos (pie) (ssp) -static-libs" ABI_X86="32 64 -x32" which does RDEPEND="kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )" which gives me virtual/krb5-0-r1::gentoo was built with the following: USE="" ABI_X86="32 64 -x32" which does RDEPEND=" || ( >=app-crypt/mit-krb5-1.12.1-r1[${MULTILIB_USEDEP}] >=app-crypt/heimdal-1.5.3-r2[${MULTILIB_USEDEP}] )" giving me app-crypt/mit-krb5-1.13.2::gentoo was built with the following: USE="-doc keyutils -openldap pkinit (-selinux) -test threads -xinetd" ABI_X86="32 64 -x32" which is where that file comes from: ~ $ locate gssapi_ext.h /usr/include/gssapi/gssapi_ext.h ~ $ equery belongs /usr/include/gssapi/gssapi_ext.h * Searching for /usr/include/gssapi/gssapi_ext.h ... app-crypt/mit-krb5-1.13.2 (/usr/include/gssapi/gssapi_ext.h)
For me it fails at the same point, I'm using app-crypt/heimdal-1.5.3-r2 for virtual/krb5-0-r1, as I have set up a samba4 ad dc on the host.
(In reply to Knut Masanetz from comment #2) > I'm using > app-crypt/heimdal-1.5.3-r2 It looks like Heimdal doesn't provide gssapi/gssapi_ext.h at all, preferring instead to put those declarations in gssapi/gssapi.h. And libtirpc's Autoconf handling of Kerberos-related stuff it really weird. I've asked upstream about it, see http://thread.gmane.org/gmane.linux.nfs/71261
Created attachment 404620 [details, diff] 0.3.1-r1-heimdal-includes.patch Patch from upstream ( http://sourceforge.net/p/libtirpc/mailman/message/34178833/ ) to check for and use <gssapi/gssapi_ext.h> only if available, otherwise <gssapi/gssapi.h>.
Created attachment 404622 [details] libtirpc-0.3.1-r1.ebuild Proposed ebuild for version 0.3.1-r1, using the patch above. I've tested it as far as building it without Kerberos and with both MIT and Heimdal Kerberos, but I haven't run it with either. Those who actually run Kerberos, please test.
(In reply to Karl-Johan Karlsson from comment #5) > Created attachment 404622 [details] > libtirpc-0.3.1-r1.ebuild > > Proposed ebuild for version 0.3.1-r1, using the patch above. > > I've tested it as far as building it without Kerberos and with both MIT and > Heimdal Kerberos, but I haven't run it with either. Those who actually run > Kerberos, please test. W4M after I change ${PVR} to ${P}.
Fixed for ages by http://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=a2eee46b7d4c32565873dd39a207d05f2f4ff871