Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3EF9E968.7050707@mvista.com>
Date: Wed, 25 Jun 2003 11:26:48 -0700
From: Doru Carastan <doru.carastan@mvista.com>
Organization: MontaVista Software, Inc.
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030529
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Cygwin DLL init error
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

I have found the problem. During 'make install prefix=/install' the 
cygwin1.dll is installed as a data file. 'cacls cygwin1.dll' shows that 
the file is lacking the FILE_EXECUTE and FILE_GENERIC_EXECUTE 
attributes. Doing 'chmod +x cygwin1.dll' or copying the file with 
Explorer restores the executable flags. The problem is visible on ntfs 
partitions under WinXP. It is probably present on Win2K and WinNT 4.0 
hosts too.

Please consider the following patch:

diff -uNr cygwin.orig/winsup/cygwin/Makefile.in 
cygwin/winsup/cygwin/Makefile.in
--- cygwin.orig/winsup/cygwin/Makefile.in	2003-03-09 12:14:06.000000000 
-0800
+++ cygwin/winsup/cygwin/Makefile.in	2003-06-23 16:07:48.000000000 -0700
@@ -206,7 +206,7 @@
  uninstall: uninstall-libs uninstall-headers uninstall-man

  install-libs: $(TARGET_LIBS)
-	$(INSTALL_DATA) $(TEST_DLL_NAME) $(bindir)/$(DLL_NAME); \
+	$(INSTALL_PROGRAM) $(TEST_DLL_NAME) $(bindir)/$(DLL_NAME); \
  	for i in $^; do \
  	    $(INSTALL_DATA) $$i $(tooldir)/lib/`basename $$i` ; \
  	done

-- 
Doru Carastan
Windows Host Engineer
Phone: 408-992-4497
Email: doru.carastan@montavista.com
        ivbdcc@pacbell.net


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

