Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 374403

Summary: net-fs/autofs-5 fails to compile with no rpc in sys-libs/glibc
Product: Gentoo Linux Reporter: cyrillic <cyrilmaley>
Component: Current packagesAssignee: Yixun Lan <dlan>
Status: RESOLVED FIXED    
Severity: normal CC: DuPol, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 381391    
Attachments: attempt #1
attempt #2
attempt #3

Description cyrillic 2011-07-08 01:08:07 UTC
autofs still depends on the features that were dropped in the latest glibc.

Reproducible: Always

Steps to Reproduce:
1. emerge autofs


Actual Results:  
In file included from ../include/automount.h:32:0,
                 from cache.c:26:
../include/rpc_subs.h:19:21: fatal error: rpc/rpc.h: No such file or directory



Expected Results:  
successful build



For attempt #2 I added EXTRA_ECONF="--with-libtirpc" and it didn't try very hard to find libtirpc.

For attempt #3 I added -I/usr/include/tirpc to CFLAGS and the build got further along before it died.
Comment 1 cyrillic 2011-07-08 01:10:19 UTC
Created attachment 279391 [details]
attempt #1
Comment 2 cyrillic 2011-07-08 01:10:59 UTC
Created attachment 279393 [details]
attempt #2
Comment 3 cyrillic 2011-07-08 01:11:29 UTC
Created attachment 279395 [details]
attempt #3
Comment 4 cyrillic 2011-07-08 01:11:55 UTC
# emerge --info
Portage 2.2.0_alpha43 (default/linux/amd64/10.0, gcc-4.6.1, glibc-2.14-r0, 3.0.0-rc6 x86_64)
=================================================================
System uname: Linux-3.0.0-rc6-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.0.3
Timestamp of tree: Tue, 05 Jul 2011 22:15:01 +0000
app-shells/bash:          4.2_p10
dev-lang/python:          2.7.2, 3.2
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.52.0.2
sys-devel/gcc:            4.6.1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39::gentoo_fixes (virtual/os-headers)
sys-libs/glibc:           2.14
Repositories: gentoo cross gentoo_fixes gnome x11 x11_fixes newstuff
Installed sets: 
ACCEPT_KEYWORDS="* amd64 ~*"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=barcelona -O2 -pipe -flto"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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=barcelona -O2 -pipe -flto"
DISTDIR="/var/tmp/distfiles"
FEATURES="distlocks fixlafiles parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="en"
MAKEOPTS=""
PKGDIR="/var/tmp/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"
PORTDIR_OVERLAY="/usr/portage/local/cross /usr/portage/local/gentoo_fixes /usr/portage/local/gnome /usr/portage/local/x11 /usr/portage/local/x11_fixes /usr/portage/local/newstuff"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 autoipd avahi bluetooth boost bzip2 cairo cdda cheese consolekit cracklib css cups curl custom-cflags custom-cpuopts custom-optimization cxx dbus dhcpcd dri dts dvd encode exceptions expat fbcon ffmpeg flac fortran gif glib gnome gnutls gpm gstreamer gtk gtk3 icu introspection ipv6 ithreads jpeg lcms libnotify mmx mmxext mp2 mp3 mpeg multilib nautilus ncurses networkmanager nls nptl offensive ogg opengl openmp pam pcre png policykit python3 qt3support readline resolvconf samba speex spell sqlite sse sse2 sse3 ssl svg taglib tcl theora threads tiff udev unicode usb vala vapigen vorbis webm x264 xcb xorg xscreensaver xulrunner xv xvid zeroconf zlib" ALSA_PCM_PLUGINS="*" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LINGUAS="en" SANE_BACKENDS="*" USERLAND="GNU" VIDEO_CARDS="intel nouveau radeon" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Dustin Polke 2011-08-10 13:17:21 UTC
I managed to build autofs completely depending on libtirpc but had to drop yp/nis support as the needed headers for this module are dropped in glibc and I couldn't find any other package providing the functionality. I emailed upstream and asked about how this issue will be handled by them. Let's wait for their answer.

Peter, would it be an option to DEPEND on <glibc-2.14 until a better solution?
Comment 6 Peter Volkov (RETIRED) gentoo-dev 2011-09-15 06:49:28 UTC
(In reply to comment #5)
> Peter, would it be an option to DEPEND on <glibc-2.14 until a better solution?

This is better then nothing. I've added this into autofs-5.0.6-r2.ebuild.
Comment 7 Dustin Polke 2011-09-15 11:37:28 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > Peter, would it be an option to DEPEND on <glibc-2.14 until a better solution?
> 
> This is better then nothing. I've added this into autofs-5.0.6-r2.ebuild.

Peter,
vapier now included a patch by fedora people that revert the exclusion of the needed include files. I did test-build all USE flag combination without problems. Thus, for now, we can drop the DEPEND line you just added to the ebuild.
Comment 8 Peter Volkov (RETIRED) gentoo-dev 2011-09-15 11:51:36 UTC
Dustin, was patch included into 5.0.6? As I see report here tells us that autofs fails with glibc-2.14 and I don't see any new patches from vapier...
Comment 9 Dustin Polke 2011-09-15 13:00:27 UTC
(In reply to comment #8)
> Dustin, was patch included into 5.0.6? As I see report here tells us that
> autofs fails with glibc-2.14 and I don't see any new patches from vapier...

I should have dug out the link to vapier's mail on -dev about this right away:
http://archives.gentoo.org/gentoo-dev/msg_186be8dc9753d18aafc9a5a616b3b991.xml

I don't know where vapier exactly did the change, but fact is that the header files are again available.
Though the issue itself is not fixed as glibc upstream wants to drop this and autofs upstream (which closely works with fedora) says right now, we don't see a problem right now.
Comment 10 Peter Volkov (RETIRED) gentoo-dev 2011-09-19 12:22:44 UTC
Ok, everything is back now.