SIGSEGV in XopenDisplay in Cygwin64 X11

Jon Turney
Fri Jul 22 12:54:00 GMT 2016

On 21/07/2016 17:25, John Watts wrote:
> cygcheck.out
> gamin                                   0.1.10-15                    OK
> gawk                                    4.1.3-1                      OK
> gdb                                     7.10.1-1                     OK
> mingw64-x86_64-binutils                  OK
> mingw64-x86_64-gcc-core                 4.9.2-2                      OK
> mingw64-x86_64-gcc-fortran              4.9.2-2                      OK
> mingw64-x86_64-gcc-g++                  4.9.2-2                      OK
> mingw64-x86_64-headers                  4.0.6-1                      OK
> mingw64-x86_64-runtime                  4.0.6-1                      OK
> mingw64-x86_64-windows-default-manifest 6.4-1                        OK
> mingw64-x86_64-winpthreads              4.0.6-1                      OK

So, I don't see that you have cygwin gfortran installed, so I assume the 
gfortran below is mingw64-x86_64 targeted one?

> # Compile code with following flags
>     gfortran -g -fdollar-ok -c testxod.f
>     gfortran -g -I/cygdrive/c/cygwin64/usr/include -I/cygdrive/c/cygwin64/usr/include/X11 -c isox11.c
>     gfortran  testxod.o isox11.o defmap.o bmp_comms.o read_cmap_params.o isoflush.o -o ../ISOPARIX/testxod.exe -L/cygdrive/c/cygwin64/lib -lX11

So this doesn't seem right. Linking the cygwin libX11 with objects built 
with a mingw64 targeted compiler isn't going to work correctly.

I'm afraid we don't provide packages for mingw64 X libraries, so I guess 
your alternatives are to build those yourself, or to build everything 
using a cygwin targeted compiler.

Jon Turney
Volunteer Cygwin/X X Server maintainer

Unsubscribe info:
Problem reports:

More information about the Cygwin-xfree mailing list