PDA

View Full Version : nightly 2003-12-11 slimserver error (on xp at least...)



andreas
2003-12-11, 08:50
hey devs...

I'm playing around with the slismerver on my xp box and just downloaded
the 2003-12-11 nightly, which bailed out at start with a nice popup that
said something about not finding "the perl65.dll yadda yadda..."

Anyways, I compared the 20003-12-11 slimserver.pl with the 2003-12-10 version
and found a change at line 91:

2003-12-10 slimserver.pl Line 91:
use lib (@INC, $Bin, catdir($Bin,'CPAN'), catdir($Bin,'CPAN','arch',$Config::Config{archname }) );

2003-12-11 slimserver.pl Line 91:
use lib ($Bin, catdir($Bin,'CPAN'), catdir($Bin,'CPAN','arch',$Config::Config{archname }), @INC);

Copied line 91 from 2003-12-10 slimserver.pl to 2003-12-11 and it works like
a charm (as far as I can tell...)

This happens on a WinXP Pro with perl -v:
This is perl, v5.8.1 built for MSWin32-x86-multi-thread

Who's the baby that did a bad thing(tm)?! ;)

Cheers mates!
/andreas

dean
2003-12-11, 09:25
I've just patched it back and rebuilt the nightlies.

The problem is that we want @INC at the beginning so that the libraries
that come with the perl distros get loaded first, most importantly
Time::HiRes, then give our modules a chance to load.

The problem that Caleb was trying to fix was that if you had CPAN
module that we also had installed, but with a different version, it
would pick up the system one first and it might be out of sync with the
one we had.

Suggestions?


On Dec 11, 2003, at 7:50 AM, andreas wrote:

> hey devs...
>
> I'm playing around with the slismerver on my xp box and just downloaded
> the 2003-12-11 nightly, which bailed out at start with a nice popup
> that
> said something about not finding "the perl65.dll yadda yadda..."
>
> Anyways, I compared the 20003-12-11 slimserver.pl with the 2003-12-10
> version
> and found a change at line 91:
>
> 2003-12-10 slimserver.pl Line 91:
> use lib (@INC, $Bin, catdir($Bin,'CPAN'),
> catdir($Bin,'CPAN','arch',$Config::Config{archname }) );
>
> 2003-12-11 slimserver.pl Line 91:
> use lib ($Bin, catdir($Bin,'CPAN'),
> catdir($Bin,'CPAN','arch',$Config::Config{archname }), @INC);
>
> Copied line 91 from 2003-12-10 slimserver.pl to 2003-12-11 and it
> works like
> a charm (as far as I can tell...)
>
> This happens on a WinXP Pro with perl -v:
> This is perl, v5.8.1 built for MSWin32-x86-multi-thread
>
> Who's the baby that did a bad thing(tm)?! ;)
>
> Cheers mates!
> /andreas
>

Dan Sully
2003-12-11, 09:28
* dean blackketter <dean (AT) slimdevices (DOT) com> shaped the electrons to say...

> I've just patched it back and rebuilt the nightlies.
>
> The problem is that we want @INC at the beginning so that the libraries
> that come with the perl distros get loaded first, most importantly
> Time::HiRes, then give our modules a chance to load.
>
> The problem that Caleb was trying to fix was that if you had CPAN
> module that we also had installed, but with a different version, it
> would pick up the system one first and it might be out of sync with the
> one we had.
>
> Suggestions?

use CPANmodule 5.0; (version number or higher)

-D
--
<qq> noise hair!
<qq> "what the fuck is that shrieking noise coming out of my nose??"

dean
2003-12-11, 09:38
Could you be a little more verbose?


On Dec 11, 2003, at 8:28 AM, Dan Sully wrote:

> * dean blackketter <dean (AT) slimdevices (DOT) com> shaped the electrons to
> say...
>
>> I've just patched it back and rebuilt the nightlies.
>>
>> The problem is that we want @INC at the beginning so that the
>> libraries
>> that come with the perl distros get loaded first, most importantly
>> Time::HiRes, then give our modules a chance to load.
>>
>> The problem that Caleb was trying to fix was that if you had CPAN
>> module that we also had installed, but with a different version, it
>> would pick up the system one first and it might be out of sync with
>> the
>> one we had.
>>
>> Suggestions?
>
> use CPANmodule 5.0; (version number or higher)
>
> -D
> --
> <qq> noise hair!
> <qq> "what the fuck is that shrieking noise coming out of my nose??"
>

andreas
2003-12-11, 09:41
Hey Dean,

Is there any difference between the ActivePerl Time::HiRes and the one
provided with SlimServer except the verision?

I've got ASPerl v5.8.1 and the HiRes.pm I've got is v1.52 while the one
with SlimServer is v01.20.

The error popup I get when trying to launch slimserver.pl is:
---
perl.exe - Unable To Locate Component
This application has failed to start because Perl56.dll was not found.
---

Does it just pick the first one and then it bails out coz it's an oldie?

rgds
/andreas

dean blackketter wrote:

> I've just patched it back and rebuilt the nightlies.
>
> The problem is that we want @INC at the beginning so that the libraries
> that come with the perl distros get loaded first, most importantly
> Time::HiRes, then give our modules a chance to load.
>
> The problem that Caleb was trying to fix was that if you had CPAN module
> that we also had installed, but with a different version, it would pick
> up the system one first and it might be out of sync with the one we had.
>
> Suggestions?
>

Caleb Epstein
2003-12-11, 10:39
On Thu, Dec 11, 2003 at 08:25:22AM -0800, dean blackketter wrote:

> I've just patched it back and rebuilt the nightlies. The problem is
> that we want @INC at the beginning so that the libraries that come
> with the perl distros get loaded first, most importantly
> Time::HiRes, then give our modules a chance to load. The problem
> that Caleb was trying to fix was that if you had CPAN module that we
> also had installed, but with a different version, it would pick up
> the system one first and it might be out of sync with the one we
> had. Suggestions?

Keep things how they are (were?) from 2003-12-10, which is
what you have done.

I don't understand why changing around the order of the "use
lib" would cause a DLL to stop getting loaded, but I agree
that the other side effect of the change (e.g. not picking up
vendor-supplied versions of given modules) are undesirable at
best.

I'm in the process of taking over maintainership of the
Audio::Wav CPAN module so I can get the changes from the
SlimServer copy officially released.

--
Caleb Epstein | bklyn . org | I haven't lost my mind -- it's backed up on
cae at | Brooklyn Dust | tape somewhere.
bklyn dot org | Bunny Mfg. |