*BSD News Article 5714


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel!munnari.oz.au!spool.mu.edu!umn.edu!paperboy.micro.umn.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!gatech!news.byu.edu!ux1!fcom.cc.utah.edu!cs.weber.edu!terry
From: terry@cs.weber.edu (A Wizard of Earth C)
Subject: Re: Motif for 386BSD
Message-ID: <1992Sep28.202555.26291@fcom.cc.utah.edu>
Keywords: Motif 386BSD
Sender: news@fcom.cc.utah.edu
Organization: Weber State University  (Ogden, UT)
References: <7300@bigbird.hri.com.hri.com>
Date: Mon, 28 Sep 92 20:25:55 GMT
Lines: 36

In article <7300@bigbird.hri.com.hri.com> erich@hri.com (Eric Hilfer) writes:
>I'm afraid I lost track of this thread, but I am still interested.
>Did someone say that they had built Motif on 386BSD?  I have just tried building
>Motif 1.2, and after a little fooling around it compiled without errors
>or missing symbols.  BUT, the mwm manager and most of the demos crash at random
>locations!  Those that run can only make Simple XmStrings, any compound string
>comes out garbled.  The Motif release notes say that internationalization
>must be present in the X11R5 build and in the C library.

The problem is with a GCC register optimization bug similar to that found
on Berkeley C compilers ala SunOS 4.1.2.

Recode the Xt routines that  have lvalues assigned to a function of
themselves where the variable in question is either a register or is
promoted to one.

Alternately, turn off optimization, add "x++; x--;" for every variable "x"
used this way in a function, declare it static, declare it volatile, or
declare it right before the function instead of in the scope of the
function.

Once the Xt library was fixed, I had no problems getting Motif 1.2 to
work.


					Terry Lambert
					terry_lambert@npd.novell.com
					terry@icarus.weber.edu
---
Any opinions in this posting are my own and not those of my present
or previous employers.
-- 
-------------------------------------------------------------------------------
                                        "I have an 8 user poetic license" - me
 Get the 386bsd FAQ from agate.berkeley.edu:/pub/386BSD/386bsd-0.1/unofficial
-------------------------------------------------------------------------------