delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/10/27/01:30:15

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=uvWgQL3+BTh6f39B6lUG4KnFJ3DusAtvY+DvJmM0hv2YEeGiDx926
RNrw5F+ulqVRbzSsdolH7vDudX+J6u1SuluPPTj3PqTE4iCoErriK7AtrQkO8+62
Fd/7CzZBHzWqe2IQBdAk9+qwvSHTajC1/E8zGHVfhKIFR0s+Bd0hV0=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; s=default;
bh=BKMdNQ8HEcP3K/BG6foSu/DZHVs=; b=AwAPCa5HWu4HmHvFpKayK3mLDb8K
lQj4ybvRtGZ70kFhyBuCiPNSTCjmOZ2wtdMrVp9Rs8nU3RDR5tTFbT4QBZwBoPwx
Cz1i3MymeEN3gab3CVPDypZyJj1zauo+aWrmH2riC/1yESBf+gn5KyN15iTP32yH
PZzRStz6roUnA1I=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Mark Geisert <mark AT maxrnd DOT com>
Subject: Re: mkshortcut (cygutils-1.4.14) free error
Date: Tue, 27 Oct 2015 05:29:40 +0000 (UTC)
Lines: 34
Message-ID: <loom.20151027T061000-194@post.gmane.org>
References: <1445135414 DOT 3384650 DOT 413058409 DOT 46BC94AD AT webmail DOT messagingengine DOT com> <1445823930 DOT 241438 DOT 419951441 DOT 109BA262 AT webmail DOT messagingengine DOT com> <562E30AF DOT 5020502 AT cornell DOT edu> <loom DOT 20151026T205200-829 AT post DOT gmane DOT org> <1445904708 DOT 1171081 DOT 420968713 DOT 3D94007E AT webmail DOT messagingengine DOT com>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

Anthony Heading writes:
> I didn't hit any explicit configure issue myself,  rather a bunch of
> unrecognized case-invariant strcmp variants, which took about 10 seconds
> to fix but did make me wonder about the source code.    And then this
> below was the slightly trickier issue:
> 
> % src/mkshortcut/.libs/mkshortcut xyzzy
> mkshortcut: Saving "xyzzy.lnk" failed; does the target directory exist?
> 
> The packaged binary does not do this.

I really appreciate the leads and code you've provided.  Could we please
discuss only on the Cygwin mailing list?  That's the convention we have,
barring extraordinary circumstances :) .  It allows for public review.

Installing gettext-devel and popt-devel got rid of my configure issues.  I
updated lpr/Printer.cc and cygdrop/cygdrop.cc to use strcasecmp() instead of
stricmp() and strcmpi() respectively.  I did not (yet) look into the
compiler warnings that spew during the build of some of the cygutils
executables.

At that point I could reproduce your first mkshortcut issue.  Your patch
seems to fix that issue.  So far, so good.

The second issue with the non-absolute path is more problematic.  Without
your second patch, I do see the issue but only on the 2nd or later
invocation.  In other words, if the xyzzy.lnk file does not initially exist,
the command 'src/mkshortcut/.libs/mkshortcut xyzzy' works and does create
the link file.  Another invocation then shows the error.  Is it simply
mis-reporting that there's an existing link file?  I'm also assuming you're
in the /usr/src/cygutils-1.4.14-1.<arch>/build directory when you issue that
command.

..mark


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

- Raw text -


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