Home of the Squeezebox™ & Transporter® network music players.
Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 38
  1. #21
    Junior Member
    Join Date
    Mar 2011
    Posts
    4
    Quote Originally Posted by ralphy View Post
    Here's the file.
    Sorry, i'm not very familiar with solaris, but i want zfs!

    The script stops on my machine with following message:

    Skip blib/lib/Audio/Scan.pm (unchanged)
    gcc -c -I. -I.. -Isrc -Iinclude -O3 -DVERSION=\"0.93\" -DXS_VERSION=\"0.93\" -fPIC "-I/usr/perl5/5.12/lib/i86pc-solaris-64int/CORE" -O2 Scan.c
    In file included from Scan.xs:2:0:
    /usr/perl5/5.12/lib/i86pc-solaris-64int/CORE/perl.h:583:24: fatal error: sys/types.h: No such file or directory
    compilation terminated.
    *** Error code 1
    make: Fatal error: Command failed for target `Scan.o'
    make test failed, aborting



    I hope you can help me.

    greets
    xmasman

  2. #22
    Junior Member
    Join Date
    Jan 2010
    Posts
    6
    Quote Originally Posted by xmasman View Post
    In file included from Scan.xs:2:0:
    /usr/perl5/5.12/lib/i86pc-solaris-64int/CORE/perl.h:583:24: fatal error: sys/types.h: No such file or directory
    It looks like your system does not have the system header files installed, you can check by running

    # pkg info system/header

    which should return with

    # pkg info system/header
    Name: system/header
    Summary: Core Header Files
    Description: Core C/C++ header files
    Category: System/Core
    State: Installed
    Publisher: solaris
    Version: 0.5.11
    Build Release: 5.11
    Branch: 0.175.0.0.0.2.1
    Packaging Date: Wed Oct 19 07:31:58 2011
    Size: 10.36 MB
    FMRI: pkg://solaris/system/header@0.5.11,5.11-0.175.0.0.0.2.1:20111019T073158Z

    Presumably you will rather see "pkg: info: no packages matching the following patterns you specified are installed on the system."

    Run

    # pkg install system/header

    to install the missing /usr/include/sys/types.h file.

    -clemens

  3. #23
    Yap, that's what I'd suggest too.

  4. #24
    Junior Member
    Join Date
    Mar 2012
    Posts
    24
    This patch file fixes up libmediascan to a state where symbolic links work for me. I've tested both links to other files and links to directories, but not links to other links. It includes a fix for the other problem that chincheta0815 found, but done in a slightly different way. So you only need this patch, don't try to apply both patches. I'll post my buildme.sh script and a few other instructions on the other Solaris thread soonish.
    Attached Files Attached Files

  5. #25
    Thank you very much!

    Especially your trick with DT_DIR. It is that easy that one does not even think of it. Just use isPathDirectory... WOW.

    It works! Only question I have: Is it possible that the images scanner is case sensitive and does only scan .JPG and not .jpg? A file with .JPG is scanned. A link to it with .jpg not. But the link with the suffix .JPG is scanned... Kind of weird....

  6. #26
    Junior Member
    Join Date
    Mar 2012
    Posts
    24
    I have files with both upper and lower case jpg/JPG extensions to the filesname. Both work for me. If you go to the Settings page on the LMS web page for your server, select the Advanced tab and then Logging in the main dropdown a the top you can then select a "Log Set.." of "Media Scanner". Then Apply it (bottom right).
    Then do a full rescan and you should see debug messages in the service log file in /var/svc/log/application-lmsd\:default.log (unless you've set the logging output to go someplace else). Best to do this with a small library or you will get a lot of output. The info may give some clues as to what it's doing different for files that work or not.

  7. #27
    Thanks for the help.

    Knowing how LMS behaves in usual business helps to debug. I'll start debugging later on...

    I am glad that the SymLink error was not the Solaris-and-GNU-utils thing.

    After your pretty cool libmediascan fixes I hope that once in a while the LMS coding authorities will consider them in their releases.

  8. #28
    I checked the strange behaviour of my LMS installation.

    LMS scans all videos as expected. It follows symlinks like a charm while scanning for video files.

    Scanning my images it does also follow symlinks. At last my logfile does not show anything contrary. But: The scanner does not create any thumbnails or further entries. It only lists the filename/symlink name.

  9. #29
    Junior Member
    Join Date
    Mar 2011
    Posts
    4
    Quote Originally Posted by crabe View Post
    It looks like your system does not have the system header files installed, you can check by running

    # pkg info system/header

    which should return with

    # pkg info system/header
    Name: system/header
    Summary: Core Header Files
    Description: Core C/C++ header files
    Category: System/Core
    State: Installed
    Publisher: solaris
    Version: 0.5.11
    Build Release: 5.11
    Branch: 0.175.0.0.0.2.1
    Packaging Date: Wed Oct 19 07:31:58 2011
    Size: 10.36 MB
    FMRI: pkg://solaris/system/header@0.5.11,5.11-0.175.0.0.0.2.1:20111019T073158Z

    Presumably you will rather see "pkg: info: no packages matching the following patterns you specified are installed on the system."

    Run

    # pkg install system/header

    to install the missing /usr/include/sys/types.h file.

    -clemens
    Thank you!

    You were right.

    But now after 5 minutes, the script stops again with this message:

    cp Scan.bs blib/arch/auto/Media/Scan/Scan.bs
    chmod 644 blib/arch/auto/Media/Scan/Scan.bs
    Manifying blib/man3/Media::Scan.3
    1..1
    not ok 1 - use Media::Scan;
    # Failed test 'use Media::Scan;'
    # at t/01use.t line 3.
    # Tried to use 'Media::Scan'.
    # Error: Can't load 'blib/arch/auto/Media/Scan/Scan.so' for module Media::Scan: ld.so.1: perl: fatal: blib/arch/auto/Media/Scan/Scan.so: hardware capability (CA_SUNW_HW_1) unsupported: 0x300 [ AMD_3DNowx AMD_3DNow ] at /usr/perl5/5.12/lib/i86pc-solaris-64int/DynaLoader.pm line 200.
    # at (eval 4) line 2
    # Compilation failed in require at (eval 4) line 2.
    # BEGIN failed--compilation aborted at (eval 4) line 2.
    # Looks like you failed 1 test of 1.
    make test failed, aborting


    I hope you can help me again.

    Greets
    xmasman

  10. #30
    Junior Member
    Join Date
    Mar 2011
    Posts
    4

    The script did work

    Hello,
    me again.

    I tried the script yesterday on my server. And now it runs through without problems.
    The problem before was on an ESXi Machine.

    But how can i start squeezebox server?
    When i try svcadm enable lmsd, i can't see any process of lms.
    Also with
    3. Various times run 'chown -R lmsd:lmsd /opt/lms-X.X.X' followed by 'svcadm restart lmsd' to solve some startup issues

    Greets
    xmasman

Posting Permissions

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