Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Senior Member aubuti's Avatar
    Join Date
    Oct 2005
    Posts
    8,372

    Continued Encode::Detect::Detector problems -- Help!

    Back around Oct 12, with the help of Andy G, I was able to get SC7 running on my PPC-based LinkStation HG. But then a week or so later there were changes and I haven't been able to update SC7 since. The problem seems to lie with the Encode:etect:etector module. I'm probably missing some library or other, but haven't been able to figure out what. I'm running perl 5.8.8, and just upgraded my CPAN.pm to 1.9204.

    Here's the beginning and end of the terminal output. The full log is in the attached zip file. I'd really appreciate some help here. Thanks in advance.

    ken@Cabernet:/usr/local/slimserver$ sudo ./slimserver.pl --daemon
    The following CPAN modules were found but cannot work with SqueezeCenter:
    Encode:etect:etector (loaded 1.00 but missing object file, need 1.00)

    To fix this problem you have several options:
    1. Install the latest version of the module(s) using CPAN: sudo cpan Some::Module
    2. Update the module's package using apt-get, yum, etc.
    3. Run the .tar.gz version of SqueezeCenter which includes all required CPAN modules.

    ken@Cabernet:/usr/local/slimserver$ sudo cpan Encode:etect:etector
    CPAN: File::HomeDir loaded ok (v0.66)
    CPAN: Storable loaded ok (v2.15)
    Going to read /home/ken/.cpan/Metadata
    Database was generated on Tue, 06 Nov 2007 23:36:38 GMT
    Running install for module 'Encode:etect:etector'
    Running make for J/JG/JGMYERS/Encode-Detect-1.00.tar.gz
    CPAN: Digest::SHA loaded ok (v5.45)
    CPAN: Compress::Zlib loaded ok (v2.007)
    Checksum for /home/ken/.cpan/sources/authors/id/J/JG/JGMYERS/Encode-Detect-1.00.tar.gz ok
    Encode-Detect-1.00/
    Encode-Detect-1.00/t/
    Encode-Detect-1.00/t/base.t
    Encode-Detect-1.00/t/encoding.t

    <snip>

    cc -Isrc -I/usr/lib/perl/5.8/CORE -fPIC -x c++ -Iinclude -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o src/nsSBCharSetProber.o src/nsSBCharSetProber.cpp
    cc -Isrc -I/usr/lib/perl/5.8/CORE -fPIC -x c++ -Iinclude -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o src/LangThaiModel.o src/LangThaiModel.cpp
    Copying Detect.pm -> blib/lib/Encode/Detect.pm
    Copying Detector.pm -> blib/lib/Encode/Detect/Detector.pm
    Copying Detector.xs -> lib/Encode/Detect/Detector.xs
    lib/Encode/Detect/Detector.xs -> lib/Encode/Detect/Detector.c
    /mnt/usr/bin/perl -I/usr/lib/perl/5.8 -I/usr/share/perl/5.8 /usr/share/perl/5.8/ExtUtils/xsubpp -noprototypes -typemap /usr/share/perl/5.8/ExtUtils/typemap lib/Encode/Detect/Detector.xs
    cc -Isrc -I/usr/lib/perl/5.8/CORE -DXS_VERSION="1.00" -DVERSION="1.00" -fPIC -x c++ -Iinclude -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o lib/Encode/Detect/Detector.o lib/Encode/Detect/Detector.c
    In file included from Detector.xs:40:
    /usr/lib/perl/5.8/CORE/perl.h:2700: error: parse error before `__attribute__'
    /usr/lib/perl/5.8/CORE/perl.h:2710: error: parse error before `__attribute__'
    /usr/lib/perl/5.8/CORE/perl.h:2710: error: syntax error before `)' token
    In file included from /usr/lib/perl/5.8/CORE/iperlsys.h:51,
    from /usr/lib/perl/5.8/CORE/perl.h:2733,
    from Detector.xs:40:
    /usr/lib/perl/5.8/CORE/perlio.h:117: error: parse error before `__attribute__'
    /usr/lib/perl/5.8/CORE/perlio.h: In function `void PerlIO_define_layer(...)':
    /usr/lib/perl/5.8/CORE/perlio.h:118: error: parse error before `__attribute__'
    /usr/lib/perl/5.8/CORE/perlio.h: In function `PerlIO_funcs*
    PerlIO_find_layer(...)':
    /usr/lib/perl/5.8/CORE/perlio.h:121: error: parse error before `__attribute__'
    /usr/lib/perl/5.8/CORE/perlio.h: In function `PerlIOl** PerlIO_push(...)':
    /usr/lib/perl/5.8/CORE/perlio.h:123: error: parse error before `__attribute__'
    /usr/lib/perl/5.8/CORE/perlio.h: In function `void PerlIO_pop(...)':
    /usr/lib/perl/5.8/CORE/perlio.h:124: error: parse error before `__attribute__'
    /usr/lib/perl/5.8/CORE/perlio.h: In function `AV* PerlIO_get_layers(...)':
    /usr/lib/perl/5.8/CORE/perlio.h:125: error: parse error before `__attribute__'
    /usr/lib/perl/5.8/CORE/perlio.h: In function `void PerlIO_clone(...)':
    /usr/lib/perl/5.8/CORE/perlio.h:220: error: parse error before `__attribute__'
    /usr/lib/perl/5.8/CORE/perlio.h: In function `void PerlIO_init(...)':
    /usr/lib/perl/5.8/CORE/perlio.h:233: error: parse error before `__attribute__'
    /usr/lib/perl/5.8/CORE/perlio.h: In function `PerlIOl** PerlIO_openn(...)':
    /usr/lib/perl/5.8/CORE/perlio.h:351: error: parse error before `__attribute__'
    /usr/lib/perl/5.8/CORE/perlio.h: In function `PerlIOl** PerlIO_fdupopen(...)':
    /usr/lib/perl/5.8/CORE/perlio.h:360: error: parse error before `__attribute__'
    /usr/lib/perl/5.8/CORE/perlio.h: In function `int PerlIO_apply_layers(...)':
    /usr/lib/perl/5.8/CORE/perlio.h:364: error: parse error before `__attribute__'
    /usr/lib/perl/5.8/CORE/perlio.h: In function `int PerlIO_binmode(...)':
    /usr/lib/perl/5.8/CORE/perlio.h:371: error: parse error before `__attribute__'
    /usr/lib/perl/5.8/CORE/perlio.h: In function `void PerlIO_destruct(...)':
    /usr/lib/perl/5.8/CORE/perlio.h:376: error: parse error before `__attribute__'
    In file included from /usr/lib/perl/5.8/CORE/perl.h:2746,
    from Detector.xs:40:
    /usr/lib/perl/5.8/CORE/regexp.h: In function `void PerlIO_cleanup(...)':
    /usr/lib/perl/5.8/CORE/regexp.h:31: error: declaration of `struct regexp' in `
    void PerlIO_cleanup(...)' which does not enclose `::'
    /usr/lib/perl/5.8/CORE/regexp.h:31: confused by earlier errors, bailing out
    error building lib/Encode/Detect/Detector.o from 'lib/Encode/Detect/Detector.c' at /usr/local/share/perl/5.8.8/ExtUtils/CBuilder/Base.pm line 109.
    make: *** [all] Error 2
    JGMYERS/Encode-Detect-1.00.tar.gz
    /usr/bin/make -- NOT OK
    Running make test
    Can't test without successful make
    Running make install
    Make had returned bad status, install seems impossible
    ken@Cabernet:/usr/local/slimserver$
    Attached Files Attached Files

  2. #2
    Administrator andyg's Avatar
    Join Date
    Jan 2006
    Location
    Pittsburgh, PA
    Posts
    7,395

    Continued Encode::Detect::Detector problems-- Help!

    On Nov 7, 2007, at 12:57 AM, aubuti wrote:

    >
    > Back around Oct 12, with the help of Andy G, I was able to get SC7
    > running on my PPC-based LinkStation HG. But then a week or so later
    > there were changes and I haven't been able to update SC7 since. The
    > problem seems to lie with the Encode:etect:etector module. I'm
    > probably missing some library or other, but haven't been able to
    > figure
    > out what. I'm running perl 5.8.8, and just upgraded my CPAN.pm to
    > 1.9204.


    I'm going to make Encode:etect optional again, looking at the CPAN
    test stats it's obvious this module doesn't work in a lot of places.

    http://cpantesters.perl.org/show/Enc...de-Detect-1.00



  3. #3
    Senior Member aubuti's Avatar
    Join Date
    Oct 2005
    Posts
    8,372
    Thanks Andy -- look forward to seeing it. Will it be in the next nightly, or will it take longer than that?

  4. #4
    Administrator andyg's Avatar
    Join Date
    Jan 2006
    Location
    Pittsburgh, PA
    Posts
    7,395

    Continued Encode::Detect::Detector problems-- Help!

    On Nov 7, 2007, at 9:21 AM, aubuti wrote:

    >
    > Thanks Andy -- look forward to seeing it. Will it be in the next
    > nightly, or will it take longer than that?


    Next nightly, but you can make the change yourself but just deleting
    Encode:etect:etector from the file modules.conf.

  5. #5
    Senior Member aubuti's Avatar
    Join Date
    Oct 2005
    Posts
    8,372
    Excellent. Will do.

  6. #6
    Junior Member
    Join Date
    Aug 2007
    Posts
    18

    cpan Encode::Detect::Detector Optional SC7.1???!!?

    Hello Andy,

    I'm confused if you made Encode:etect optional why even when I comment it out of build-perl-modules.pl do I get this error when running ./slimserver.pl

    [slimsrv@fugly] $ ./slimserver.pl
    Can't locate loadable object for module Encode:etect:etector in @INC (@INC contains: /usr/local/squeezecenter-7.1/CPAN/arch/5.8/i86pc-solaris-thread-multi /usr/local/squeezecenter-7.1/CPAN/arch/5.8/i86pc-solaris-thread-multi/auto /usr/local/squeezecenter-7.1/CPAN/arch/5.8.8/i86pc-solaris-thread-multi /usr/local/squeezecenter-7.1/CPAN/arch/5.8.8/i86pc-solaris-thread-multi/auto /usr/local/squeezecenter-7.1/CPAN/arch/5.8/i86pc-solaris-thread-multi /usr/local/squeezecenter-7.1/CPAN/arch/5.8/i86pc-solaris-thread-multi/auto /usr/local/squeezecenter-7.1/CPAN/arch/i86pc-solaris-thread-multi /usr/local/squeezecenter-7.1/lib /usr/local/squeezecenter-7.1/CPAN /usr/local/squeezecenter-7.1 /usr/local/squeezecenter-7.1 /opt/csw/lib/perl/5.8.8 /opt/csw/share/perl/5.8.8 /opt/csw/lib/perl/site_perl /opt/csw/share/perl/site_perl /opt/csw/lib/perl/csw /opt/csw/share/perl/csw .) at /usr/local/squeezecenter-7.1/Slim/Utils/Unicode.pm line 40
    Compilation failed in require at /usr/local/squeezecenter-7.1/Slim/Utils/Unicode.pm line 40.
    BEGIN failed--compilation aborted at /usr/local/squeezecenter-7.1/Slim/Utils/Unicode.pm line 40.
    Compilation failed in require at /usr/local/squeezecenter-7.1/Slim/Utils/Prefs/Namespace.pm line 30.
    BEGIN failed--compilation aborted at /usr/local/squeezecenter-7.1/Slim/Utils/Prefs/Namespace.pm line 30.
    Compilation failed in require at /usr/local/squeezecenter-7.1/Slim/Utils/Prefs.pm line 81.
    BEGIN failed--compilation aborted at /usr/local/squeezecenter-7.1/Slim/Utils/Prefs.pm line 81.
    Compilation failed in require at ./slimserver.pl line 146.
    BEGIN failed--compilation aborted at ./slimserver.pl line 146.
    [slimsrv@fugly] $

    Regards,

    Bret

  7. #7
    Junior Member
    Join Date
    Aug 2007
    Posts
    18

    Angry

    Same error with latest nightly release - 7.2-22491 ;

    [root@fugly] # ./slimserver.pl
    Can't locate loadable object for module Encode:etect:etector in @INC (@INC contains: /usr/local/squeezecenter-7.2-22491/CPAN/arch/5.8/i86pc-solaris-thread-multi /usr/local/squeezecenter-7.2-22491/CPAN/arch/5.8/i86pc-solaris-thread-multi/auto /usr/local/squeezecenter-7.2-22491/CPAN/arch/5.8.8/i86pc-solaris-thread-multi /usr/local/squeezecenter-7.2-22491/CPAN/arch/5.8.8/i86pc-solaris-thread-multi/auto /usr/local/squeezecenter-7.2-22491/CPAN/arch/5.8/i86pc-solaris-thread-multi /usr/local/squeezecenter-7.2-22491/CPAN/arch/5.8/i86pc-solaris-thread-multi/auto /usr/local/squeezecenter-7.2-22491/CPAN/arch/i86pc-solaris-thread-multi /usr/local/squeezecenter-7.2-22491/lib /usr/local/squeezecenter-7.2-22491/CPAN /usr/local/squeezecenter-7.2-22491 /usr/local/squeezecenter-7.2-22491 /opt/csw/lib/perl/5.8.8 /opt/csw/share/perl/5.8.8 /opt/csw/lib/perl/site_perl /opt/csw/share/perl/site_perl /opt/csw/lib/perl/csw /opt/csw/share/perl/csw .) at /usr/local/squeezecenter-7.2-22491/Slim/Utils/Unicode.pm line 40
    Compilation failed in require at /usr/local/squeezecenter-7.2-22491/Slim/Utils/Unicode.pm line 40.
    BEGIN failed--compilation aborted at /usr/local/squeezecenter-7.2-22491/Slim/Utils/Unicode.pm line 40.
    Compilation failed in require at /usr/local/squeezecenter-7.2-22491/Slim/Utils/Prefs/Namespace.pm line 30.
    BEGIN failed--compilation aborted at /usr/local/squeezecenter-7.2-22491/Slim/Utils/Prefs/Namespace.pm line 30.
    Compilation failed in require at /usr/local/squeezecenter-7.2-22491/Slim/Utils/Prefs.pm line 81.
    BEGIN failed--compilation aborted at /usr/local/squeezecenter-7.2-22491/Slim/Utils/Prefs.pm line 81.
    Compilation failed in require at ./slimserver.pl line 146.
    BEGIN failed--compilation aborted at ./slimserver.pl line 146.
    [root@fugly] #

  8. #8
    Senior Member aubuti's Avatar
    Join Date
    Oct 2005
    Posts
    8,372
    It *was* optional, but this module was made required several months back (back in 7.0.1 I believe). See this thread: http://forums.slimdevices.com/showthread.php?t=44891

    Michael H also suggested a workaround, which is what I've been using for the one box I have for which there does not exist a functioning build of this module (because it has a PowerPC processor). The patch goes in Slim::Utils::Unicode to revert that change:
    http://svn.slimdevices.com/7.0/trunk...16112&r2=17825

  9. #9
    Just comment out the line with Encode:etect:etector in /usr/local/squeezecenter-7.1/Slim/Utils/Unicode.pm (line 40)

    Also, see here: http://www.alekz.net/archives/75

  10. #10
    Junior Member
    Join Date
    Dec 2007
    Posts
    16
    This workaround doesn't seem to work for me with the squeezecenter-7.2-22756.tgz installed.

    1. I've checked my Modules.conf:

    # This file contains required minimum module versions and is checked
    # every time SqueezeCenter starts up.

    Cache::Cache 1.04
    CGI::Cookie 1.27
    Class::Accessor 0.31
    Class:ata::Accessor 0.03
    Class:ata::Inheritable 0.04
    Class::Inspector 1.16
    Compress::Zlib 1.41
    Data::URIEncode 0.11
    Date::Parse 2.27
    DBD::mysql 3.0002
    DBI 1.604
    DBIx::Class 0.07001
    File::BOM 0.13
    File::Next 1.02
    File::Temp 0.17
    File::Which 0.05
    GD 2.35
    HTML::Entities 1.32
    HTML::Parser 3.48
    I18N::LangTags 0.35
    IO::String 1.07
    JSON::XS 1.5
    JSON::XS::VersionOneAndTwo 0.31
    Log::Log4perl 1.07
    LWP 5.805
    Math::VecStat 0.08
    Net:NS 0.58
    Net::IP 1.24
    Net::UPnP 1.2.1
    PAR 0.970
    Path::Class 0.13
    Proc::Background 1.08
    SQL::Abstract 1.20
    Template 2.15
    Text::Unidecode 0.04
    Tie::Cache::LRU 0.21
    Tie::LLHash 1.003
    Tie::RegexpHash 0.13
    Time::Zone 2.22
    URI 1.35
    XML::Parser 2.34
    XML::Simple 2.15
    YAML::Syck 0.64

    No detector line in this file for me.

    2. I've placed an # before the detector line in \Slim\Utils\Unicode.pm

    But squeezecenter won't start and gives this in the logfile:
    0011: [08-08-20 09:00:58 ] ssctrl failed to start SqueezeCenter.
    0010:
    0009: 3. Run the .tar.gz version of SqueezeCenter which includes all required CPAN modules.
    0008: 2. Update the module's package using apt-get, yum, etc.
    0007: 1. Install the latest version of the module(s) using CPAN: sudo cpan Some::Module
    0006: To fix this problem you have several options:
    0005:
    0004: DBI (loaded 1.56, need 1.604)
    0003: The following CPAN modules were found but cannot work with SqueezeCenter:
    0002: [08-08-20 09:00:48 ] ssctrl Command line = /volume1/SSODS/sbin/start-stop-daemon --start --chuid admin --exec /volume1/SSODS/bin/perl -- /volume1/SqueezeCenter/slimserver.pl --daemon --pidfile /volume1/SqueezeCenter/Cache/squeezecenter.pid --cachedir /volume1/SqueezeCenter/Cache --logdir /volume1/SqueezeCenter/Logs --prefsdir /volume1/SqueezeCenter/prefs --noupnp
    0001: [08-08-20 09:00:47 ] ssctrl Starting SqueezeCenter 7.2-22756.

    Any solutions?

    Thx,
    Erik

Posting Permissions

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