This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cygwin DLL init error


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]