delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/07/20:18:01

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 7 Sep 2004 20:17:53 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Isaac Foraker <isaac DOT foraker AT xilinx DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: 1.5.11: execvp bug (XP)
In-Reply-To: <413E4760.8060509@xilinx.com>
Message-ID: <Pine.GSO.4.61.0409071956330.4979@slinky.cs.nyu.edu>
References: <413E410F DOT 5010901 AT xilinx DOT com> <Pine DOT GSO DOT 4 DOT 61 DOT 0409071932160 DOT 4979 AT slinky DOT cs DOT nyu DOT edu> <413E4760 DOT 8060509 AT xilinx DOT com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

Sorry, missed that.  Still, like CGF, I can't reproduce this:

$ echo -e 'default:\n\tperl1 foo.pl' > Makefile
$ echo -e '#!/usr/bin/perl1\n\n\nprint "Success.\\n"' > foo.pl
$ ln -fs /usr/bin/perl /usr/bin/perl1
$ make
perl1 foo.pl
Success.
$ uname -a
CYGWIN_NT-5.1 pechtcha 1.5.12(0.116/4/2) 2004-09-07 15:07 i686 unknown unknown Cygwin
$

There must be something peculiar to your installation.  Does the exact
recipe above work for you?
	Igor

On Tue, 7 Sep 2004, Isaac Foraker wrote:

> As stated in my original post, I renamed make.exe to gmake.exe to avoid
> a name conflict with Opus make (also named make.exe).  So,
> gmake.exe==Cygwin make.exe.  My environment is somewhat customized
> because I have a lot of different build requirements depending on the
> project I am working on.
>
> Renaming gmake back to make gives the same result.
>
> #which make
> /usr/bin/make
>
> #make
> perl foo.pl
> make: execvp: perl: Permission denied
> make: *** [default] Error 127
>
> Thanks,
> IF
>
> Igor Pechtchanski wrote:
>
> > On Tue, 7 Sep 2004, Isaac Foraker wrote:
> >
> > > Yes, the perl soft link works from the command line.  Here's my test
> > > case that fails.
> > >
> > > <foo.pl>
> > > #!/usr/bin/perl
> > >
> > > print "Success.\n"
> > > </foo.pl>
> > >
> > > <Makefile>
> > > default:
> > >       perl foo.pl
> > > </Makefile>
> > >
> > > #ls -l /usr/bin/perl
> > > lrwxrwxrwx    1 isaacf   Domain U       24 Sep  7 12:44 /usr/bin/perl ->
> > > /usr/bin/perl5.8.5.exe
> > >
> > > #gmake
> >    ^^^^^
> >
> > > perl foo.pl
> > > gmake: execvp: perl: Permission denied
> > > gmake: *** [default] Error 127
> >   ^^^^^
> >
> > > #perl foo.pl
> > > Success.
> > >
> > > You may also need to "rm /usr/bin/perl.exe" before you can "ln -s
> > > /usr/bin/perl5.8.5.exe /usr/bin/perl".
> > >
> >
> > According to
> > <http://cygwin.com/cgi-bin2/package-grep.cgi?grep=bin%2Fgmake>, there is
> > no "gmake" in the Cygwin distribution.  Is "gmake" a Windows executable,
> > by any chance?  If so, the behavior is expected -- Windows programs don't
> > understand Cygwin symlinks.
> >
> > Why not use Cygwin make?
> > 	Igor

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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