delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/10/04/10:26:42

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <3759e04c0710040726t61d47d00kb5b5103ed639152f@mail.gmail.com>
Date: Thu, 4 Oct 2007 10:26:18 -0400
From: "Lynn Winebarger" <owinebar AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Bad EXE format (error 193)
MIME-Version: 1.0
X-IsSubscribed: yes
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

(Sorry for the formatting, I belatedly subscribed to the list and got
this as a thread digest)
> From: "Dave Korn" <dave DOT korn AT artimi DOT com>
>
> > On 04 October 2007 14:56, Dave Korn wrote:
> >
> >>   We might be able to make guesses at what was wrong with the compiled
> >> program if you told us *in what way* it is "not close enough to satisfy
> >> Windows XP".
> >
> >   Ah.  And I just took a closer look at the subject line.  So I'm guessing
> > you see an error message along those lines, yes?  Hm.  Does it still happen
> > if you compile the most basic sort of "hello world" program?
>
>
>   It might also be informative to run "cygcheck <path-to-exe>" on your
> compiled executable; that'll display the dependent DLLs for you.  A bit of
> googling suggests that 193 can be caused by a corrupt/bogus executable, but
> equally by a good executable thatt depends on a DLL which is faulty.
>

Thanks, Dave.  I did compile a hello-world.c program, and it ran, but
I had also compiled PLT scheme v360 before (needed to bootstrap
Larceny) and had run it without problem as well (I had thought this
might be a permission issue, because what bash actually reports is
"Access denied" - the underlying error took further investigation).

$ cygcheck ./larcenybin.exe
.\larcenybin.exe
  C:\cygwin\bin\cygwin1.dll
    C:\WINDOWS\system32\ADVAPI32.DLL
      C:\WINDOWS\system32\ntdll.dll
      C:\WINDOWS\system32\KERNEL32.dll
      C:\WINDOWS\system32\RPCRT4.dll


Thanks,
Lynn

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