X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_YG,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <1319408055.79475.YahooMailClassic@web120719.mail.ne1.yahoo.com>
References: <1319408055.79475.YahooMailClassic@web120719.mail.ne1.yahoo.com>
Date: Mon, 24 Oct 2011 08:38:07 +0100
Message-ID: <CAHWeT-ZjJCeyd1dxk8+dkY7obNP1ExJA+W5EBobVPJdvqL8rdQ@mail.gmail.com>
Subject: Re: How to investigate a bug in /bin/mkshortcut.exe ?
From: Andy Koppe <andy.koppe@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id p9O7cUEN031293

On 23 October 2011 23:14, Regid Ichira wrote:
>  /etc/postinstall/mintty.sh's exit code is 127.
>
>    $ cat /etc/postinstall/mintty.sh
>    PROGS=$(/bin/cygpath -P $CYGWINFORALL)
>    /bin/mkdir -p "$PROGS/Cygwin" &&
>    cd "$PROGS/Cygwin" &&
>    /bin/mkshortcut -n mintty /bin/mintty -a - -d "Cygwin Terminal"
>
> By running those commands manually, I think the problem is the last,
> /bin/mkshortcut, line.  How can I investigate it more?
>
>    $ cygcheck -f /bin/mkshortcut.exe
>    cygutils-1.4.6-1
>
>    $ file /bin/mkshortcut.exe
>    /bin/mkshortcut.exe: PE32 executable (console) Intel 80386 (stripped to external PDB), for MS Windows

Try cygcheck without the -f to check that the DLLs that mkshortcut
depends on are present.

cygcheck /bin/mkshortcut.exe

Andy

--
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


