Xref: utzoo comp.unix.aix:2881 comp.windows.x.motif:1383 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!think.com!paperboy!penge!dbrooks From: dbrooks@penge.osf.org (David Brooks) Newsgroups: comp.unix.aix,comp.windows.x.motif Subject: Re: motif porting problem Summary: Prototypes reversed in library routine Message-ID: <16959@paperboy.OSF.ORG> Date: 7 Dec 90 04:40:27 GMT References: <9435@ncar.ucar.edu> Sender: news@OSF.ORG Reply-To: dbrooks@osf.org (David Brooks) Organization: Open Software Foundation Lines: 19 In article <9435@ncar.ucar.edu> boote@bierstadt.scd.ucar.edu (Jeff W. Boote) writes: >I am currently porting motif1.1 to IBM's RISC6000. I was able to get the >whole thing to compile without too many hassle's but I am having one problem. >The geometry of popupshells seems to be messed up. It appears that the x >and y values for the sizes is switched. I think this is the bug: you have managed the impressive feat of compiling the Xm library with prototypes enabled. Unfortunately, there's a routine with two parameters out of order in the prototype part of its definition. Look at lib/Xm/GeoUtils.c/_XmGeoArrangeBoxes, and reverse the order of the pH and pW parameters in the prototype definition (lines 1518 and 1519). This is actually usually reported only against MessageBox (hence the "I think" at the start). Anyway, try it. -- David Brooks dbrooks@osf.org Systems Engineering, OSF uunet!osf.org!dbrooks "No, I didn't say I wanted a Bud light!!!" -- Oedipus