This problem occurs when compiling a Motif program in the Solaris 7 operating environment if you link to an older shared library that has been compiled in the Solaris 2.5 or Solaris 2.6 operating environments and if the older library also uses the Motif API. In this case the Motif program uses Motif version 2.1 and the old shared library uses Motif version 1.2. A core dump occurs. This is not a binary compatibility problem for applications compiled in the Solaris 2.4, 2.5, 2.5.1, 2.6 operating environments. Those applications should run correctly in the Solaris 7 operating environment.
Workaround: When you use either one of the following two workarounds, copy the Solaris 2.6 Motif header file directory Xm located in /usr/dt/include/ to a temporary directory.
Modify the compile line that is usually represented as:
cc m.c -I/usr/openwin/include -I/usr/dt/include -lXm -lXt -lX11
cc m.c -I/usr/openwin/include -I/tmp -I/usr/dt/include /usr/lib/libXm.so.3 -lXt -lX11
Copy /usr/dt/lib/libXm.so.3 to a temporary directory /tmp.
Execute the command ln -s libXm.so.3 libXm.so in the directory /tmp.
Use a Motif compile line similar to the following:
cc m.c -I/usr/openwin/include -I/tmp -I/usr/dt/include -L/tmp -lXm -lXt -lX1