delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/11/27/17:31:12

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:references
:mime-version:content-type:in-reply-to; q=dns; s=default; b=BctX
Um81BG1w2bMAtQK1z2mnxdUsoRBMCBng61gpkqgc2cpT6k4IljKMHqY3P9J7nfr4
2iD3DhvXQsj7eBJDb90d8DVgUWdN/Z5WB42N7ofA4xLmndXUTa1iTM3+6b4TV5a/
Z+RGBkJ4+vSJX4kqbU1a0BIwtJwGmyp7tyFE7mk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:references
:mime-version:content-type:in-reply-to; s=default; bh=MXDh7dQb1O
YazGcYwd4EwFeOQQE=; b=kmMEoGaoRed9s20hPbDoEXWHbgK20SiTz0mKM2Fxtg
6I3IvDtTutjTTG8AKjPDF1RzM9jOYNMYf6ODHn4hre3WwobphxGJ5FMAMynwm0E9
yXge4sVxFIBo+qQMLadUsnOr6zGpW4jt2QHqxQVbzMz4bWCbYbetmlr7nV9ppHga
A=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_05,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*F:D*net.au, crack, H*i:sk:cf5d53e, H*r:501
X-HELO: mail107.syd.optusnet.com.au
Date: Mon, 28 Nov 2016 09:30:35 +1100
From: Duncan Roe <duncan_roe AT acslink DOT net DOT au>
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin 64 problem
Message-ID: <20161127223035.GA3886@dimstar.local.net>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CAGX=k3HczQGx=51xRwyKrwpKTMqaOVqxj+ud4UH=i1yCPAFGWQ AT mail DOT gmail DOT com> <cf5d53e0-2464-b191-af1b-192cfc0553d9 AT cornell DOT edu>
MIME-Version: 1.0
In-Reply-To: <cf5d53e0-2464-b191-af1b-192cfc0553d9@cornell.edu>
User-Agent: Mutt/1.6.1 (2016-04-27)
X-Optus-CM-Score: 0
X-Optus-CM-Analysis: v=2.2 cv=K7JSJ2eI c=1 sm=1 tr=0 a=/xIuaNGu1NPzt0yKkvdCVQ==:117 a=/xIuaNGu1NPzt0yKkvdCVQ==:17 a=kj9zAlcOel0A:10 a=L24OOQBejmoA:10 a=nump9Vn2BVowI3VwcV4A:9 a=CjuIK1q_8ugA:10
X-IsSubscribed: yes

On Sun, Nov 27, 2016 at 11:02:29AM -0500, Ken Brown wrote:
> On 11/27/2016 9:03 AM, Girish Joglekar wrote:
> > Hi Ken,
> > Thank you for your reply on the Cygwin mailing list. I have created a
> > slightly smaller test example smaller than what I had created in Feb.
> > Attached is a tar file. After make insall if you run TEST.x and click
> > the Open button, it gives segmentation fault.
> > Hope you will be able to help.
> > Thank you.
> > Girish
>
> Please keep the discussion on the mailing list so that people who might be
> able to help will see it.  I personally am not familiar with X11
> programming, so I'm not one of those people.
>
> I do have a few comments, however:
>
> 1. This may be slightly smaller than your previous program, but it is still
> *very* far from a small test case.  You really can't expect people to debug
> a program of this size for you.
>
> 2. I suggest that you build with -Wall (as Marco already suggested in the
> earlier discussion) and fix all the compiler warnings.  I saw several that
> need attention (aside from the many "unused variable" warnings).  It
> wouldn't hurt to also use -Wextra.
>
> 3. I also suggest that you use gdb to find out where the program is crashing
> and why.  You made a start on that in the discussion last March, but you
> didn't follow through.  (By the way, I recommend building without
> optimization; otherwise you may not be able to get accurate information
> about the crash from gdb.)
>
> 4. If, after the steps above, you still think the crash is due to a Cygwin
> bug rather than a programming error, then try to extract from your program a
> test case as small as possible that reproduces the crash.
>
> Ken

I thought I would have a crack at this but immediately got the error:

testc.h:8:19: fatal error: Xm/Xm.h: No such file or directory
 #include <Xm/Xm.h>

I thought /usr/include/Xm/ should come with motif, which I have installed.

What have I missed?

Cheers ... Duncan.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019