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

Bug 612184

Summary: dev-lang/python-3 fails to emerge in Gentoo Prefix due to nis and _crypt linking problems
Product: Gentoo/Alt Reporter: WGH <wgh>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED DUPLICATE    
Severity: major CC: mrc_timer
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log (dev-lang/python-3.5.2)
./bin/emerge --info '=dev-lang/python-3.5.2::gentoo_prefix' output

Description WGH 2017-03-10 09:08:43 UTC
So I tried to install a Gentoo Prefix on an old Debian wheezy server, and encountered some problems.

For some reason, python-3.4.5 and python-3.5.2 fail to build on stage3 due to problems in _crypt and nis modules. Here are the relevant parts:

*** WARNING: renaming "_crypt" since importing it failed: build/lib.linux-x86_64-3.5/_crypt.cpython-35-x86_64-linux-gnu.so: undefined symbol: crypt
*** WARNING: renaming "nis" since importing it failed: build/lib.linux-x86_64-3.5/nis.cpython-35-x86_64-linux-gnu.so: undefined symbol: yp_master

I've tried to quickly patch the ebuild (by adding these modules to "disable" list), and it helped to get past stage3.

However, during `emerge -e system` (when ebuilds were reverted back and lost my quickfixes) the build failed again. Which is odd, as I thought emerge would use prefix-installed libraries (and not fail) instead of ("unreliable") system ones.

Python 2.7 was built successfully (without nis module somehow, but with crypt).

Reproducible: Always
Comment 1 WGH 2017-03-10 09:10:31 UTC
Created attachment 466534 [details]
build.log (dev-lang/python-3.5.2)
Comment 2 WGH 2017-03-10 09:13:33 UTC
Created attachment 466536 [details]
./bin/emerge --info '=dev-lang/python-3.5.2::gentoo_prefix' output
Comment 3 Benda Xu gentoo-dev 2018-01-17 02:19:50 UTC

*** This bug has been marked as a duplicate of bug 587664 ***