http://qs321.pair.com?node_id=238596


in reply to perl2exe - no more secrets

I'm trying to compile PAR under cygwin. I've downloaded the source to perl.5.8.0-1 from cygwin, and rebuilt it using the build.sh. When I try to compile PAR, I get the following errors. I end up with a par.dll instead of a par.exe. Can anyone give me pointers on getting it installed? Thanks
$ perl Makefile.PL Writing Makefile for the par.exe program Writing Makefile for PAR $ make cp PAR/Heavy.pm blib/lib/PAR/Heavy.pm cp PAR.pm blib/lib/PAR.pm make[1]: Entering directory `/usr/src/PAR-0.63/myldr' gcc -c -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/lib/perl5/5 +.8.0/cygwin-multi-64int/CORE main.c ld2 main.o -s -s -s -L/usr/local/lib /usr/lib/perl5/5.8.0/cygwin-mul +ti-64int/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.0/cygwin-m +ulti-64int/CORE -lperl -lutil -o par.exe gcc -shared -o par.dll -Wl,--out-implib=libpar.dll.a -Wl,--export-all +-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 \ main.o -s -s -s -L/usr/local/lib /usr/lib/perl5/5.8.0/cygwin-multi-64i +nt/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.0/cygwin-multi-6 +4int/CORE -lperl -lutil Creating library file: libpar.dll.a ./par.exe -I../blib/lib -I/usr/lib/perl5/5.8.0/cygwin-multi-64int -I/u +sr/lib/perl5/5.8.0 -I/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64in +t -I/usr/lib/perl5/site_perl/5.8.0 -I/usr/lib/perl5/site_perl -I/usr/ +src/PAR-0.63 -I. -B -O../script/parl.exe make[1]: *** [../script/parl.exe] Error 255 make[1]: Leaving directory `/usr/src/PAR-0.63/myldr' make: *** [subdirs] Error 2 $

Replies are listed 'Best First'.
Re: Re: perl2exe - no more secrets
by audreyt (Hermit) on Mar 20, 2003 at 16:35 UTC
    The DLL-creation problem has been solved with PAR 0.66, but Cygwin's executable format doesn't seem to like arbitary data appended to it (altough a self-contained script made with 'par.pl' plus a 'perl.exe' works well); I'm working with the list and Mattia to find a solution. (See related discussions.)

    Meanwhile, MSYS+MinGW might be your best bet, and PAR is known to run well on that platform.

Re: Re: perl2exe - no more secrets
by audreyt (Hermit) on Apr 02, 2003 at 20:06 UTC
    Update -- PAR 0.67 has been released and offers complete cygwin support. Much rejoice!