Bugzilla – Bug 6602
bootstrap.pm throws error for Net::UPnP version 1.2.1
Last modified: 2011-03-16 04:34:10 UTC
With Net::UPnP 1.2.1 installed, slimserver.pl throws the following error at startup: root:gandalf 0 # /tools/squeezecenter/slimserver.pl --logdir /var/log/slimserver --daemon --noupnp --prefsdir /etc/slimserver Argument "1.2.1" isn't numeric in subroutine entry at /export/Tools/SunOS_5.10_i86pc_amd64/squeezecenter-7.0-16207-noCPAN/Slim/bootstrap.pm line 341. carson:gandalf 0 PERL$ perl -e 'use Net::UPnP; print Net::UPnP->VERSION, "\n";' 1.2.1
Consider updating to 1.2.1 for 7.0
I dont think the version of Net::UPNP is the problem. Its the way we handle it. The problem line is: eval { $mod->VERSION( $ver || 0 ); 1; }; All of the modules in modules.conf are of the form: n.mmm These are numeric due to having only ONE decimal point. Net::UPnP instead is 1.2.1, which even when ||'d with 0 would probably not qualify as numeric. hence, the error.
Fixed in 7.0.1 change 18269.
Carson: Can you verify that this issue has been properly address for you? If not,please reopen the bug
Reduce number of active targets for SC