Bugzilla – Bug 12521
Intallation of SqueezeCenter 7.3.3. on Solaris 10 - Undefined subroutine &Class::XSAccessor::Array::_generate_accessor
Last modified: 2011-03-16 04:34:09 UTC
Error occurs after building latest version of perl modules required by SqueezeCenter. Undefined subroutine &Class::XSAccessor::Array::_generate_accessor called at /opt/squeezecenter-7.3.3/Slim/Utils/Accessor.pm line 97. Compilation failed in require at (eval 217) line 3. ...propagated at /opt/perl/lib/5.10.0/base.pm line 93. BEGIN failed--compilation aborted at /opt/squeezecenter-7.3.3/Slim/Display/NoDisplay.pm line 22. Compilation failed in require at /opt/squeezecenter-7.3.3/Slim/Player/HTTP.pm line 17. BEGIN failed--compilation aborted at /opt/squeezecenter-7.3.3/Slim/Player/HTTP.pm line 17. Compilation failed in require at /opt/squeezecenter-7.3.3/Slim/Web/HTTP.pm line 34. BEGIN failed--compilation aborted at /opt/squeezecenter-7.3.3/Slim/Web/HTTP.pm line 34. Compilation failed in require at /opt/squeezecenter-7.3.3/Slim/Player/Client.pm line 34. Compilation failed in require at /opt/squeezecenter-7.3.3/Slim/Utils/Alarm.pm line 48. BEGIN failed--compilation aborted at /opt/squeezecenter-7.3.3/Slim/Utils/Alarm.pm line 48. Compilation failed in require at /opt/squeezecenter-7.3.3/Slim/Buttons/Alarm.pm line 12. BEGIN failed--compilation aborted at /opt/squeezecenter-7.3.3/Slim/Buttons/Alarm.pm line 12. Compilation failed in require at /opt/squeezecenter-7.3.3/Slim/Buttons/Common.pm line 42. BEGIN failed--compilation aborted at /opt/squeezecenter-7.3.3/Slim/Buttons/Common.pm line 42. Compilation failed in require at ./slimserver.pl line 141. BEGIN failed--compilation aborted at ./slimserver.pl line 141. When using CPAN modules that have been included in squeezecenter-7.3.3.tgz I get the following error: [09-06-24 17:04:36.3927] main::init (270) Starting SqueezeCenter (v7.3.3, r27044, Mon Jun 15 15:03:29 PDT 2009) [09-06-24 17:04:36.4200] Slim::Schema::throw_exception (288) Error: Can't find source for MetaInformation [09-06-24 17:04:36.4206] Slim::Schema::throw_exception (288) Backtrace: frame 0: Slim::Utils::Log::logBacktrace (/opt/squeezecenter-7.3.3/Slim/Schema.pm line 288) frame 1: Slim::Schema::throw_exception (/opt/squeezecenter-7.3.3/CPAN/DBIx/Class/Schema.pm line 150) frame 2: DBIx::Class::Schema::source (/opt/squeezecenter-7.3.3/CPAN/DBIx/Class/Schema.pm line 190) frame 3: DBIx::Class::Schema::resultset (/opt/squeezecenter-7.3.3/Slim/Schema.pm line 602) frame 4: Slim::Schema::single (/opt/squeezecenter-7.3.3/Slim/Music/Import.pm line 660) frame 5: Slim::Music::Import::stillScanning (./slimserver.pl line 997) frame 6: main::cleanup (/opt/squeezecenter-7.3.3/Slim/bootstrap.pm line 389) frame 7: Slim::bootstrap::sigint (/opt/squeezecenter-7.3.3/Slim/bootstrap.pm line 423) frame 8: Slim::bootstrap::theEND (./slimserver.pl line 1053) frame 9: main::END (./slimserver.pl line 828) frame 10: (eval) (./slimserver.pl line 828)
Andy says he'll have a look
7.3.3 requires Class::XSAccessor::Array 0.05. I guess you installed a newer version? Install version 0.05 and you should be ok. Your other option is to remove all traces of Class::XSAccessor::Array, this will run fine, just slower. Also, in 7.3.4 I changed the detection code to only work if you have 0.05.
Hello Andy I removed all the instances of Class::XSAccessor::Array but still get the error below when using the latest CPAN modules as well as the modules included in the 7.3.3 archive. ./slimserver.pl [09-06-29 20:45:47.4483] main::init (270) Starting SqueezeCenter (v7.3.3, r27044, Mon Jun 15 15:03:29 PDT 2009) [09-06-29 20:45:47.4714] Slim::Schema::throw_exception (288) Error: Can't find source for MetaInformation [09-06-29 20:45:47.4736] Slim::Schema::throw_exception (288) Backtrace: frame 0: Slim::Utils::Log::logBacktrace (/opt/squeezecenter-7.3.3/Slim/Schema.pm line 288) frame 1: Slim::Schema::throw_exception (/opt/squeezecenter-7.3.3/CPAN/DBIx/Class/Schema.pm line 150) frame 2: DBIx::Class::Schema::source (/opt/squeezecenter-7.3.3/CPAN/DBIx/Class/Schema.pm line 190) frame 3: DBIx::Class::Schema::resultset (/opt/squeezecenter-7.3.3/Slim/Schema.pm line 602) frame 4: Slim::Schema::single (/opt/squeezecenter-7.3.3/Slim/Music/Import.pm line 660) frame 5: Slim::Music::Import::stillScanning (./slimserver.pl line 997) frame 6: main::cleanup (/opt/squeezecenter-7.3.3/Slim/bootstrap.pm line 389) frame 7: Slim::bootstrap::sigint (/opt/squeezecenter-7.3.3/Slim/bootstrap.pm line 423) frame 8: Slim::bootstrap::theEND (./slimserver.pl line 1053) frame 9: main::END (./slimserver.pl line 828) frame 10: (eval) (./slimserver.pl line 828) Version 0.05 is no longer available on CPAN so did not try a custom build and install.
Did you try 7.3.4? Version 0.05 is archived here: http://svn.slimdevices.com/repos/slim/7.3/trunk/vendor/CPAN/Class-XSAccessor-Array-0.05.tar.gz
Hello Andy The previous update was for version 7.3.3. I downloaded 7.3.4 and did the following: 1. sym linked squeezecenter -> squeezecenter-7.3.4-27205 in /opt 2. run /opt/squeezecenter/slimserver.pl and got the following error: ./slimserver.pl The following modules failed to load: DBD::mysql XML::Parser::Expat HTML::Parser Digest::SHA1 YAML::Syck GD To download and compile them, please run: /opt/squeezecenter-7.3.4-27205/Bin/build-perl-modules.pl DBD::mysql XML::Parser::Expat HTML::Parser Digest::SHA1 YAML::Syck GD Exiting.. 3. run /opt/squeezecenter-7.3.4-27205/Bin/build-perl-modules.pl DBD::mysql XML::Parser::Expat HTML::Parser Digest::SHA1 YAML::Syck GD 4. run /opt/squeezecenter/slimserver.pl and get the following error: The following modules failed to load: DBD::mysql To download and compile them, please run: /opt/squeezecenter-7.3.4-27205/Bin/build-perl-modules.pl DBD::mysql Exiting.. 5. confirmed DBD::mysql is in the /opt/squeezecenter/CPAN directory and version=3.0002 /opt/squeezecenter/CPAN/DBD/mysql.pm Thanks
You need to compile the modules as you did before, or copy the binaries from the 7.3.3 dir. I consider this bug fixed.
Thanks Andy I copied the modules which I had previously build into the 7.3.4 directory, but I still get the same error. I will try and rebuild from scratch by removing the squeezecenter/CPAN directory; run slimserver.pl and install each module as requested. Thanks Adrian
This bug has been marked as fixed in the 7.4.0 release version of SqueezeBox Server! * SqueezeCenter: 28672 * Squeezebox 2 and 3: 130 * Transporter: 80 * Receiver: 65 * Boom: 50 * Controller: 7790 * Radio: 7790 Please see the Release Notes for all the details: http://wiki.slimdevices.com/index.php/Release_Notes If you haven't already, please download and install the new version from http://www.logitechsqueezebox.com/support/download-squeezebox-server.html If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.