Bug 1012 - Need to add ppc-linux Perl 5.8 binaries (for LinkStation users)
: Need to add ppc-linux Perl 5.8 binaries (for LinkStation users)
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Misc
: 6.0.0
: Other All
: P3 minor (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-03-10 10:59 UTC by Marc Field
Modified: 2008-08-18 10:53 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Field 2005-03-10 10:59:28 UTC
SlimServer 6 will not start on LinkStations that have been upgraded to Perl
5.8.x because the ppc-linux Perl 5.8.x binaries are not included in the current
SlimServer 6 build (as of the 09-Mar-05 nightly).  Most LinkStation users who
have upgraded Perl are using this build:
<http://fieldnetworks.com/slim/perl-5.8.5-linkstation.tar.gz>, by Sam of the
Yahoo! LinkStation_General group.
Comment 1 Dan Sully 2005-03-10 15:37:25 UTC
Marc - I just put up the versions of perl modules we use at:

http://svn.slimdevices.com/vendor/src/

If you can compile them with perl 5.8, I can get the .so files into subversion.
Comment 2 Marc Field 2005-03-12 23:30:54 UTC
Dan,

I have all the modules built except XML-Parser.  I'll post them for you to
download once I've tested them a day or two on my system.  Two questions about
XML-Parser:

1. What SlimServer features are lost if this is not present?
2. If I understand the module's readme correctly, Perl requires the expat
library to be present at runtime in order for XML-Parser to work.  If that is
the case, do you recommed this module is NOT added to the SlimServer package (as
expat is not normally found on a LinkStation)?  Or would you like me to provide
the library as well (which is no problem; I've already built it).  Sorry, I just
don't know enough about this development process to know what's appropraite here.

Marc
Comment 3 Dan Sully 2005-03-12 23:34:28 UTC
Marc - XML::Parser is not required, but recommended.

Usually libexpat is a .a file, so it's statically linked against the perl
Expat.so  lib.

Also - probably just a little too late for you, but I've added a
Bin/build-modules.pl program that will pull down all the required modules and
build them, as well as creating a tarball to send back to me.

It's in the latest subversion tree.
Comment 4 Marc Field 2005-03-13 00:02:37 UTC
Dan,

Thanks for your reply.  I'm still having trouble with XML-Parser.  It's
compiling OK but make test is failing badly.  I'll figure it out.  In the
meantime, please take a look at this tarball:

   http://fieldnetworks.com/slim/cpan-arch-ppc-linux.tgz

Is this what you need for the other modules?

Marc
Comment 5 Dan Sully 2005-03-13 00:07:05 UTC
Yes - and if you could send me the output of perl -V

Also - perl 5.8 should have Digest::MD5 and Storable as part of the base
package, could you verify that for me? I don't want to include them in
SlimServer if that's the case.
Comment 6 Marc Field 2005-03-13 00:15:48 UTC
This may be a stupid question, but how can I tell whether Digest and Storable
were included in the original Perl build, or are there because I just built and
installed the modules?

perl -V output:

Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
  Platform:
    osname=linux, osvers=2.4.17_mvl21-sandpoint, archname=ppc-linux
    uname='linux musicbox 2.4.17_mvl21-sandpoint #990 2004&#495; 5&#65533;21&#65533; &#65533;&#65533; 13:39:00
jst ppc unknown '
    config_args='-de'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
    optimize='-O1',
    cppflags='-fno-strict-aliasing -pipe'
    ccversion='', gccversion='2.95.3 20010315 (release/MontaVista)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =''
    libpth=/lib /usr/lib
    libs=-lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.2.3.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.2.3'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fpic', lddlflags='-shared'


Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under linux
  Compiled at Nov 23 2004 05:14:39
  @INC:
    /usr/local/lib/perl5/5.8.5/ppc-linux
    /usr/local/lib/perl5/5.8.5
    /usr/local/lib/perl5/site_perl/5.8.5/ppc-linux
    /usr/local/lib/perl5/site_perl/5.8.5
    /usr/local/lib/perl5/site_perl
    .
Comment 7 Dan Sully 2005-03-13 00:20:53 UTC
From the original perl 5.8 tarball, do something like:

tar ftvz perl-5.8.5.tar.gz | grep Storable

and repeat with MD5
Comment 8 Marc Field 2005-03-13 00:25:57 UTC
.so files for both are present.
Comment 9 Dan Sully 2005-03-13 00:27:12 UTC
Ok - then they don't need to be checked in separately.
Comment 10 Marc Field 2005-03-13 21:31:09 UTC
Here's XML::Parser (Expat.so).  Finally fixed the problem that was causing the
self tests to fail.  http://fieldnetworks.com/slim/Expat.so.gz

Marc
Comment 11 Dan Sully 2005-03-13 21:38:41 UTC
Ok - everything is checked in as of subversion change 2474.