This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: DDD 3.3.8 (i686-pc-cygwin) gets `Segmentation fault WAS Re: compiling DDD
- From: "Arnaud Desitter" <arnaud dot desitter at ouce dot ox dot ac dot uk>
- To: <cygwin-xfree at cygwin dot com>,<richard dot campbell at air2web dot com>
- Cc: <bug-ddd at gnu dot org>
- Date: Thu, 4 Dec 2003 16:51:51 -0000
- Subject: Re: DDD 3.3.8 (i686-pc-cygwin) gets `Segmentation fault WAS Re: compiling DDD
- References: <DF08E278E10FC14F87CE7E802ABFD04B08247DC3@EXCHANGE01.air2web.com>
- Reply-to: cygwin-xfree at cygwin dot com
----- Original Message -----
From: "Richard Campbell" <richard.campbell@air2web.com>
Newsgroups: gmane.os.cygwin.xfree,gmane.comp.debugging.ddd.bugs
Cc: <bug-ddd@gnu.org>
Sent: Thursday, December 04, 2003 2:49 PM
Subject: RE: DDD 3.3.8 (i686-pc-cygwin) gets `Segmentation fault WAS Re:
compiling DDD
> >That is a bug in gcc on cygwin related to "#pragma interface".
> >Please look for help on the cygwin mailing list.
>
> Arnaud, the problem is with both "#pragma interface" and "#pragma
> implementation".
> http://www.cygwin.com/ml/cygwin/2003-07/msg00463.html
>
> Guarding all "#pragma interface" and "#pragma implementation" calls with
> ifndef __CYGWIN__
>
> allows everything to compile cleanly - is this something that could be
> applied to the main baseline?
It may be better to fix gcc. However, you can try to convince the ddd
maintainer.
> >Modifying ddd/config.h will not help. There is a problem with the
> >lesstif distribution on cygwin. See:
> >http://www.lesstif.org/INSTALL.html
>
> Is the following what you are referring to?
What I was referring to is that in the curent lesstif version, the
compatibility
mode is hard-coded at build time. Therefore, there is no compatibility
switch to play with once lesstif is installed.
Please try on Cygwin:
>cat Xmcheck.c
#include <Xm/Xm.h>
#include <stdio.h>
int main(void){
printf("xmUseVersion=%d XmVersion=%d\n",
xmUseVersion, XmVersion);
return 0;
}
>gcc -Wall -I/usr/X11R6/include Xmcheck.c -L/usr/X11R6/lib -lXm
>./a.out
xmUseVersion=2002 XmVersion=2002
If it gives different numbers, there is a good chance that your lesstif
library won't work properly.
Regards,
>
> -Richard Campbell.
>