develooper Front page | perl.perl5.porters | Postings from July 2000

[ID 20000729.006] perlbug: ExtUtil::MM_Win32 broken on Win95[with fix]

From:
Mike808
Date:
July 31, 2000 11:14
Subject:
[ID 20000729.006] perlbug: ExtUtil::MM_Win32 broken on Win95[with fix]
Message ID:
3983C8EA.2250F2BD@networkusa.net
This is a bug report for perl from mike808@localhost,
generated with the help of perlbug 1.28 running under perl v5.6.0.


-----------------------------------------------------------------
[Please enter your report here]
I kept getting errors (command not found) every time I tried to 
build modules from CPAN on my Win95 box with ActiveState 616.
I tracked it down in the debugger to line 163 in ExtUtils::MM_Win32.
Perl is trying to verify that the absolute path to the perl
interpreter is valid. However, the code to perform the test
is a hack that doesn't work on Win95's lame-o command.com.

In ExtUtil::MM_Win32.pm, Line 163:

	    $val = `$abs -e "require $ver;" 2>&1`;

I have hacked this to:

	    $val = 0; # `$abs -e "require $ver;" 2>&1`;

I know it sucks, but I already 'know' my perl is operational and
that it can find itself. However, $val always returns '-1' for
me on Windows95, and fails the test.

If I type 'ver' at the command.com prompt, I get the following:
  C:\WINDOWS>ver
  Windows 95. [Version 4.00.1111]

Maybe there's some registry tweaks that Win32 systems can poke
at in order to distinguish Win95 from Win98 and WinNT.

I didn't have time to putz around with it, so I hard-coded it.
Yeah, it sucks that I didn't do all the work, but y'all on P5P
know the best way to perform this test reliably on Win95 boxen.


[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=high
---
Site configuration information for perl v5.6.0:

Configured by mike808 at Tue Jul  4 12:54:14 2000.

Summary of my perl5 (revision 5 version 6 subversion 0) configuration:
  Platform:
    osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
    uname=''
    config_args='undef'
    hint=recommended, useposix=true, d_sigaction=undef
    usethreads=undef use5005threads=undef useithreads=define
usemultiplicity=define
    useperlio=undef d_sfio=undef uselargefiles=undef 
    use64bitint=undef use64bitall=undef uselongdouble=undef
usesocks=undef
  Compiler:
    cc='cl', optimize='-O1 -MD -DNDEBUG', gccversion=
    cppflags='-DWIN32'
    ccflags ='-O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT
-DHAVE_DES_FCRYPT  -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
-DPERL_MSVCRT_READFIX'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=4
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='link', ldflags ='-nologo -nodefaultlib -release 
-libpath:"D:\Perl\lib\CORE"  -machine:x86'
    libpth="D:\Perl\lib\CORE"
    libs=  oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib 
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib 
netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib  version.lib
odbc32.lib odbccp32.lib msvcrt.lib
    libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl56.lib
  Dynamic Linking:
    dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -release 
-libpath:"D:\Perl\lib\CORE"  -machine:x86'

Locally applied patches:
    ACTIVEPERL_LOCAL_PATCHES_ENTRY

---
@INC for perl v5.6.0:
    D:/Perl/lib
    D:/Perl/site/lib
    .

---
Environment for perl v5.6.0:
    HOME=D:\HOME\MIKE808
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=C:\BIN;D:\PERL\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\PROGRAM
FILES\NETWORK ASSOCIATES\PGP;C:\PROGRAM FILES\NETWORK
ASSOCIATES\PGP;D:\PROGRAM FILES\TCL\BIN;C:\PROGRAM FILES\MTS;C:\PROGRAM
FILES\GNU\WINCVS 1.1;C:\CYGWIN\BIN;C:\CYGWIN\USR\LOCAL\BIN
    PERL_BADLANG (unset)
    SHELL (unset)




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About