Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 9 of 9
  1. #1

    LMS with perl-5.26

    running gentoo, upgraded to stable perl-5.26.2

    now LMS-7.9.1 or LMS-7.9.2 (tried both) will not start with error:

    The following modules failed to load: EV JSON::XS Digest::SHA1 YAML::XS

    any fix known?

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,174

    LMS with perl-5.26

    > running gentoo, upgraded to stable perl-5.26.2

    What would "perl -v" tell you?

    --

    Michael

  3. #3
    Thanks for the reply. I'll give the output of perl -V below

    I installed the missing modules (how they got uninstalled or how slimserver.pl
    interacts with them is a mystery to me)

    Now I get this error:

    The following CPAN modules were found but cannot work with Logitech Media Server:
    Image::Scale (loaded 0.11, need 0.08)
    XML::Parser:
    Parser.pm and Expat.pm versions don't match at /home/wesqu/docs/logitechmediaserver-7.9.2-1547616941/CPAN/XML/Parser.pm line 20.
    BEGIN failed--compilation aborted at /home/wesqu/docs/logitechmediaserver-7.9.2-1547616941/CPAN/XML/Parser.pm line 22.
    Compilation failed in require at (eval 135) line 1.


    here is the ouput of perl -V

    Summary of my perl5 (revision 5 version 26 subversion 2) configuration:

    Platform:
    osname=linux
    osvers=4.20.0-gentoo
    archname=x86_64-linux
    uname='linux gandalf 4.20.0-gentoo #1 smp preempt sun dec 30 11:33:57 est 2018 x86_64 intel(r) core(tm) i7-6700 cpu @ 3.40ghz genuineintel gnulinux '
    config_args='-des -Dinstallprefix=/usr -Dinstallusrbinperl=n -Ui_xlocale -Di_ndbm -Di_gdbm -Di_db -DDEBUGGING=none -Dinc_version_list=5.24.3 5.24.1 5.22.3 5.22.2 -Dlibpth=/usr/local/lib64 /lib64 /usr/lib64 -Dnoextensions=ODBM_File -Duseshrplib -Darchname=x86_64-linux -Dcc=x86_64-pc-linux-gnu-gcc -Doptimize=-march=broadwell -O2 -pipe -Dldflags=-Wl,-O1 -Wl,--as-needed -Dprefix=/usr -Dsiteprefix=/usr/local -Dvendorprefix=/usr -Dscriptdir=/usr/bin -Dprivlib=/usr/lib64/perl5/5.26.2 -Darchlib=/usr/lib64/perl5/5.26.2/x86_64-linux -Dsitelib=/usr/local/lib64/perl5/5.26.2 -Dsitearch=/usr/local/lib64/perl5/5.26.2/x86_64-linux -Dvendorlib=/usr/lib64/perl5/vendor_perl/5.26.2 -Dvendorarch=/usr/lib64/perl5/vendor_perl/5.26.2/x86_64-linux -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Dsiteman3dir=/usr/local/man/man3 -Dvendorman1dir=/usr/share/man/man1 -Dvendorman3dir=/usr/share/man/man3 -Dman1ext=1 -Dman3ext=3pm -Dlibperl=libperl.so.5.26.2 -Dlocincpth=/usr/include -Dglibpth=/lib64 /usr/lib64 -Duselargefiles -Dd_semctl_semun -Dcf_by=Gentoo -Dmyhostname=localhost -Dperladmin=root@localhost -Ud_csh -Dsh=/bin/sh -Dtargetsh=/bin/sh -Uusenm -Ui_xlocale -Di_ndbm -Di_gdbm -Di_db -DDEBUGGING=none -Dinc_version_list=5.24.3 5.24.1 5.22.3 5.22.2 -Dlibpth=/usr/local/lib64 /lib64 /usr/lib64 -Dnoextensions=ODBM_File'
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=undef
    usemultiplicity=undef
    use64bitint=define
    use64bitall=define
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
    bincompat5005=undef
    Compiler:
    cc='x86_64-pc-linux-gnu-gcc'
    ccflags ='-fwrapv -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    optimize='-march=broadwell -O2 -pipe'
    cppflags='-fwrapv -fno-strict-aliasing -pipe'
    ccversion=''
    gccversion='7.3.0'
    gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=3
    ivtype='long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=define
    Linker and Libraries:
    ld='x86_64-pc-linux-gnu-gcc'
    ldflags ='-Wl,-O1 -Wl,--as-needed'
    libpth=/usr/local/lib64 /lib64 /usr/lib64 /usr/local/lib /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include-fixed /usr/lib /lib/../lib64 /usr/lib/../lib64 /lib
    libs=-lpthread -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat
    perllibs=-lpthread -ldl -lm -lcrypt -lutil -lc
    libc=libc-2.27.so
    so=so
    useshrplib=true
    libperl=libperl.so.5.26.2
    gnulibc_version='2.27'
    Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=so
    d_dlsymun=undef
    ccdlflags='-Wl,-E'
    cccdlflags='-fPIC'
    lddlflags='-shared -march=broadwell -O2 -pipe -Wl,-O1 -Wl,--as-needed'


    Characteristics of this binary (from libperl):
    Compile-time options:
    HAS_TIMES
    PERLIO_LAYERS
    PERL_COPY_ON_WRITE
    PERL_DONT_CREATE_GVSV
    PERL_MALLOC_WRAP
    PERL_OP_PARENT
    PERL_PRESERVE_IVUV
    USE_64_BIT_ALL
    USE_64_BIT_INT
    USE_LARGE_FILES
    USE_LOCALE
    USE_LOCALE_COLLATE
    USE_LOCALE_CTYPE
    USE_LOCALE_NUMERIC
    USE_LOCALE_TIME
    USE_PERLIO
    USE_PERL_ATOF
    Locally applied patches:
    gentoo/hints_hpux - Fix hpux hints
    gentoo/aix_soname - aix gcc detection and shared library soname support
    gentoo/EUMM-RUNPATH - https://bugs.gentoo.org/105054 cpan/ExtUtils-MakeMaker: drop $PORTAGE_TMPDIR from LD_RUN_PATH
    gentoo/config_over - Remove -rpath and append LDFLAGS to lddlflags
    gentoo/opensolaris_headers - Add headers for opensolaris
    gentoo/patchlevel - List packaged patches for perl-5.26.2(#1) in patchlevel.h
    gentoo/cleanup-paths - Cleanup PATH and shrpenv
    gentoo/enc2xs - Tweak enc2xs to follow symlinks and ignore missing @INC directories.
    gentoo/darwin-cc-ld - https://bugs.gentoo.org/297751 darwin: Use $CC to link
    gentoo/cpan_definstalldirs - Provide a sensible INSTALLDIRS default for modules installed from CPAN.
    gentoo/interix - Fix interix hints
    gentoo/create_libperl_soname - https://bugs.gentoo.org/286840 Set libperl soname
    gentoo/mod_paths - Add /etc/perl to @INC
    gentoo/EUMM_perllocalpod - cpan/ExtUtils-MakeMaker: remove targets that generate perllocal.pod
    gentoo/drop_fstack_protector - https://bugs.gentoo.org/348557 Don't force -fstack-protector on everyone
    gentoo/usr_local - Configure: Don't include sources in /usr/local/ for compiling perl
    gentoo/D-SHA-CFLAGS - https://bugs.gentoo.org/506818 Do not set custom CFLAGS in cpan/Digest-SHA
    gentoo/io_socket_ip_tests - cpan/IO-Socket-IP: Disable network tests
    gentoo/tests - Fix EUMM podlocal tests
    gentoo/no-nsl.patch -
    debian/cpan-missing-site-dirs - Fix CPAN::FirstTime defaults with nonexisting site dirs if a parent is writable
    debian/makemaker-pasthru - Pass LD settings through to subdirectories
    fixes/memoize_storable_nstore - [rt.cpan.org #77790] Memoize::Storable: respect 'nstore' option not respected
    fixes/podman-pipe - Better errors for man pages from standard input
    fixes/respect_umask - Respect umask during installation
    fixes/net_smtp_docs - [rt.cpan.org #36038] Document the Net::SMTP 'Port' option
    fixes/document_makemaker_ccflags - [rt.cpan.org #68613] Document that CCFLAGS should include $Config{ccflags}
    fixes/parallel-manisort.patch - Fix parallel building
    Built under linux
    Compiled at Jan 5 2019 10:26:55
    @INC:
    /etc/perl
    /usr/local/lib64/perl5/5.26.2/x86_64-linux
    /usr/local/lib64/perl5/5.26.2
    /usr/lib64/perl5/vendor_perl/5.26.2/x86_64-linux
    /usr/lib64/perl5/vendor_perl/5.26.2
    /usr/local/lib64/perl5
    /usr/lib64/perl5/vendor_perl
    /usr/lib64/perl5/5.26.2/x86_64-linux
    /usr/lib64/perl5/5.26.2

  4. #4
    Senior Member
    Join Date
    Aug 2012
    Location
    Austria
    Posts
    805
    Quote Originally Posted by albright View Post
    I installed the missing modules (how they got uninstalled or how slimserver.pl
    interacts with them is a mystery to me)

    Now I get this error:

    The following CPAN modules were found but cannot work with Logitech Media Server:
    Image::Scale (loaded 0.11, need 0.08)
    XML::Parser:
    Parser.pm and Expat.pm versions don't match at /home/wesqu/docs/logitechmediaserver-7.9.2-1547616941/CPAN/XML/Parser.pm line 20.
    BEGIN failed--compilation aborted at /home/wesqu/docs/logitechmediaserver-7.9.2-1547616941/CPAN/XML/Parser.pm line 22.
    Compilation failed in require at (eval 135) line 1.
    See this post.
    How did you install the modules? Did you compile them yourself (with buildme.sh) or use CPAN / portage? Did you install LMS from the -noCPAN tar?

  5. #5
    How did you install the modules? Did you compile them yourself (with buildme.sh) or use CPAN / portage? Did you install LMS from the -noCPAN tar?

    I sometimes used emerge if there was a gentoo package; sometimes the cpan command.
    I was trying to run the LMS *with* the CPAN files.

    I don't really understand but thought that the tar.gz versions of LMS used all the internal
    perl modules that are in the CPAN directory.

    Instead it seems some peculiar mixture of those modules and system modules.

    Had the same problem with another gentoo computer and downgraded perl to 5.24.3 and LMS works on
    that computer (using LMS from the squeezebox overlay).

    I am sure that there is a way to get LMS working with newer perl versions; but the loss of LMS is scary to contemplate.

  6. #6
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,174

    LMS with perl-5.26

    > I am sure that there is a way to get LMS working with newer perl
    > versions; but the loss of LMS is scary to contemplate.


    The tarball should indeed be working. But if in doubt, you can compile
    the Perl binaries from
    https://github.com/Logitech/slimserv...ublic/7.9/CPAN

    --

    Michael

  7. #7
    Senior Member
    Join Date
    Aug 2012
    Location
    Austria
    Posts
    805
    Quote Originally Posted by albright View Post
    I sometimes used emerge if there was a gentoo package; sometimes the cpan command.
    Don't use portage for LMS' modules (unless the exact version of the module is in portage (which never is)).
    CPAN is even worse, as this will conflict with portage and LMS

    Quote Originally Posted by albright View Post
    I was trying to run the LMS *with* the CPAN files.

    using LMS from the squeezebox overlay).
    Chose on approach and don't mix them:
    - use media-sound//logitechmediaserver-bin from gentoo-squeezebox-overlay
    - use the full LMS tar (which includes the binaries for most platforms, and is used by the ebuild as well)
    - use the -noCPAN LMS tar and build the binaries yourself using the sources and buildme.sh from the link posted by Michael

  8. #8
    Great progress and some

    once I rebuilt perl with +ithreads 7.9.2 would start (and it works fine); 7.9.1 still fails but doesn't matter

  9. #9
    Junior Member
    Join Date
    Nov 2010
    Location
    Ireland
    Posts
    8
    Quote Originally Posted by albright View Post
    Great progress and some

    once I rebuilt perl with +ithreads 7.9.2 would start (and it works fine); 7.9.1 still fails but doesn't matter
    For a working 7.9.1 from the overlay, apply the patch to the ebuild found here: https://github.com/hickinbottoms/gen...verlay/pull/22

    This has been working fine for me for a couple of weeks.

    Paul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •