From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7385 invoked by alias); 4 Dec 2003 17:32:05 -0000 Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com Reply-To: cygwin-xfree@cygwin.com Received: (qmail 7373 invoked from network); 4 Dec 2003 17:32:03 -0000 Received: from unknown (HELO tx0.oucs.ox.ac.uk) (129.67.1.163) by sources.redhat.com with SMTP; 4 Dec 2003 17:32:03 -0000 Received: from scan0.oucs.ox.ac.uk ([129.67.1.162] helo=localhost) by tx0.oucs.ox.ac.uk with esmtp (Exim 4.20) id 1ARxKc-00034W-FU for cygwin-xfree@cygwin.com; Thu, 04 Dec 2003 17:32:02 +0000 Received: from rx0.oucs.ox.ac.uk ([129.67.1.161]) by localhost (scan0.oucs.ox.ac.uk [129.67.1.162]) (amavisd-new, port 25) with ESMTP id 11714-04 for ; Thu, 4 Dec 2003 17:32:02 +0000 (GMT) Received: from smtp1.herald.ox.ac.uk ([163.1.0.247]) by rx0.oucs.ox.ac.uk with esmtp (Exim 4.20) id 1ARxKc-00034I-1j; Thu, 04 Dec 2003 17:32:02 +0000 Received: from pc217.geog.ox.ac.uk ([163.1.38.217] helo=pc217) by smtp1.herald.ox.ac.uk with smtp (Exim 3.35 #1) id 1ARxKc-00064F-00; Thu, 04 Dec 2003 17:32:02 +0000 Message-ID: <0ac501c3ba8c$874e76c0$d92601a3@ouce.ox.ac.uk> From: "Arnaud Desitter" To: , Cc: References: Subject: Re: DDD 3.3.8 (i686-pc-cygwin) gets `Segmentation fault WAS Re: compiling DDD Date: Thu, 04 Dec 2003 17:32:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-SW-Source: 2003-12/txt/msg00050.txt.bz2 List-Id: ----- Original Message ----- From: "Richard Campbell" Newsgroups: gmane.os.cygwin.xfree,gmane.comp.debugging.ddd.bugs Cc: Sent: Thursday, December 04, 2003 4:54 PM Subject: RE: DDD 3.3.8 (i686-pc-cygwin) gets `Segmentation fault WAS Re: compiling DDD > >Please try on Cygwin: > >>cat Xmcheck.c > >#include > >#include > >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. > > bash-2.05b$ gcc -Wall -I/usr/X11R6/include Xmcheck.c -L/usr/X11R6/lib -lXm > Info: resolving _xmUseVersion by linking to __imp__xmUseVersion > (auto-import) > bash-2.05b$ ./a.exe > xmUseVersion=2001 XmVersion=2001 > > Same numbers. That's progress. Could you try to perform the link using the same commands as ddd ? You posted: g++ -DNDEBUG -O2 -g -W -Wall -trigraphs -o ddd.exe ddd.o basename.o compare.o cook.o cwd.o glob.o UndoBuffer.o UndoBE.o WhatNextCB.o configinfo.o -L/usr/X11R6/lib .libs/libimp-cygXm-2.a -lXft -lXrender .libs/libimp-cygfontconfig-1.a .libs/libimp-cygfreetype-6.a -lz .libs/libimp-cygexpat-0.a -lXaw -lXmu -lXt -lXpm -lXp -lXext -lX11 -lSM -lICE -lncurses -ly ../libiberty/libiberty.a -Wl,--rpath -Wl,/usr/X11R6/lib -Wl,--rpath -Wl,/usr/X11R6/lib So I guess that it should be something along the lines: gcc -Wall -I/usr/X11R6/include Xmcheck.c -L/usr/X11R6/lib .libs/libimp-cygXm-2.a using whather .libs/libimp-cygXm-2.a points to. Regards,