Earnie Boyd <earnie@users.sourceforge.net> д
Quoting geffrey Zhang :

> HI All:
>
> who know how to build perl-5.8.8 in msys runtime envirnoment?
>
> I can build perl-5.8.8 using dmake in dos command using mingw
> gcc-3.4.5, but it can't be used in sh envirnoment to create configure
> file !
>
> it can't recognize /mingw/bin directory, it can only recognize
> d:/msys/mingw/bin.
>
> another question, anybody can build bash-3.1 for msys runtime envirnoment?
>
>

I should make a Wiki page for this.

1) get the mingwDVLPR package from the Snapshot.
2) Get the Cygwin perl source package from one of the mirrors, e.g.
ftp://mirror.calvin.edu/cygwin/release/perl/
3) Find the occurrences of __CYGWIN__ or __CYGWIN32__ and add __MSYS__
4) MSYSTEM=MSYS start /msys
5) uname should return a string beginning with MSYS.
6) cd to source directory and build as normal.

I try to do it as you said, but it can't make pass, can you build one to upload it to mingw?

it's very hard to build perl-5.8.7 and bash-3.1 in msys runtime envirnoment !

the following is the error :

          CCCMD =  gcc -DPERL_CORE -c -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -O2  -Wall
`sh  cflags "optimize='-O2'" perly.o`  perly.c
          CCCMD =  gcc -DPERL_CORE -c -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -O2  -Wall
`sh  cflags "optimize='-O2'" op.o`  op.c
          CCCMD =  gcc -DPERL_CORE -c -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -O2  -Wall
`sh  cflags "optimize='-O2'" pad.o`  pad.c
          CCCMD =  gcc -DPERL_CORE -c -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -O2  -Wall
`sh  cflags "optimize='-O2'" regcomp.o`  regcomp.c
          CCCMD =  gcc -DPERL_CORE -c -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -O2  -Wall
`sh  cflags "optimize='-O2'" dump.o`  dump.c
          CCCMD =  gcc -DPERL_CORE -c -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -O2  -Wall
`sh  cflags "optimize='-O2'" util.o`  util.c
          CCCMD =  gcc -DPERL_CORE -c -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -O2  -Wall
util.c: In function `Perl_wait4pid':
util.c:2634: warning: label `finish' defined but not used
util.c:2622: warning: label `hard_way' defined but not used
util.c: In function `Perl_getcwd_sv':
util.c:3973: parse error before `struct'
util.c:3981: `statbuf' undeclared (first use in this function)
util.c:3981: (Each undeclared identifier is reported only once
util.c:3981: for each function it appears in.)
util.c:3985: `orig_cdev' undeclared (first use in this function)
util.c:3986: `orig_cino' undeclared (first use in this function)
util.c:3987: `cdev' undeclared (first use in this function)
util.c:3988: `cino' undeclared (first use in this function)
util.c:3991: `odev' undeclared (first use in this function)
util.c:3992: `oino' undeclared (first use in this function)
util.c:4007: `dir' undeclared (first use in this function)
util.c:4011: `dp' undeclared (first use in this function)
util.c:4015: `namelen' undeclared (first use in this function)
util.c:4026: `tdev' undeclared (first use in this function)
util.c:4027: `tino' undeclared (first use in this function)
util.c:4037: `pathlen' undeclared (first use in this function)
make: *** [util.o] Error 1

Regards

geffrey



עŻ-3.5G20M