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
Results 21 to 30 of 38
-
2012-03-30, 05:14 #21Junior Member
- Join Date
- Mar 2011
- Posts
- 4
-
2012-03-30, 10:00 #22Junior Member
- Join Date
- Jan 2010
- Posts
- 6
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
-
2012-03-30, 11:55 #23Member
- Join Date
- Jan 2011
- Posts
- 47
Yap, that's what I'd suggest too.
-
2012-03-31, 10:28 #24Junior 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.
-
2012-03-31, 11:52 #25Member
- Join Date
- Jan 2011
- Posts
- 47
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....
-
2012-04-01, 02:10 #26Junior 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.
-
2012-04-01, 02:49 #27Member
- Join Date
- Jan 2011
- Posts
- 47
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.
-
2012-04-01, 11:09 #28Member
- Join Date
- Jan 2011
- Posts
- 47
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.
-
2012-04-02, 00:21 #29Junior Member
- Join Date
- Mar 2011
- Posts
- 4
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
-
2012-04-02, 23:58 #30Junior 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


Reply With Quote
