[comp.unix.i386] Motif 1.0 w/X11R4

rick@pcrat.uucp (Rick Richardson) (07/18/90)

I just got through trying to determine if I could use the
Motif 1.0 libXm.a (as provided by ISC) with the X11R4
libXt.a libX.a et al libraries (as provided by Thomas Roell).

I had hoped to be able to provide our Motif applications
to those friends that are 'leading the way' by jumping
headfirst into X11R4.  Plus, the thought of being able
to uucp shared lib binaries around (rather than 3/4 MB
unshared lib behemoths) is mighty enticing.

Unfortunately, the layered look has got a few kinks.  To
wit, one routine that Motif wants apparently got dropped
completely out of libXt in R4.  And a bunch of others seem
to have not been in the original R3 libXt, but were added
later to the R3 libXt specifically for Motif's pleasure:

undefined		  first referenced	ISC R3	ISC R3
 symbol  		  in file		libXt	libXt (Motif Ver)
_XtGetPerDisplay          /usr3/lib/libXm.a	Yes	Yes
XtWidgetCallCallbacks     /usr3/lib/libXm.a	No	Yes
XtWidgetHasCallbacks      /usr3/lib/libXm.a	No	Yes
XtWidgetOverrideCallback  /usr3/lib/libXm.a	No	Yes
_XtFocusMode              /usr3/lib/libXm.a	No	Yes
_XtSetFontUnit            /usr3/lib/libXm.a	No	Yes
_XtLangExpand             /usr3/lib/libXm.a	No	Yes
_XtCheckLangName          /usr3/lib/libXm.a	No	Yes

Except for the *Lang* and *Font* routines, most look to be trivial,
and easily reverse engineered:

XtWidgetOverrideCallback|1876|extern|             ( )|    56|   56|.text   |
XtWidgetCallCallbacks|   1932|extern|             ( )|    36|   36|.text   |
XtWidgetHasCallbacks|    1968|extern|         enum( )|    40|   40|.text   |
_XtGetPerDisplay    |    1572|extern|      *struct( )|   100|  100|.text   |
_XtFocusMode        |    5776|extern|                |      |     |.data   |
_XtCheckLangName    |     252|extern|         char( )|   132|  132|.text   |
_XtLangExpand       |     384|extern|         char( )|   756|  756|.text   |
_XtSetFontUnit      |    1404|extern|             ( )|   152|  152|.text   |

Perhaps someone more knowledgeable about X11R4 might be able
to point me at R4 equivalents to these routines, or even source
code to implement them.

Its unlikely that we'll see a PD Motif implementation anytime
soon, so I'd like to eliminate the dilemma of having to make
a choice between using R3 based Motif or moving on to R4 and
not having Motif.

-Rick

-- 
Rick Richardson - PC Research, Inc., uunet!pcrat!rick, (201) 389-8963