Charles Bailey wrote:

> Hmm.  Not that it helps you much, but that's a bug in the win32 Perl
> installation.  vmsish.pm's shipped in the main lib precisely so that
> code like this won't fail on non-VMS platforms.

OK after building and installing RC2 on Win NT 4 with MSVC 5 
I see this after attempting to C<use vmsish;>

 D:\perl_rc2>./5.6.0/bin/MSWin32-x86/perl -Mvmsish -e "print 'hello'"
 Can't locate vmsish.pm in @INC (@INC contains: 
 D:/perl_rc2/5.6.0/lib/MSWin32-x86 D:/perl_rc2/5.6.0/lib 
 D:/perl_rc2/site/5.6.0/lib/MSWin32-x86 D:/perl_rc2/site/5 .6.0/lib .).
 BEGIN failed--compilation aborted.

So I patch the win32\Makefile (leaving the makefile.mk to someone who
uses dmake) like so:

*** Makefile.old Tue Mar 14 22:41:32 2000
--- Makefile Wed Mar 15 22:54:54 2000
***************
*** 642,647 ****
--- 642,648 ----
  HOSTNAME_DLL  = $(AUTODIR)\Sys\Hostname\Hostname.dll
  
  ERRNO_PM      = $(LIBDIR)\Errno.pm
+ VMSISH_PM     = $(LIBDIR)\vmsish.pm
  
  EXTENSION_C   =               \
                $(SOCKET).c     \
***************
*** 719,725 ****
  #
  
  all : .\config.h $(GLOBEXE) $(MINIMOD) $(CONFIGPM) $(PERLEXE) \
!       $(X2P) $(EXTENSION_DLL) $(EXTENSION_PM)
  
  $(DYNALOADER)$(o) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c
  
--- 720,726 ----
  #
  
  all : .\config.h $(GLOBEXE) $(MINIMOD) $(CONFIGPM) $(PERLEXE) \
!       $(X2P) $(EXTENSION_DLL) $(EXTENSION_PM) $(VMSISH_PM)
  
  $(DYNALOADER)$(o) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c
  
***************
*** 960,965 ****
--- 961,969 ----
        ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
        $(MAKE)
        cd ..\..\win32
+ 
+ $(VMSISH_PM): $(PERLEXE) 
+       copy ..\vms\ext\vmsish.pm $(VMSISH_PM)
  
  doc: $(PERLEXE)
        $(PERLEXE) -I..\lib ..\installhtml --podroot=.. --htmldir=./html \
End of Patch.

Now after running `nmake install` I see:

 D:\perl-5.6.0-RC2\win32>d:\perl_rc2\5.6.0\bin\mswin32-x86\perl -Mvmsish -e "print 
'hello'"
 This isn't VMS at -e line 0
 Compilation failed in require.
 BEGIN failed--compilation aborted.

So it didn't work anyway ;-)

Peter Prymmer




Reply via email to