Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!thyme!kaleb From: kaleb@thyme.jpl.nasa.gov (Kaleb Keithley ) Newsgroups: comp.windows.x.motif Subject: Re: Problems using motif on DECStation 3100 Message-ID: <1990Oct12.234640.3412@thyme.jpl.nasa.gov> Date: 12 Oct 90 23:46:40 GMT References: <1990Oct12.204211.18569@cadence.com> Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 43 In article <1990Oct12.204211.18569@cadence.com> yhsieh@cadence.cadence.com (Tommy Hsieh) writes: > > I have built motif 1.1 on DECStation 3100 running Ultrix 4.0. One biggest >problem I have now is every application I wrote I got core dump. The error >message is like : > Fixed up unaligned data access for pid 10235 at pc 0x4ddbb4 Sounds like you missed the instructions in the README and portingGuide that said: (README wasn't copyrighted, I hope it's okay to publish this.) Machine Dependencies The code to support the use of compound strings, found in the file ./lib/Xm/XmString.c, has a machine dependency. The compound string contains an unaligned integer. When this code is compiled without any additional flags the integer is accessed directly. If your machine can not access an unaligned integer, you can compile with the flag -DSTRINGS_ALIGNED, and the integer is accessed as two separate bytes. You can add the flag -DSTRINGS_ALIGNED to the StandardDefines line in your imake configuration file or the Makefile in ./lib/Xm. The default imake configuration file, ./config/generic.cf, does not have the -DSTRINGS_ALIGNED flag defined. ****** Whether to use the -DSTRINGS_ALIGNED flag will depend on ****** ****** your machine, not on your operating system. For instance, a ***** ****** Vax running Ultrix does not require aligned integers, how- ****** ****** ever a DECstation 3100, which is a Risc-based machine, does ****** ****** require the flag to be defined even when it is also running ****** Ultrix. (We have added the flag to DefaultCCOptions in ./config/ultrix.cf.) Some machines do not require integers to be aligned, but will respond much slower when you try to access one that is not aligned. It may be prudent to try compiling both with and without the flag, and seeing which toolkit provides better performance on your machine. -- Kaleb Keithley Jet Propulsion Labs kaleb@thyme.jpl.nasa.gov causing trouble again.