Xmt example dumps core

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

5 posts / 0 new
Last post
Xmt example dumps core

Submitted by Anonymous on Thu, 01/17/2002 - 10:11. General Questions
I have built the Xmt libraries on AIX5.1-64 bit m/c and after that I compiled the example program on the same machine.When I run the executable it is dumping core giving the following warnings;
"Representation size 8 must match superclass`s to override font.
Representation size 2 must match superclass`s to override marginWidth."
I used dbx to debug, and it shows segmentation fault with _XtCompileCallbackList.
seems to be library problem on AIX5.1-64.
Any information on this will be very greateful.

Thanks
Shaigy

ICS_support

Somehow, the Xmt libraries appear to believe that pointers are 8 bytes (instead of 4) and that unsigned integers are not 2 . I suspect that the Xt header files, where the base values such as Dimension come , are not #ifdef`ed correctly for your machine, and you`ll have to set the values correctly to recompile Xmt originally with the same data-type sizes as the compiled Xm and Xt libraries.

Anonymous

>> AIX5.1-64

I think since this is 64 bit AIX, pointer and integer sizes have changed.

You made to either
1- wander through the Xmt sources to avoid anti-64 assumptions
- or -
2 - make sure you are compiling your apps as 32 bit.

-scorch

> Somehow, the Xmt libraries appear to believe that
> pointers are 8 bytes (instead of 4) and that unsigned
> integers are not 2

Anonymous

Thanks for the immediate response.
I would like to get some more detailed information for fixing this problem.
How I will start fixing up this problem?
Which all files I need to change?
I need to change only the Xmt source files or need to change Xt files also?
As I need the 64 bit binary I can`t compile it in the 32 bit mode.

ICS_support

IBM would have provided 64-bit versions of the base libraries. My apologies for not having made clearer that the problem lies here; I had thought that the just-announced new version of Xmt was 64-bit-clean.

You can look at the Open Motif sources for examples of how pointer-size assumptions are dealt with and then apply those to Xmt.