in reply to Re^5: win32 thread version
in thread win32 thread version

It's not normal for 'perl -V' and $Config{osvers} to disagree on the value of 'osvers'.

Look more carefully:

die "Errno architecture (MSWin32-x86-multi-thread-5.0) does not ma +tch executable architecture ($Config{'archname'}-$Config{'osvers'})";
Errno architecture (MSWin32-x86-multi-thread-4.0) does not match execu +table architecture (MSWin32-x86-multi-thread-5.0) at c:/Perl/site/lib +/Errno.pm line 9 .
Platform: osname=MSWin32, osvers=5.0, archname=MSWin32-x86-multi-thread

They both report osver=5.0. It is the literal part of the string that does not agree, therefore, most likely, the AnonyMonk was not reading c:/Perl/site/lib/Errno.pm (or has made copy/paste errors). There could be a second Errno.pm that is causing the problem, for example.

- tye        

Replies are listed 'Best First'.
Re^7: win32 thread version (oops)
by syphilis (Archbishop) on Jan 06, 2008 at 11:29 UTC
    Look more carefully

    Heh ... so I was right ... there *is* a rational explanation ;-)

    I also noticed that, in the original post, Errno.pm was reported as being in perl/site/lib - whereas I'm more used to seeing it in perl/lib. But I didn't pursue that aspect - mainly because I'm no longer sure just where ActiveState are placing the core modules.

    Like you, I'm (now) thinking that the duplication may well be with Errno.pm, rather than Config.pm/Config_heavy.pl.

    Cheers,
    Rob
Re^7: win32 thread version (oops)
by threedaygoaty (Novice) on Jan 07, 2008 at 02:31 UTC
    Hi there, I'm back on the case

    There are two errno.pm files (and cygwin has a third) but

    c:/Perl/site/lib/Errno.pm
    ... "$Config{'archname'}-$Config{'osvers'}" eq "MSWin32-x86-multi-thread-4.0" or die "Errno architecture (MSWin32-x86-multi-thread-4.0) does not ma +tch executable architecture ($Config{'archname'}-$Config{'osvers'})";

    c:/Perl/lib/Errno.pm

    "$Config{'archname'}-$Config{'osvers'}" eq "MSWin32-x86-multi-thread-5.00" or die "Errno architecture (MSWin32-x86-multi-thread-5.00) does not m +atch executable architecture ($Config{'archname'}-$Config{'osvers'})" +;
      Try renaming C:/perl/site/lib/Errno.pm to Errno_hide.pm (so it can't be found). Does that fix the problem ?

      Cheers,
      Rob
        Rob, your test

        perl -MErrno -e "print \"ok\""
        returns "ok" with no error. The memcached sample code is now also able to run...
        It seems to work, then thank you.. what exactly is going on that lead to the original error, do you know?
        Cheers,
        TDG