Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 579884 - sys-libs/glibc-2.23: nfs-utils stops working after upgrade
Summary: sys-libs/glibc-2.23: nfs-utils stops working after upgrade
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: glibc-2.23
  Show dependency tree
 
Reported: 2016-04-14 00:03 UTC by Harris Landgarten
Modified: 2017-12-09 22:41 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
applog from systemd-run start on ::gentoo ebuild (vmware-apploader-21215.log,2.38 KB, text/x-log)
2016-04-14 22:23 UTC, Harris Landgarten
Details
ui.log from successful start using ::gentoo ebuild and systemd-run (vmware-ui-21034.log,83.74 KB, text/x-log)
2016-04-14 22:24 UTC, Harris Landgarten
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Harris Landgarten 2016-04-14 00:03:03 UTC
First reboot after upgrading to glibc-2.23-r1 and all nfs mounts failed with mount.nfs protocol not supported.

rebuilding of nfs-utils fails:

/bin/sh ../../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wstrict-prototypes  -pipe -march=native -O2 -pipe  -Wl,-O1 -Wl,--as-needed -o exportfs exportfs.o ../../support/export/libexport.a ../../support/nfs/libnfs.a ../../support/misc/libmisc.a -lwrap  
libtool: link: x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wstrict-prototypes -pipe -march=native -O2 -pipe -Wl,-O1 -o exportfs exportfs.o  -Wl,--as-needed ../../support/export/libexport.a ../../support/nfs/libnfs.a ../../support/misc/libmisc.a -lwrap
Makefile:505: recipe for target 'exportfs' failed
make[2]: Leaving directory '/var/tmp/paludis/net-fs-nfs-utils-1.3.3/work/nfs-utils-1.3.3/utils/exportfs'
Makefile:449: recipe for target 'all-recursive' failed
make[1]: Leaving directory '/var/tmp/paludis/net-fs-nfs-utils-1.3.3/work/nfs-utils-1.3.3/utils'
Makefile:473: recipe for target 'all-recursive' failed
../../support/nfs/libnfs.a(nfsexport.o): In function `exp_unexp':
nfsexport.c:(.text+0x167): undefined reference to `major'
nfsexport.c:(.text+0x17f): undefined reference to `minor'
collect2: error: ld returned 1 exit status
make[2]: *** [exportfs] Error 1
Comment 1 Harris Landgarten 2016-04-14 03:35:28 UTC
Is there a work around. This is a major loss of functionality as nfs shares cannot be connected without a rebuild of nfs-utils.
Comment 2 SpanKY gentoo-dev 2016-04-14 03:40:13 UTC
runtime breakage is different from buildtime breakage.  the sysmacros.h header change should have 0 impact at runtime behavior.  please attach the full build log from your glibc-2.23 build, or at least `emerge -pv glibc`.
Comment 3 Harris Landgarten 2016-04-14 03:59:57 UTC
r   sys-libs/glibc:2.2::gentoo 2.23-r1 to ::installed replacing 2.23-r1
    -audit -caps -debug -gd (-hardened) (multilib) nscd -profile rpc (-selinux) -suid -systemtap -vanilla build_options: -dwarf_compress -optional_tests -trace work=tidyup
    Reasons: target
Comment 4 Harris Landgarten 2016-04-14 04:02:48 UTC
BTW I downgraded to glibc-2.22-r4 and nfs mount worked immediately. Back to 2.23-r1 and broken again so it is definitely a runtime regression. If I could rebuild nfs-utils I could get further. I already rebuilt all the dependencies of nfs-utils but that did not help.
Comment 5 SpanKY gentoo-dev 2016-04-14 04:04:14 UTC
build breakage is fixed by this:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6db2e20c272323a10ea3afe3741f8c282bfa2d6a

but that still doesn't explain the runtime failure.
Comment 6 Harris Landgarten 2016-04-14 11:47:45 UTC
I rebuilt nfs-utils with the nfs-utils-1.3.3-sysmacros.patch successfully. That did not fix the runtime breakage

sudo mount -t nfs -o nolock MyBookLiveDuo:/nfs/music /home/harrisl/music
mount.nfs: Protocol not supported
Comment 7 Harris Landgarten 2016-04-14 12:09:45 UTC
more details

sudo mount -v -t nfs -o nolock MyBookLiveDuo:/nfs/music /home/harrisl/music
mount.nfs: timeout set for Thu Apr 14 08:03:11 2016
mount.nfs: trying text-based options 'nolock,vers=4.2,addr=192.168.1.136,clientaddr=192.168.1.217'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'nolock,vers=4.1,addr=192.168.1.136,clientaddr=192.168.1.217'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'nolock,vers=4.0,addr=192.168.1.136,clientaddr=192.168.1.217'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'nolock,addr=192.168.1.136'
mount.nfs: prog 100003, trying vers=16, prot=6
mount.nfs: trying 192.168.1.136 prog 100003 vers 16 prot TCP port 2049
mount.nfs: portmap query retrying: RPC: Program/version mismatch
mount.nfs: prog 100003, trying vers=16, prot=17
mount.nfs: trying 192.168.1.136 prog 100003 vers 16 prot UDP port 2049
mount.nfs: portmap query failed: RPC: Program/version mismatch
mount.nfs: Protocol not supported

if I force nfs vers=2 then the mount works. Neither v3 or v4 work with glibc-2.23-r1
Comment 8 Harris Landgarten 2016-04-14 12:47:27 UTC
the fact that vers=2 mounts are working but 3 and 4 not should be a good clue as to the cause.
Comment 9 Harris Landgarten 2016-04-14 17:33:44 UTC
More info:

sudo mount -v -t nfs -o vers=3,nolock MyBookLiveDuo:/nfs/music /home/harrisl/music

works but leaving the vers out fails.

So something is broken in the code that tries and determines the nfs version to use.
Comment 10 Harris Landgarten 2016-04-14 22:22:30 UTC
More testing. The new ebuild didn't change anything. I also tried with -bundled-libs but that fails in the apploader. I went back to the ::gentoo ebuild and that is giving the same failure when launching as vmware from console.

I am running successfully only when starting from a new scope using systemd-run.

I am going the post the log for the successful run.
Comment 11 Harris Landgarten 2016-04-14 22:23:46 UTC
Created attachment 430526 [details]
applog from systemd-run start on ::gentoo ebuild
Comment 12 Harris Landgarten 2016-04-14 22:24:42 UTC
Created attachment 430528 [details]
ui.log from successful start using ::gentoo ebuild and systemd-run
Comment 13 Harris Landgarten 2016-04-14 22:27:09 UTC
posted to wrong bug
Comment 14 Andreas K. Hüttel archtester gentoo-dev 2017-10-25 19:20:13 UTC
any better luck with 2.25?
Comment 15 Andreas K. Hüttel archtester gentoo-dev 2017-12-09 22:39:22 UTC
(In reply to Andreas K. Hüttel from comment #14)
> any better luck with 2.25?

no response
Comment 16 Harris Landgarten 2017-12-09 22:41:04 UTC
no longer a problem. Upgrades must of fixed it