Home of the Squeezebox™ & Transporter® network music players.
Page 3 of 3 FirstFirst 123
Results 21 to 24 of 24
  1. #21
    Senior Member
    Join Date
    Sep 2009
    Posts
    163
    I ended up using Strawberry Perl, which works sort-of. Certainly enough to reproduce the problem.

    I'm looking now and it appears to be in the File::Next module itself which is 1.06 but the current 1.12 makes no difference. I have not yet instrumented the module, while I will probably do outside LMS.

    I did find this blog post though, which may explain things: https://circulosmeos.wordpress.com/2...ames-and-perl/

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

    Scanner can't see symbols?

    > I ended up using Strawberry Perl, which works sort-of. Certainly enough
    > to reproduce the problem.


    Interesting. How did it fail? We had considered investigating Strawberry
    Perl in the past, but never took the plunge. How did it not really work?

    --

    Michael

  3. #23
    Senior Member
    Join Date
    Sep 2009
    Posts
    163
    OK, time to give up.

    I went back to "basics" and the directory does not appear as a directory to perl. I also tried perl 5.22 just in case.

    Time to give in for now. Thanks for all the suggestions.

    Simple test script:

    Code:
    #!/usr/bin/perl
    
    use utf8;
    
    BEGIN {
      push @INC, 'C:\Users\...\slimserver-public-7.9\CPAN';
    };
    
    opendir(DIR, ".") || die;
    my @contents = readdir(DIR);
    closedir DIR;
    
    foreach (@contents) {
      print "$_\n";
    }
    
    use File::Next;
    
    my $iter = File::Next::everything( "." );
    
    while (my $file = $iter->()) {
      next unless -d $file;
    
      print "$file\n";
    }
    
    use File::Find;
    
    find(\&wanted, ".");
    
    sub wanted
    {
      return unless -d $_;
      print "$File::Find::name\n";
    }

  4. #24
    Senior Member
    Join Date
    Sep 2009
    Posts
    163
    Quote Originally Posted by mherger View Post
    Interesting. How did it fail? We had considered investigating Strawberry
    Perl in the past, but never took the plunge. How did it not really work?
    I got a variety or errors and warning about database initialisation etc. but as that was not a principle concern I didn't look further. It may be the ABI or it may simply be my not understanding of how to bootstrap an install. I let it run, edited the logging conf manually and ran the scanner manually and that was enough.

    I suspect if the perl modules are rebuilt using the Strawberry Perl tool chain instead of Active Perl one (which is how I assume it's done?) it may simply work.

Tags for this Thread

Posting Permissions

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