Hi All,

I'm trying to compile a Perl script
(the XMLTV tools - http://sourceforge.net/projects/xmltv)
into a Win32 executable on Windows XP Home using a custom compiled Perl 5.8.0
(compiled with MinGW). I'm using PAR 0.76.


[Note for those following my previous activity: I gave up on Borland BCC55 and
am now using MinGW, which has worked well for me - PAR compiles at least.]


I am getting the same problems that Barrie Slaymaker reported here:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg00423.html

parl.exe sometimes decides to execute seemingly correctly, but more often
terminates with no error and no output.

Interestingly, I get the same behaviour with _both_ my custom-compiled (MinGW)
par files (parl.exe, parldyn.exe, par.bar, par.pl, pp, pp.bat, tkpp, tkpp.bat)
_and_ the precompiled (VC++?) ones inside the Win32 PAR download from here:


http://cpan2.noris.net/authors/id/A/AU/AUTRIJUS/PAR-0.76-MSWin32-x86-multi-thread-5.8.0.par

Barry reported getting this problem on XP Pro with the ActiveState precompiled
PAR files, and Tofu Optimist reported it too (on XP Home like me).


Tofu offered a possible solution/workaround - if you put parl.exe into Win95
compatibility mode (using file properties in Windows Explorer), run pp,
and then do the same for the generated EXE, it works better.  The message is
here:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg00573.html

I can reproduce this solution with a Hello World program, but it does not
solve the problem for me with my larger program:

Hello World test
----------------

C:\tmp>more tmp.pl
print "Hello, World!\n";

C:\tmp>pp -o tmp.exe tmp.pl
Can't spawn "C:\perl\5.8.0\bin\parl.exe": No error at C:\perl\5.8.0\bin\pp line
341.


C:\tmp>echo Putting C:\perl\5.8.0\bin\parl.exe into Win95 compatibility mode...
Putting C:\perl\5.8.0\bin\parl.exe into Win95 compatibility mode...


C:\tmp>pp -o tmp.exe tmp.pl

C:\tmp>tmp.exe

C:\tmp>tmp.exe

C:\tmp>echo Putting tmp.exe into Win95 compatibility mode...
Putting tmp.exe into Win95 compatibility mode...

C:\tmp>tmp.exe
Hello, World!

C:\tmp>tmp.exe
Hello, World!

Large program test
------------------

C:\BuildXMLTV\xmltv-0.5.25\grab\uk>echo parl.exe is not in Win95 compat mode
parl.exe is not in Win95 compat mode

C:\BuildXMLTV\xmltv-0.5.25\grab\uk>pp -o test.exe tv_grab_uk
Can't spawn "C:\perl\5.8.0\bin\parl.exe": No error at C:\perl\5.8.0\bin\pp line
341.


C:\BuildXMLTV\xmltv-0.5.25\grab\uk>echo Putting parl.exe into Win95 compat mode.
..
Putting parl.exe into Win95 compat mode...


C:\BuildXMLTV\xmltv-0.5.25\grab\uk>pp -o test.exe tv_grab_uk
Can't spawn "C:\perl\5.8.0\bin\parl.exe": No error at C:\perl\5.8.0\bin\pp line
341.


At this point the Windows dialog box pops up saying "par.exe has encountered
a problem" and so on.  All of the previous times it failed silently.

Perhaps this means that I'm coming across a completely new error?

Is it significant that Windows thinks parl.exe is called par.exe?

Please let me know if I can provide some useful information, run some tests,
etc.


Thanks very much,

Andy




Reply via email to