On 12/26/2009 12:54 PM, Charles Wilson wrote:
Index: lib/checkX.c
===================================================================
--- lib/checkX.c (revision 5)
+++ lib/checkX.c (working copy)
@@ -62,13 +62,11 @@
#if HAVE_MATH_H
# include<math.h>
#endif
-#if HAVE_X11_XLIB_H
-# include<X11/Xlib.h>
-#endif
#if HAVE_WINDOWS_H&& HAVE_OPENCLIPBOARD
# define WIN32_LEAD_AND_MEAN
# define NOMINMAX
+# undef Status /* Xlib.h from xorg 7.5 is evil */
# include<windows.h>
#endif
Thanks. It builds with that patch and the old segfault is gone. Still
playing around with mintty, I found that I get a segfault if I try to
run mintty with the option '-' (so that mintty will invoke the user's
default shell as a login shell).
$ cat test1.xml
<?xml version="1.0" encoding="us-ascii"?>
<Run2Config
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="run2.xsd">
<SelfOptions>
<Arg>-d 127.0.0.1:0.0</Arg>
</SelfOptions>
<Global>
<Environment>
</Environment>
</Global>
<GDI>
<Environment>
</Environment>
<Target filename="/usr/bin/mintty.exe" startin="~">
<Arg>-</Arg>
</Target>
</GDI>
<X11>
<Environment>
</Environment>
<Target filename="/usr/bin/xterm.exe" startin="~">
<Arg>-display 127.0.0.1:0.0</Arg>
</Target>
</X11>
</Run2Config>
$ run2 --debug test1.xml
setting debug level to (null)
run2.exe DEBUG: xmlfile : 'test1.xml'
run2.exe DEBUG: opt_loglevel: 7
run2.exe DEBUG: opt_nogui : 0
run2.exe DEBUG: opt_notty : 0
run2.exe DEBUG: opt_timeout : 0.50
run2.exe DEBUG: opt_wait : 0
run2.exe DEBUG: opt_force : auto
Segmentation fault (core dumped)
Ken
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple