This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Perl 5.004



> Has anyone managed to build perl5.004 from the sources on Win95 with b18?

I just did it (thanks to this e-mail).

> After a few hours of struggle, I have what seems to be a working
> perl.exe. However, I get a syntax error in compiling Fcntl.c, which is
> part of the module library.
> 
> The syntax error is reported in op.h, but it seems to come from the
> inclusion of cw32imp.h, which is caused by the definition of
> DLLIMPORT.

I commented out the line:

/* #define  Perl_op   (*__imp_Perl_op) */

in cw32imp.h - I'm not sure about what side-effects this has.
 
> I followed the installation instructions, but that was not sufficient
> to build perl.exe. Specifically, I copied hints/cygwin32.sh to
> config.sh and ran "sh ./Configure -d."

One thing they neglect to mention is that you should do a chmod u+w
on it - or you'll end up having to run Configure a second time when
you find that it can't write out to that file.

>  I had problems because
>    gcc -print-file-name=foo.a
> produces pathnames with a mixture of slashes and backslashes. (I
> modified perlgcc to circumvent the problem.)

I did too - here's the patch:

--- ../perl-munged/perlgcc      Wed Aug 20 21:53:34 1930
+++ perlgcc     Sat Dec  9 21:53:46 1916
@@ -48,8 +48,10 @@
 
 # get the full path name of a few libs:
 my $crt0 = `gcc -print-file-name=crt0.o`;
+$crt0 =~ s/\\/\//g;
 chomp $crt0;
 my $libdir = `gcc -print-file-name=libcygwin.a`;
+$libdir =~ s/\\/\//g;
 chomp $libdir;
 $libdir =~ s/libcygwin\.a//g;

> Also, GNUmakefile did not define CYGWIN32, which resulted in linking
> errors. For that, I added the missing declaration in the hints file.

I didn't have that problem.

I have one additional problem:

I've got a perl.exe in my /usr/local/perl directory (where I built it),
and it works when I run it from there.  But when I install it into
/usr/local/bin/perl.exe, it doesn't run (or at least doesn't return
any output).  Am I missing something?

Cheers,

 - Jim


PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]