From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,873e6f52e80e3b23,start X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,873e6f52e80e3b23,start X-Google-Attributes: gidfee84,public From: Fons Rademakers Subject: gcc + Motif... does not work on OSF1 v4.0... Date: 1997/10/06 Message-ID: <3438EF5A.501D9EA1@cern.ch>#1/1 X-Deja-AN: 278249446 Sender: news@news.cern.ch (USENET News System) X-Nntp-Posting-Host: hpsalo.cern.ch Organization: CERN, European Research Center for High Energy Physics Newsgroups: comp.unix.osf.osf1,comp.sys.dec Hi, a number of applications compiled and linked with gcc on OSF1 V4.0 crash in the Motif lib. The same programs work when compiled with cc. Here is where the crash occurs: (helium) [260] gdb demo (gdb) shared * (gdb) run Starting program: /usr0/users/rdm/ListTree-3.0b3/demo Warning: Cannot convert string "-*-Menu-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1" to type FontStruct Program received signal SIGSEGV, Segmentation fault. 0x3ff8075a34c in _XmGetClassExtensionPtr () (gdb) where #0 0x3ff8075a34c in _XmGetClassExtensionPtr () #1 0x3ff8075b52c in _XmBaseClassPartInitialize () #2 0x3ff8075ba30 in _XmBaseClassPartInitialize () Cannot access memory at address 0x12004f4b0. In the widget code I've set the Extension ptrs to NULL but that did not help. Anybody knows how to solve this problem? TIA. -- Fons Rademakers. PS: program was compiled like: gcc -g -c ListTree.c gcc -g -o demo demo.c ListTree.o -lXm -lXt -lX11 same with cc works fine. -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland Phone: +41 22 7679248 E-Mail: Fons.Rademakers@cern.ch Fax: +41 22 7677910