[comp.windows.x] Help porting X program to DecStation X

daf@vaxc.cc.monash.edu.au (06/28/91)

Hi all,

I am currently trying to compile a program written for X on a Sun, to run under
Ultrix on a DecStation 5000 with DecWindows and X, and I get core dumps
whenever I try to open up a window on the X terminal.  The program runs fine in
tty mode but hangs badly the moment I do anything under X.

Running the program through lint, I came across the following undefined
structures/unions:

_StateRec
_XtEventRec
_XtBoundAccActionRec
_XtAppStruct
_XRegion
_TranslationData
_ShellClassRec
XKeyTrans
_XrmHashBucketRec
_XStatistics
_TransientShellClassRec
_TopLevelShellClassRec
_ApplicationShellClassRec
_WidgetRec
_ObjectRec
_RectObjRec
_WindowObjRec
_ObjectClassRec
_RectObjClassRec
_WMShellClassRec

Most of these I found scattered in various header files in /include/X11
and all are referenced in Xlib.h, but some definitions are completely missing
as far as I can tell.

My question is, does anyone out there recognise these as being from a
particular header file(s), or has anyone else ported stuff from straight X to
DecStation X (I assume that they must be different implementations as it would
work otherwise!!)  Do I have to include particular files to run X on a DEC.

Any ideas would be great as I'm new to X and don't quite know where to start
looking for the definitions of the structures.

The fact that I can't find a definition of _XRegion anywhere in any header file
worries me slightly!!  (I grepped every directory on the machine for
_XRegion!!)


Thanks,

Daf.
-- 
-------------------------------------------------------------------------------
Davyd Norris		:	"Strange people physicists... In my opinion
Physics Dept.		:	 those that aren't already dead are in some
Monash University,	:        way very, very sick." - Douglas Adams,
Vic, Australia.		:	 "The Long Dark Tea-time Of The Soul"     
-------------------------------------------------------------------------------

dprvsj@Arco.COM (Vineet S. Joshi) (06/28/91)

I am using a DECstation 5000 and could not port an Xlib code to it.
It has something to do with the type of server used by the DEC.
One thing I know that surely works is :

Before you run your application, start any X process like dxterm or
xclock etc. in the background. Now run your program on the same
display and it should work. Try it out. It worked for me.

Vineet.

murphy@burfle.dco.dec.com (Rick Murphy) (07/01/91)

Many structures used in Xlib are private to Xlib - these 'opaque' structures
aren't defined in any standard X header file, so I doubt that the compaints
from lint have anything to do with your problem.

The X on ULTRIX prior to ULTRIX V4.2 is X11R3; ULTRIX V4.2 supplies X11R4.
Your problem is not likely to be caused by something 'different' between
an X Window System distribution from MIT and one from DEC - it's probably 
something wrong in your program, sorry to say. Give that you haven't provided
ANY detail about what goes wrong (beyond a core dump) i doubt that anyone can
help you. A stack trace from DBX might be helpful - or even a code fragment.

(Please don't take this as a flame, but your posting was equivalent to dropping
your car off at the garage with no instructions as to what's wrong. Any reponse
that you get will be pretty unlikely to solve your problem..)
	-Rick

-- 
Rick Murphy, WA1SPT/4			DEC Washington ULTRIX Resource Center
Domain:  murphy@burfle.dco.dec.com -or- murphy@ufp.enet.dec.com
Bang:    decwrl!ufp.enet!murphy		Ding:  (301) 306-2985
Disclaimer: This nonsense came from an AI program written in TECO. Ignore it.