You could try installing ExtUtils::FakeConfig.
( I think you need the free nmake from msoft for that - dmake didn't work for 
me )

If you want to use dmake , remove nmake from your path after installing 
ExtUtils::FakeConfig.

Then do

set PERL5OPT=-MConfig_m

before you do
perl Makefile.PL
dmake
etc.

Michael Carman wrote:
I'm trying to get pp working, but I'm getting beat down at every turn. I'm running Perl 5.8.4 (ActivePerl build 810). I have MinGW 3.1.0-1 installed. When I try to build PAR::Packer 0.976 I get the errors below. Can someone who understands the guts at least tell me whether the problem is in PAR::Packer or my environment?

Unfortunately there doesn't seem to be a binary version available for Perl 5.8.4. I was able to install the PPM via http://theoryx5.uwinnipeg.ca/ppms/PAR-Packer.ppd which is listed as "probably" compatible at http://par.wikia.com/wiki/PAR_PPM_Compatibility_List but it dies with "Perl lib version (v5.8.4) doesn't match executable version (v5.8.0)."

I'm at an impasse. All advice is appreciated.

C:\Archives\Perl\PAR-Packer-0.976>dmake
cp lib/App/Packer/PAR.pm blib\lib\App\Packer\PAR.pm
cp lib/PAR/Packer.pm blib\lib\PAR\Packer.pm
cp lib/PAR/Filter/Obfuscate.pm blib\lib\PAR\Filter\Obfuscate.pm
cp lib/PAR/Filter/PodStrip.pm blib\lib\PAR\Filter\PodStrip.pm
cp lib/PAR/StrippedPARL/Base.pm blib\lib\PAR\StrippedPARL\Base.pm
cp lib/PAR/Filter.pm blib\lib\PAR\Filter.pm
cp lib/PAR/Filter/PatchContent.pm blib\lib\PAR\Filter\PatchContent.pm
cp lib/PAR/StrippedPARL/Dynamic.pm blib\lib\PAR\StrippedPARL\Dynamic.pm
cp lib/PAR/Filter/Bytecode.pm blib\lib\PAR\Filter\Bytecode.pm
cp lib/pp.pm blib\lib\pp.pm
cp lib/PAR/Filter/Bleach.pm blib\lib\PAR\Filter\Bleach.pm
cp lib/PAR/StrippedPARL/Static.pm blib\lib\PAR\StrippedPARL\Static.pm
C:\Perl\bin\perl.exe sha1.c.PL sha1.c
gcc -c -g -O2 -DWIN32 -DPERL_IMPLICIT_CONTEXT -DPERL_MSVCRT_READFIX -I"C:\Perl\lib\CORE" sha1.c C:\Perl\bin\perl.exe .\file2c.pl C:\Perl\bin\perl58.dll my_perl.c load_me_0 1 30000 gcc -c -g -O2 -DWIN32 -DPERL_IMPLICIT_CONTEXT -DPERL_MSVCRT_READFIX -I"C:\Perl\lib\CORE" main.c
C:\Perl\bin\perl.exe .\file2c.pl ..\script\par.pl my_par_pl.c load_me_2 1
gcc -c -g -O2 -DWIN32 -DPERL_IMPLICIT_CONTEXT -DPERL_MSVCRT_READFIX -I"C:\Perl\lib\CORE" my_par_pl.c gcc main.o my_par_pl.o win32.coff -s -g -L"C:\Perl\lib\CORE" C:\Perl\lib\CORE\libperl58.a C:\Ming w\lib\libmsvcrt.a C:\Mingw\lib\libmoldname.a C:\Mingw\lib\libkernel32.a C:\Mingw\lib\libuser32.a C:\ Mingw\lib\libgdi32.a C:\Mingw\lib\libwinspool.a C:\Mingw\lib\libcomdlg32.a C:\Mingw\lib\libadvapi32. a C:\Mingw\lib\libshell32.a C:\Mingw\lib\libole32.a C:\Mingw\lib\liboleaut32.a C:\Mingw\lib\libnetap i32.a C:\Mingw\lib\libuuid.a C:\Mingw\lib\libwsock32.a C:\Mingw\lib\libmpr.a C:\Mingw\lib\libwinmm.a
 C:\Mingw\lib\libversion.a C:\Mingw\lib\libodbc32.a --output .\par.exe
Info: resolving ___mb_cur_max by linking to __imp____mb_cur_max (auto-import)
Info: resolving __pctype by linking to __imp___pctype (auto-import)
main.o(.text+0x391): In function `par_findprog':
C:/Archives/Perl/PAR-Packer-0.976/myldr/utils.c:96: undefined reference to `GetModuleFileNameA'
main.o(.text+0x1fe8): In function `par_mktmpdir':
C:/Archives/Perl/PAR-Packer-0.976/myldr/mktmpdir.c:74: undefined reference to `GetUserNameA'
main.o(.text+0x2585): In function `par_rmtmpdir':
C:/Archives/Perl/PAR-Packer-0.976/myldr/mktmpdir.c:230: undefined reference to `GetModuleHandleA'
main.o(.text+0x25b5):C:/Archives/Perl/PAR-Packer-0.976/myldr/mktmpdir.c:233:
  undefined reference to `FreeLibrary'
main.o(.text+0x2677):C:/Archives/Perl/PAR-Packer-0.976/myldr/mktmpdir.c:251:
  undefined reference to `GetModuleHandleA'
main.o(.text+0x26af):C:/Archives/Perl/PAR-Packer-0.976/myldr/mktmpdir.c:254:
  undefined reference to `FreeLibrary'
fu000001.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
fu000003.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
nmth000000.o(.idata$4+0x0): undefined reference to `_nm____mb_cur_max'
nmth000002.o(.idata$4+0x0): undefined reference to `_nm___pctype'
dmake.exe:  Error code 1, while making '.\par.exe'
dmake.exe:  Error code 255, while making 'subdirs'


Reply via email to