From facdd5dd4a564a6353ae46c75604ba5493ca03de Mon Sep 17 00:00:00 2001 From: Joshua Daniel Franklin Date: Sun, 2 Oct 2005 20:56:53 +0000 Subject: 2005-10-02 Joshua Daniel Franklin * faq-what.xml: Add 2003 and WOW64 to "supported" FAQ. * faq-programming.xml: Fix cygexec FAQ, building link. --- winsup/doc/faq-programming.xml | 38 +++++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 13 deletions(-) (limited to 'winsup/doc/faq-programming.xml') diff --git a/winsup/doc/faq-programming.xml b/winsup/doc/faq-programming.xml index 7cc6e4493..af08be354 100644 --- a/winsup/doc/faq-programming.xml +++ b/winsup/doc/faq-programming.xml @@ -76,7 +76,8 @@ main GCC distribution, anyway. First of all, if you are using make -j[N], then stop. It doesn't work well. Also beware of using non-portable shell features in your -Makefiles (see tips at http://cygwin.com/faq/faq_3.html#SEC46). +Makefiles (see tips at ). Errors of make: execvp: /bin/sh: Illegal Argument or make: execvp: /bin/sh: Argument list too long are often @@ -91,17 +92,28 @@ the command-line limit. To enable cygexec for /bin and mount -X -b -f c:\cygwin\bin /bin mount -X -b -f c:\cygwin\bin /usr/bin -mount -x -b -f c:\cygwin\bin\strace.exe /usr/bin/strace.exe -mount -x -b -f c:\cygwin\bin\strace.exe /bin/strace.exe -mount -x -b -f c:\cygwin\bin\cygcheck.exe /usr/bin/cygcheck.exe -mount -x -b -f c:\cygwin\bin\cygcheck.exe /bin/cygcheck.exe +mount -x -b -f c:\cygwin\bin\tclsh84.exe /usr/bin/tclsh84.exe +mount -x -b -f c:\cygwin\bin\tclsh84.exe /bin/tclsh84.exe +mount -x -b -f c:\cygwin\bin\wish84.exe /usr/bin/wish84.exe +mount -x -b -f c:\cygwin\bin\wish84.exe /bin/wish84.exe -Note that you must specifically exclude strace and cygcheck, -which are not linked to the Cygwin DLL. +Note that if you have Tcl/Tk installed, you must specifically exclude +tclsh84 and wish84, which are linked +to the Cygwin DLL but are not actually Cygwin programs. If you have added +other non-Cygwin programs to a path you want to mount cygexec, you can find +them with a script like this: -(See http://www.cygwin.com/cygwin-ug-net/using-utils.html#mount -for more information.) + +#!/bin/sh +cd /bin; for f in `find . -type f -name '*.exe'`; do + cygcheck $f | (fgrep -qi cygwin1.dll || echo $f) +done + + + +See +for more information on using mount. @@ -464,12 +476,12 @@ same time. Remove all but one. symbols that you see in gdb are basically meaningless. It is also a good idea to use the latest code in case the bug has been fixed, so we recommend trying the latest snapshot from -http://cygwin.com/snapshots/ or build the DLL from CVS. + or building the DLL from CVS. To build a debugging version of the Cygwin DLL, you will need to follow -the instructions at http://cygwin.com/faq/faq_3.html#SEC102. You -can also contact the mailing list for pointers (a simple test case that -demonstrates the bug is always welcome). +the instructions at . +You can also contact the mailing list for pointers (a simple test case that +demonstrates the bug is always welcome). -- cgit v1.2.3