Re: 5.8.2 Library problem: module not seen

2003-12-03 Thread Eric Cholet
Le 2 déc. 03, à 17:29, Randall Perry a écrit :

Thanks. I went ahead and rebuilt all my modules. I've found threads to 
be
incompatible with DBI so had to dump Apple's build.
Huh? I'm using DBI with mysql and postgres with Panther's stock perl
(5.8.1-RC3 drawin-thread-multi-2level).
--
Eric Cholet


Re: 5.8.2 Library problem: module not seen

2003-12-02 Thread Randall Perry
Thanks. I went ahead and rebuilt all my modules. I've found threads to be
incompatible with DBI so had to dump Apple's build.


on 12/2/03 11:15 AM, Chris Nandor at [EMAIL PROTECTED] wrote:

> 
> Anyway, so that's the problem ... you changed architectures between perl
> 5.8.0 and perl 5.8.2.  And you also changed from the stock perl 5.8.1 that
> comes with 10.3, because that uses neither darwin or darwin-2level, but uses
> darwin-thread-multi-2level (which you can get on 5.8.2 by adding
> -Dusethreads to Configure).

-- 
Randall Perry
sysTame

Xserve Web Hosting/Co-location
Website Development/Promotion
Mac Consulting/Sales

http://www.systame.com/




Re: 5.8.2 Library problem: module not seen

2003-12-02 Thread Chris Nandor
In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Randall Perry) wrote:

> Just upgraded from 5.8 to 5.8.2 on OSXS 10.3.1.
> 
> During configure I specified /Library/Perl for site-specific libs.
> 
> It compiled, tested, and installed ok. But when I went to test a script it
> complained that a module wasn't there, though it's in the perl lib path.

No, it isn't.  :)  It is in *a* perl lib path.


> Here's the perl lib path:
> perl -e 'print "$_\n" for @INC'
> /sw/lib/perl5
> /usr/local/lib/perl5/5.8.2/darwin-2level
> /usr/local/lib/perl5/5.8.2
> /Library/Perl/darwin-2level
> /Library/Perl
> /Library/Perl
>
> Here's the old DBI:
> l /Library/Perl/darwin/DBI

darwin != darwin-2level.  As far as perl is concerned -- and rightly so -- 
darwin and darwin-2level are different architectures.  They are not binary 
compatible.

Your options are either to recompile everything, or to build perl 5.8.2 
without 2level (which means a. lying to Configure about your OS version [I 
don't know all the possible repercussions of this] to something less than 
7.0.0, or b. hacking hints/darwin.sh to use the old 10.2 configs even for 
10.3, which is what I did, or c. trying to manually define the right things 
for Configure, which seems to be a big pain).

While I did get rid of 2level, I can't recommend that, as I don't know all 
the potential problems.  It turns out my previous problem was not with 
2level, but that I was neglecting to build libapreq's C library separately 
(d'oh).  But I noticed similar undefined symbol problems with 2level that I 
could not attribute to libapreq, and as I had already built without 2level, 
I left it that way.

I have both installed now, and if I can narrow the problem down with 2level 
later -- if indeed it is a problem with 2level -- I'll post about it.

Anyway, so that's the problem ... you changed architectures between perl 
5.8.0 and perl 5.8.2.  And you also changed from the stock perl 5.8.1 that 
comes with 10.3, because that uses neither darwin or darwin-2level, but uses 
darwin-thread-multi-2level (which you can get on 5.8.2 by adding 
-Dusethreads to Configure).

-- 
Chris Nandor  [EMAIL PROTECTED]http://pudge.net/
Open Source Development Network[EMAIL PROTECTED] http://osdn.com/