Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 553600 - dev-perl/Net-DNS-0.740.0::gentoo failed (configure phase) - Bareword "Errno::EINVAL" not allowed while "strict subs" in use at /usr/lib64/perl5/5.20.2/x86_64-linux/IO/Socket.pm line 135.
Summary: dev-perl/Net-DNS-0.740.0::gentoo failed (configure phase) - Bareword "Errno::...
Status: RESOLVED DUPLICATE of bug 548094
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
: 568476 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-06-29 21:47 UTC by Piotr Szymaniak
Modified: 2015-12-17 17:31 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Szymaniak 2015-06-29 21:47:39 UTC
>>> Emerging (1 of 5) dev-perl/Net-DNS-0.740.0::gentoo
 * Net-DNS-0.74.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                            [ ok ]
>>> Unpacking source...
>>> Unpacking Net-DNS-0.74.tar.gz to /var/tmp/portage/dev-perl/Net-DNS-0.740.0/work
>>> Source unpacked in /var/tmp/portage/dev-perl/Net-DNS-0.740.0/work
>>> Preparing source in /var/tmp/portage/dev-perl/Net-DNS-0.740.0/work/Net-DNS-0.74 ...
 * Applying Net-DNS-0.68-ar.patch ...                                                  [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-perl/Net-DNS-0.740.0/work/Net-DNS-0.74 ...
 * Using ExtUtils::MakeMaker
 * perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none DESTDIR=/var/tmp/portage/dev-perl/Net-DNS-0.740.0/image/ --no-online-tests --no-IPv6-tests
Bareword "Errno::EINVAL" not allowed while "strict subs" in use at /usr/lib64/perl5/5.20.2/x86_64-linux/IO/Socket.pm line 135.
Compilation failed in require at Makefile.PL line 27.
BEGIN failed--compilation aborted at Makefile.PL line 27.
 * ERROR: dev-perl/Net-DNS-0.740.0::gentoo failed (configure phase):
 *   Unable to build!


Portage 2.2.18 (python 2.7.9-final-0, hardened/linux/amd64, gcc-5.1.0, glibc-2.20-r2, 4.0.6 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.0.6-x86_64-AMD_Athlon-tm-_5350_APU_with_Radeon-tm-_R3-with-gentoo-2.2
KiB Mem:     3475940 total,     51104 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 29 Jun 2015 20:15:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33-r2::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.3.5-r1::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            5.1.0::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo/gentoo-portage-rsync-mirror
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nodoc parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="acl aes amd64 avx berkdb bzip2 cli cracklib crypt cxx dri gdbm hardened iconv ipv6 justify mmx mmxext modules multilib ncurses nls nptl openmp pam pax_kernel pcre pie popcnt readline session sse sse2 sse3 sse4_1 sse4_2 sse4a ssl ssp ssse3 tcpd unicode urandom vim-syntax xattr xtpax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" 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="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


[ebuild  N    ] dev-perl/Net-DNS-0.740.0  USE="ipv6 {-test}"
Comment 1 Piotr Szymaniak 2015-07-09 21:42:00 UTC
Same for ~arch version:

 * Package:    dev-perl/Net-DNS-0.810.0
 * Repository: gentoo
 * Maintainer: perl@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc ipv6 kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking Net-DNS-0.81.tar.gz to /var/tmp/portage/dev-perl/Net-DNS-0.810.0/work
>>> Source unpacked in /var/tmp/portage/dev-perl/Net-DNS-0.810.0/work
>>> Preparing source in /var/tmp/portage/dev-perl/Net-DNS-0.810.0/work/Net-DNS-0.81 ...
 * Applying Net-DNS-0.68-ar.patch ...                                                   [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-perl/Net-DNS-0.810.0/work/Net-DNS-0.81 ...
 * Using ExtUtils::MakeMaker
 * perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none DESTDIR=/var/tmp/portage/dev-perl/Net-DNS-0.810.0/image/ --no-online-tests --no-IPv6-tests
Bareword "Errno::EINVAL" not allowed while "strict subs" in use at /usr/lib64/perl5/5.20.2/x86_64-linux/IO/Socket.pm line 135.
Compilation failed in require at Makefile.PL line 27.
BEGIN failed--compilation aborted at Makefile.PL line 27.
 * ERROR: dev-perl/Net-DNS-0.810.0::gentoo failed (configure phase):
 *   Unable to build!
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_configure
 *   environment, line 2451:  Called perl-module_src_configure
 *   environment, line 2059:  Called die
 * The specific snippet of code:
 *               perl Makefile.PL "$@" <<< "${pm_echovar}" || die "Unable to build!";
Comment 2 Piotr Szymaniak 2015-07-09 22:02:53 UTC
I wonder what went wrong here? Why there's a virtual for 6.980.0 that is not in portage tree?

~ # eix MakeMake
* perl-core/ExtUtils-MakeMaker
     Available versions:  ~7.40.0-r1
     Homepage:            http://makemaker.org http://search.cpan.org/dist/ExtUtils-MakeMaker/
     Description:         Create a module Makefile

[I] virtual/perl-ExtUtils-MakeMaker
     Available versions:  6.980.0 ~7.40.0 [M]~7.40.100_rc
     Installed versions:  6.980.0(10:38:01 PM 06/01/2015)
     Description:         Virtual for ExtUtils-MakeMaker

Found 2 matches.


Trying to reemerge:
~ # emerge perl-core/ExtUtils-MakeMaker -vp

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] virtual/perl-CPAN-Meta-Requirements-2.125.0-r1::gentoo  0 KiB
[ebuild  N     ] virtual/perl-ExtUtils-Command-1.180.0-r2::gentoo  0 KiB
[ebuild     U #] dev-lang/perl-5.22.0:0/5.22::gentoo [5.20.2:0/5.20::gentoo] USE="berkdb gdbm -debug -doc -ithreads" 13,509 KiB
[ebuild     U ~] virtual/perl-ExtUtils-Manifest-1.700.0-r1::gentoo [1.630.0-r2::gentoo] 0 KiB
[ebuild  N    ~] perl-core/ExtUtils-MakeMaker-7.40.0-r1::gentoo  430 KiB
[ebuild  N    ~] perl-core/CPAN-Meta-2.143.240::gentoo  USE="{-test}" 97 KiB
[ebuild     U ~] virtual/perl-CPAN-Meta-2.143.240::gentoo [2.140.640::gentoo] 0 KiB
[blocks b      ] >perl-core/CPAN-Meta-2.140.640-r999 (">perl-core/CPAN-Meta-2.140.640-r999" is blocking virtual/perl-CPAN-Meta-2.140.640)
[blocks B      ] >perl-core/ExtUtils-MakeMaker-6.980.0-r999 (">perl-core/ExtUtils-MakeMaker-6.980.0-r999" is blocking virtual/perl-ExtUtils-MakeMaker-6.980.0)

Total: 7 packages (3 upgrades, 4 new), Size of downloads: 14,035 KiB
Conflict: 2 blocks (1 unsatisfied)

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

dev-lang/perl:0

  (dev-lang/perl-5.20.2:0/5.20::gentoo, installed) pulled in by
    dev-lang/perl:0/5.20=[-build(-)] required by (dev-perl/libintl-perl-1.200.0-r1:0/0::gentoo, installed)
                 ^^^^^^^^                                                                                                                     
    =dev-lang/perl-5.20* required by (virtual/perl-ExtUtils-Install-1.670.0:0/0::gentoo, installed)
    ^              ^^^^^                                                                                                                                  
    (and 61 more with the same problems)

  (dev-lang/perl-5.22.0:0/5.22::gentoo, ebuild scheduled for merge) pulled in by
    =dev-lang/perl-5.22* required by (virtual/perl-Digest-1.170.0-r5:0/0::gentoo, installed)
    ^              ^^^^^                                                                                                                           
    (and 6 more with the same problem)


It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously. You may want to try a larger value of
the --backtrack option, such as --backtrack=30, in order to see if
that will solve this conflict automatically.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.


 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (perl-core/ExtUtils-MakeMaker-7.40.0-r1:0/0::gentoo, ebuild scheduled for merge) pulled in by
    perl-core/ExtUtils-MakeMaker

  (virtual/perl-ExtUtils-MakeMaker-6.980.0:0/0::gentoo, installed) pulled in by
    >=virtual/perl-ExtUtils-MakeMaker-6.56 required by (perl-core/CPAN-Meta-2.143.240:0/0::gentoo, ebuild scheduled for merge)


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packages


The following keyword changes are necessary to proceed:
 (see "package.accept_keywords" in the portage(5) man page for more details)
# required by perl-core/ExtUtils-MakeMaker (argument)
=perl-core/ExtUtils-MakeMaker-7.40.0-r1 ~amd64
# required by perl-core/ExtUtils-MakeMaker-7.40.0-r1::gentoo
# required by perl-core/ExtUtils-MakeMaker (argument)
=virtual/perl-ExtUtils-Manifest-1.700.0-r1 ~amd64
# required by perl-core/ExtUtils-MakeMaker-7.40.0-r1::gentoo
# required by perl-core/ExtUtils-MakeMaker (argument)
=virtual/perl-CPAN-Meta-2.143.240 ~amd64
# required by virtual/perl-CPAN-Meta-YAML-0.12.0-r1::gentoo
# required by perl-core/CPAN-Meta-2.143.240::gentoo
# required by virtual/perl-CPAN-Meta-2.143.240::gentoo
# required by perl-core/ExtUtils-MakeMaker-7.40.0-r1::gentoo
# required by perl-core/ExtUtils-MakeMaker (argument)
=dev-lang/perl-5.22.0 ~amd64
# required by virtual/perl-CPAN-Meta-2.143.240::gentoo
# required by perl-core/ExtUtils-MakeMaker-7.40.0-r1::gentoo
# required by perl-core/ExtUtils-MakeMaker (argument)
=perl-core/CPAN-Meta-2.143.240 ~amd64

The following mask changes are necessary to proceed:
 (see "package.unmask" in the portage(5) man page for more details)
# required by virtual/perl-CPAN-Meta-YAML-0.12.0-r1::gentoo
# required by perl-core/CPAN-Meta-2.143.240::gentoo
# required by virtual/perl-CPAN-Meta-2.143.240::gentoo
# required by perl-core/ExtUtils-MakeMaker-7.40.0-r1::gentoo
# required by perl-core/ExtUtils-MakeMaker (argument)
# /usr/portage/profiles/package.mask:
# Andreas K. Huettel <dilfridge@gentoo.org> (04 Jun 2015)
# Perl 5.22 version bump in progress. Mask until everything is finishehd.
=dev-lang/perl-5.22.0
Comment 3 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2015-07-10 11:43:48 UTC
(In reply to Piotr Szymaniak from comment #2)
> I wonder what went wrong here? Why there's a virtual for 6.980.0 that is not
> in portage tree?
> 

No. Virtuals exist to perform an alternation between using perl-core/* for a thing, and for using dev-lang/perl for a thing.

Explicitly installing perl-core/* is an error: Don't do it.

Having perl-core/* in your worldfile is an error: Don't do it.

When virtual/perl-* says "uninstall perl-core/*" do it.

That's what they're for.
Comment 4 Piotr Szymaniak 2015-07-10 13:09:56 UTC
(In reply to Kent Fredric from comment #3)
> Explicitly installing perl-core/* is an error: Don't do it.
> 
> Having perl-core/* in your worldfile is an error: Don't do it.
> 
> When virtual/perl-* says "uninstall perl-core/*" do it.
> 
> That's what they're for.

I didn't to it because this is how I install it, I just tried to solve this (unstable version, stable version etc.) - originally it is pulled by spamassassin and, as described above, doesn't work with both available in portage versions. 

Don't have any other stable Gentoo (doh!) and cant reproduce this on ~arch (both ~x86 and ~amd64).

I just want spamassassin. ;)
Comment 5 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2015-07-10 13:19:43 UTC
Bareword "Errno::EINVAL" not allowed while "strict subs" in use at /usr/lib64/perl5/5.20.2/x86_64-linux/IO/Socket.pm line 135.

^ this is the real issue. Having a compile-time failure from IO::Socket is bad.

That one comes from Perl Itself.

IO::Socket is one of the "dual life" modules.

So your dev-lang/perl install is broken.

This means:

- we need the versions installed of virtual/perl-IO , if any.
- we need the versions installed of perl-core/IO, if any.


Also, I need you to confirm that:

> perl -mIO::Socket -e1 

replicates this problem.
Comment 6 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2015-07-10 13:28:10 UTC
> sys-devel/gcc:            5.1.0::gentoo

Oh. Your perl was built with GCC-5.1.0.

And you have perl-5.20.2, which is broken with GCC-5.1.0

To get past this, please upgrade to perl-5.20.2-r1, which has been patched for GCC5 support.

So you have a broken Errno.

> perl -Mstrict -wMErrno -E"say Errno::EINVAL"

Should print "22" when you have fixed this problem.

( You probably should be running with FEATURES=test if you're using GCC5. A lot of things are silently broken and test suites can pick them out )
Comment 7 Piotr Szymaniak 2015-07-10 13:55:50 UTC
(In reply to Kent Fredric from comment #6)
> And you have perl-5.20.2, which is broken with GCC-5.1.0
> 
> To get past this, please upgrade to perl-5.20.2-r1, which has been patched
> for GCC5 support.

Well, yeah. Didn't even notice that this machine has GCC5. S-: That seems to solve this issue, thanks.
Comment 8 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2015-07-10 16:01:08 UTC

*** This bug has been marked as a duplicate of bug 548094 ***
Comment 9 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2015-12-17 17:31:03 UTC
*** Bug 568476 has been marked as a duplicate of this bug. ***