fhem / fhem-docker

A basic Docker image for FHEM house automation system, based on Debian Linux.
https://fhem.de/
MIT License
85 stars 27 forks source link

SONOS not longer working #235

Closed dor4711 closed 3 months ago

dor4711 commented 3 months ago

Describe the bug After upgrade to 4 (latest) SONOS is not longer working.

To Reproduce Steps to reproduce the behavior:

  1. After upgrade to latest
  2. Cannot load module SONOS setuuid: Please define XXXX first Cannot load module SONOSPLAYER setuuid: Please define XXXX first

Expected behavior It should work as before.

Logs

2024.06.02 08:20:44.165 1: reload: Error:Modul 00_SONOS deactivated:
 This Perl not built to support threads
Compilation failed in require at ./FHEM/00_SONOS.pm line 137, <$fh> line 73.
BEGIN failed--compilation aborted at ./FHEM/00_SONOS.pm line 137, <$fh> line 73.

2024.06.02 08:20:44.165 0: This Perl not built to support threads
Compilation failed in require at ./FHEM/00_SONOS.pm line 137, <$fh> line 73.
BEGIN failed--compilation aborted at ./FHEM/00_SONOS.pm line 137, <$fh> line 73.

2024.06.02 08:20:44.179 1: reload: Error:Modul 21_SONOSPLAYER deactivated:
 syntax error at ./FHEM/21_SONOSPLAYER.pm line 216, near "SONOS_Log undef"
Global symbol "$def" requires explicit package name (did you forget to declare "my $def"?) at ./FHEM/21_SONOSPLAYER.pm line 224, <$fh> line 77.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/21_SONOSPLAYER.pm line 235, <$fh> line 77.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/21_SONOSPLAYER.pm line 236, <$fh> line 77.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/21_SONOSPLAYER.pm line 238, <$fh> line 77.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/21_SONOSPLAYER.pm line 239, <$fh> line 77.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/21_SONOSPLAYER.pm line 242, <$fh> line 77.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/21_SONOSPLAYER.pm line 244, <$fh> line 77.
Global symbol "$hash" requires explicit package name (did you forget to declare "my $hash"?) at ./FHEM/21_SONOSPLAYER.pm line 245, <$fh> line 77.
syntax error at ./FHEM/21_SONOSPLAYER.pm line 248, near "}"
./FHEM/21_SONOSPLAYER.pm has too many errors.

Desktop (please complete the following information):

dor4711 commented 3 months ago

Ok it works with fhem/fhem:4-threaded-bullseye.

Nevertheless it is surprising that a standard module is not working with "latest".

sidey79 commented 3 months ago

AS noted in the logs, the sonos module needs a special compiled perl(threaded).

Because of this module, the threaded variant is provided.