delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/06/01/21:26:40

From: jim AT jimpick DOT com (Jim Pick)
Subject: Re: Perl 5.004
1 Jun 1997 21:26:40 -0700 :
Sender: mail AT cygnus DOT com
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199706020320.UAA11579.cygnus.gnu-win32@fleming.jimpick.com>
X-Mailer: exmh version 2.0gamma 1/27/96
Original-To: Fabio AT Colorado DOT EDU
Original-Cc: gnu-win32 AT cygnus DOT com
In-Reply-To: Your message of "Sun, 01 Jun 1997 05:06:41 MDT."
<199706011106 DOT FAA12535 AT boulder DOT Colorado DOT EDU>
X-Url: http://www.jimpick.com/
X-Face: Hz"C77\53<,u1}C~=DFwS#Ddj161XLl6W!3g7xjxh*P'`FF^-IYQXX$a*WC~=^8rvy"~<3z
UeQqGo&KZe[}lJg`\+SDMGRVIUJ~P,#(=w~yYv{g9i%"k|\J|jYVvv^Bzfwo=@AddrDMO<xV_IAl`(
TW7;|vH6Kik(,iljluXex0vrnM: SedI AT lbAeNvM
Mime-Version: 1.0
Original-Sender: owner-gnu-win32 AT cygnus DOT com

--==_Exmh_921629800P
Content-Type: text/plain; charset=us-ascii


> 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



--==_Exmh_921629800P
Content-Type: application/pgp-signature

-----BEGIN PGP MESSAGE-----
Version: 2.6.3a

iQCVAwUBM5I75+Qz770qyIfJAQFUYwP+KSGD9Q0QLVKjie4+TYsv7DYmeR1YXtj0
2YSZrTngfhs2kNtOqHZbwsj2YOiPxh4+4GA8J0CXO0Qr5XNjw3x3AORhA5NS+lQX
i9qq1ijG7+xN/jzX9PbHQTgSTMmtLGRp4/923dXAP3ZDfY9PofdNZP4gmBRnFy80
RE6u2L9LopM=
=mk46
-----END PGP MESSAGE-----

--==_Exmh_921629800P--
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019