[comp.windows.x.motif] Static data problems in Motif Application

albert@netcom.UUCP (Albert Hui) (08/22/90)

I am working with a large Motif application on the 825 running HPUX 7.0.
The Motif version I believe is 1.0 with most dates on the Motif include files
marked Oct 12, 1989.

I am having problems with static data not getting initialized correctly.
In the xdb debugger, after the first statement in main, the static data
is corrupted already.  The static data that gets corrupted is a Xt translation
table, so it causes an abort pretty early.  The first statement does not 
do anything useful.

I cannot duplicate the problems with smaller programs that do not use
the Motif and X11 libraries.  Does anyone know what is the latest
version of Motif 1.0 for the 825?  What is the latest version of Xt
and X11 libraries?  I need to know if I am using a consistent set
of libraries for my application.

From the map that is generated by the -Wl,-m option, I can see that
static data is located in the $THIS_DATA areas.  What's interesting is
that $THIS_DATA$ sometimes have many of them that shared the same
address.  Does anyone know what this means?

Has anyone seen internal errors in xdb when examining structures of
a motif application?  I see IE546 quite often.   

Thanks.


My Motif application's makefile:

########################### start of makefile
CCOPTS = -Aa -DSYSV -DNLS16 -Dhp9000s800 \
			-I/users/albert/cwsport/cws/mdlw/ -z \
			-g -W c,-w1 -W c,-e -c 

MDLWLIB = somelib.a

MDLWMAIN = main.o

DBMOD = /usr/lib/xdbend.o

DRAWOBJS = ... # many objects
MDLWMODS = ... # many objects

.c.o:
	cc $(CCOPTS) $*.c

XLIBS = -lMrm -lXm -lXt -lX11 -lPW -lm

cws_draw : $(DRAWOBJS) $(MDLWMODS) $(MDLWMAIN)
	cc -W l,-m -o $@ $(MDLWMAIN) $(MDLWMODS) $(DRAWOBJS) $(DBMOD) $(XLIBS) 
########################## end of makefile