From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128674 invoked by alias); 27 Oct 2015 05:29:57 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 128662 invoked by uid 89); 27 Oct 2015 05:29:57 -0000 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 Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 27 Oct 2015 05:29:55 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZqwpT-0002t6-UP for cygwin@cygwin.com; Tue, 27 Oct 2015 06:29:52 +0100 Received: from 76-217-5-154.lightspeed.irvnca.sbcglobal.net ([76.217.5.154]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Oct 2015 06:29:51 +0100 Received: from mark by 76-217-5-154.lightspeed.irvnca.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Oct 2015 06:29:51 +0100 To: cygwin@cygwin.com From: Mark Geisert Subject: Re: mkshortcut (cygutils-1.4.14) free error Date: Tue, 27 Oct 2015 09:30:00 -0000 Message-ID: References: <1445135414.3384650.413058409.46BC94AD@webmail.messagingengine.com> <1445823930.241438.419951441.109BA262@webmail.messagingengine.com> <562E30AF.5020502@cornell.edu> <1445904708.1171081.420968713.3D94007E@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg00475.txt.bz2 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./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