The problem was with MinGW, perl/site/bin was empty, but ppm upgrade MinGW or 
ppm install MinGW gave nothing since ppm saw that MinGW was installed. 

Eventually I removed and installed MinGW with ppm, placed 
C:\Perl\site\lib\auto\dmake in front of my PATH and the flags are now ok. I had 
still some problems with Zlib and YAML but they are solved. 

I can't still install PAR::Packer from cpan:
Somewhere in the build process:

g++ main.o my_par_pl.o win32.coff -s   -L"C:\Perl\lib\CORE" -o par.exe
main.o:main.c:(.text+0xe): undefined reference to `Perl_get_context'
main.o:main.c:(.text+0x1f): undefined reference to `boot_DynaLoader'
main.o:main.c:(.text+0x2f): undefined reference to `Perl_newXS'
....

collect2: ld returned 1 exit status
dmake:  Error code 129, while making 'par.exe'
dmake:  Error code 255, while making 'subdirs'

Is there a package missing here ?

François


> -----Original Message-----
> From: Sisyphus [mailto:sisyph...@optusnet.com.au]
> Sent: mercredi, 22. avril 2009 10:07
> To: RAPPAZ Francois; par@perl.org
> Subject: Re: Buiding par-packer with dmake
> 
> 
> ----- Original Message -----
> From: "RAPPAZ Francois" <francois.rap...@unifr.ch>
> To: <par@perl.org>
> Cc: <sisyph...@optusnet.com.au>
> Sent: Wednesday, April 22, 2009 5:14 PM
> Subject: RE: Buiding par-packer with dmake
> 
> 
> > Thanks for replying. I have installed a freh activePerl build (825):
> I
> > have
> > - uninstalled ActivePerl form the Windows Control Panel,
> > - deleted all the dir under C:/Perl except the site\lib directory,
> > - run ppm upgrade.
> 
> It may simply be that you need to run 'ppm install MinGW' again. If you
> can
> find 'gcc.exe' in perl/site/bin then that's probably not the case - and
> you
> should check that perl/site/bin is in your path.
> If none of that helps, read on ....
> 
> >
> > Unfortunatly the flag are not what you described below since I got
> the
> > following
> >
> > U:\>perl -V:ld
> > ld='link';
> > U:\>perl -V:obj_ext
> > obj_ext='.obj';
> > U:\>perl -V:lib_ext
> > lib_ext='.lib';
> >
> 
> It looks like MinGW is not being found.
> This could be either because the MinGW bin folder (that contains
> gcc.exe) is
> not in your path, or because a Microsoft Compiler bin folder (that
> contains
> cl.exe) is in your path *before* the MingW bin folder.
> 
> Do you have a Microsoft Compiler installed somewhere ?
> 
> Does 'perl -V:cc' report 'gcc', not 'cl' ?
> 
> Does 'gcc -v' still produce the version info that it used to ? (If so,
> then
> at least we know it's in your path.)
> 
> And which flavour of make is now being reported by 'perl -V:make' ?
> 
> When everything is as it should be, you'll get:
> 
> C:\_32>perl -V:make
> make='dmake';
> 
> C:\_32>perl -V:cc
> Set up gcc environment - 3.4.5 (mingw-vista special r3)
> cc='gcc';
> 
> C:\_32>perl -V:ld
> Set up gcc environment - 3.4.5 (mingw-vista special r3)
> ld='g++';
> 
> C:\_32>perl -V:obj_ext
> Set up gcc environment - 3.4.5 (mingw-vista special r3)
> obj_ext='.o';
> 
> C:\_32>perl -V:lib_ext
> Set up gcc environment - 3.4.5 (mingw-vista special r3)
> lib_ext='.a';
> 
> Cheers,
> Rob
> 
> 
> 
> 
> 
> 

Reply via email to