delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/03/23/14:04:23

X-Spam-Check-By: sourceware.org
Date: Thu, 23 Mar 2006 14:03:53 -0500 (EST)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: John covici <covici AT ccs DOT covici DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: problems running mmv on cygwin
In-Reply-To: <17442.61235.778033.593603@ccs.covici.com>
Message-ID: <Pine.GSO.4.63.0603231400310.16535@access1.cims.nyu.edu>
References: <m3y7z1m2kx DOT fsf AT ccs DOT covici DOT com> <Pine DOT GSO DOT 4 DOT 63 DOT 0603231344410 DOT 16535 AT access1 DOT cims DOT nyu DOT edu> <17442 DOT 61235 DOT 778033 DOT 593603 AT ccs DOT covici DOT com>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

Ugh, top-posting...  Reformatted.

On Thu, 23 Mar 2006, John covici wrote:

> on Thursday 03/23/2006 Igor Peshansky(pechtcha AT XX DOT XXX DOT XXX) wrote

<http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Thanks.

>  > On Thu, 23 Mar 2006, John Covici wrote:
>  >
>  > > Hi.  I just installed cygwin and I wanted to compile and run mmv.  I
>  > > got the source and ran the Makefile -- there was no configure script.
>  > > When I try to start the program I get the Microsoft dialog about
>  > > sending an error report.  Looks like the offset was 10000 and the
>  > > error was0xc0000005.
>  > >
>  > > I can send a cygcheck if desired.
>  > >
>  > > Any assistance would be appreciated.
>  >
>  > You should really be asking the suppliers of mmv, but error 0xc0000005
>  > ("the application could not be initialized properly") is usually
>  > indicative of the missing execute permission on some DLL.  Make sure you
>  > "chmod a+x" all the DLLs that are produced by the build.
>  > FWIW, "gcc -shared" marks DLLs as executable, so there must be some other
>  > piece of code (e.g., "install -m 0644" in the Makefile) that changes the
>  > permissions.
>  > 	Igor
>
> Well, the problem is that no dll's are produced at all -- after all
> this is just C code.  Here is the Makefile if that is any help.
>
> Thanks.
>
> # Possible defines in CONF:
> #	IS_MSDOS IS_SYSV IS_V7 IS_BSD HAS_DIRENT HAS_RENAME MV_DIR
>
> CC		=gcc
> LD		=$(CC)
> CONF		=-DIS_SYSV -DHAS_DIRENT -DHAS_RENAME
> CFLAGS		=-O2 $(CONF)
> LDFLAGS		=-s -N
>
> #IBIN		=$(LOCAL)$(ARCH)/bin
> #IMAN		=$(LOCAL)$(ANY)/man
> IBIN=$(DESTDIR)/usr/bin/
> IMAN=$(DESTDIR)/usr/man/
>
> mmv:		mmv.o
>
> clean:
> 	rm -f mmv mmv.o
>
> install:	$(DEST)$(IBIN)/mmv
> install:	$(DEST)$(IMAN)/man1/mmv.1
>
> $(DEST)$(IBIN)/mmv:		mmv;	cp $? $@
> $(DEST)$(IMAN)/man1/mmv.1:	mmv.1;	cp $? $@

Hmm...  The Makefile looks fine (more or less).  The only possible problem
might be that the "cp" command in the install step strips away the execute
permission from the executable, so that's one thing to check...

Another possibility is that one of the DLLs that mmv needs is
inaccessible.  What does the output of "cygcheck mmv.exe" show?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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