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

Bug 630670

Summary: net-nds/portmap-6.0 : portmap.c:79:21: fatal error: rpc/rpc.h: No such file or directory
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: atoth, floppym, roman.gruber
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/6550
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 381391    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
net-nds:portmap-6.0:20170911-111657.log
temp.tbz2

Description Toralf Förster gentoo-dev 2017-09-11 12:57:39 UTC
x86_64-pc-linux-gnu-gcc -MM -O2 -pipe -march=native -Wall -Wall -Wstrict-prototypes *.c > .depend
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -Wall -Wall -Wstrict-prototypes -fpie -DHOSTS_ACCESS -DCHECK_PORT -DIGNORE_SIGCHLD	 -DFACILITY=LOG_DAEMON   -c -o portmap.o portmap.c
portmap.c:79:21: fatal error: rpc/rpc.h: No such file or directory
 #include <rpc/rpc.h>
                     ^
compilation terminated.

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 13.0-desktop_20170905-225247

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.4.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.6 (fallback)
  [3]   python2.7 (fallback)
  [4]   jython2.7 (fallback)
Available Ruby profiles:
  [1]   ruby22 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.5.1 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv net-nds/portmap
[ebuild  N    ] net-nds/portmap-6.0  USE="tcpd (-selinux)"
Comment 1 Toralf Förster gentoo-dev 2017-09-11 12:57:42 UTC
Created attachment 493976 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-09-11 12:57:46 UTC
Created attachment 493978 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-09-11 12:57:49 UTC
Created attachment 493980 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2017-09-11 12:57:52 UTC
Created attachment 493982 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-09-11 12:57:55 UTC
Created attachment 493984 [details]
net-nds:portmap-6.0:20170911-111657.log
Comment 6 Toralf Förster gentoo-dev 2017-09-11 12:57:58 UTC
Created attachment 493986 [details]
temp.tbz2
Comment 7 John Bowler 2017-11-23 22:46:52 UTC
This, and all the other bugs when anything that includes the 'obsolete rpc/NIS' support all seem to be a result of the 'upgrade' to glibc 2.26.  Here are the equery 'u' results:

$ equery u sys-libs/glibc
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for sys-libs/glibc-2.26-r3:
 U I
 - - audit     : Enable support for Linux audit subsystem using
                 sys-process/audit
 - - caps      : Use Linux capabilities library to control privilege
 - - debug     : When USE=hardened, allow fortify/stack violations to dump core
                 (SIGABRT) and not kill self (SIGKILL)
 - - gd        : build memusage and memusagestat tools
 - - nscd      : Build, and enable support for, the Name Service Cache Daemon
 - - profile   : Add support for software performance analysis (will likely
                 vary from ebuild to ebuild)
 - - suid      : Make internal pt_chown helper setuid -- not needed if using
                 Linux and have /dev/pts mounted with gid=5
 - - systemtap : enable systemtap static probe points
$ equery u sys-libs/glibc-2.25-r9
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for sys-libs/glibc-2.25-r9:
 U I
 - - audit     : Enable support for Linux audit subsystem using
                 sys-process/audit
 - - caps      : Use Linux capabilities library to control privilege
 - - debug     : When USE=hardened, allow fortify/stack violations to dump core
                 (SIGABRT) and not kill self (SIGKILL)
 - - gd        : build memusage and memusagestat tools
 - - nscd      : Build, and enable support for, the Name Service Cache Daemon
 - - profile   : Add support for software performance analysis (will likely
                 vary from ebuild to ebuild)
 + - rpc       : Enable obsolete RPC/NIS layers (disabling is experimental --
                 see bug 381391)
 - - suid      : Make internal pt_chown helper setuid -- not needed if using
                 Linux and have /dev/pts mounted with gid=5
 - - systemtap : enable systemtap static probe points

Curiously libnsl now seems to have an appropriate requirement; from an attempt to 'downgrade' to 2.25-r9 with --oneshot:

[ebuild   R    ] net-libs/libnsl-1.1.0-r3 
[ebuild     UD ] sys-libs/glibc-2.25-r9 [2.26-r3] USE="rpc%*" 
[blocks B      ] <sys-libs/glibc-2.26 ("<sys-libs/glibc-2.26" is blocking net-libs/libnsl-1.1.0-r3)

and this comes from:

RDEPEND="${DEPEND}
    !<sys-libs/glibc-2.26
"

Which is fine, but I suspect a lot of people are going to have a problem with this because:

* Messages for package sys-libs/glibc-2.25-r9:

 * Sanity check to keep you from breaking your system:
 *  Downgrading glibc is not supported and a sure way to destruction
 * ERROR: sys-libs/glibc-2.25-r9::gentoo failed (pretend phase):
 *   aborting to save your system
Comment 8 John Bowler 2017-11-23 22:52:18 UTC
With respect to libtirpc, i.e. bug 381391, I have it installed on both systems I checked, so I'm guessing that the USE="%rpc" from glibc 2.25 was hiding a lot of problems along the lines of missing -I/usr/include/tirpc
Comment 9 Andreas Sturmlechner gentoo-dev 2017-12-14 21:30:31 UTC
*** Bug 641056 has been marked as a duplicate of this bug. ***
Comment 10 Mike Gilbert gentoo-dev 2017-12-14 22:58:34 UTC
I think we should probably just last-rite this package and tell people to move to net-nds/rpcbind.
Comment 11 Mike Gilbert gentoo-dev 2017-12-23 18:16:57 UTC
# Mike Gilbert <floppym@gentoo.org> (23 Dec 2017)
# Fails to build without glibc rpc support, bug 630670.
# Use net-nds/rpcbind instead.
# Removal in 30 days.
net-nds/rpcbind
Comment 12 Jouni Kosonen 2017-12-23 19:50:35 UTC
(In reply to Mike Gilbert from comment #11)
> # Mike Gilbert <floppym@gentoo.org> (23 Dec 2017)
> # Fails to build without glibc rpc support, bug 630670.
> # Use net-nds/rpcbind instead.
> # Removal in 30 days.
> net-nds/rpcbind

Wasn't this supposed to mask net-dns/portmap instead?
Comment 13 Mike Gilbert gentoo-dev 2017-12-23 19:55:00 UTC
(In reply to Jouni Kosonen from comment #12)

Yes. I corrected the mistake 5 minutes after.