A problem occurs when you compile a Motif program in the Solaris 9 operating environment under the following circumstances.
You link to a shared library that has been compiled in the Solaris 2.4, 2.5, 2.5.1 or 2.6 operating environments
The older library also uses the Motif application programming interface (API).
When he Motif program uses Motif version 2.1 and the old shared library uses Motif version 1.2, a core dump might occur. This is not a binary compatibility problem for applications that were compiled in the Solaris 2.4, 2.5, 2.5.1, and 2.6 operating environments, which should run correctly in the Solaris 9 operating environment.
Workaround: If you have an older shared library that links directly to the Motif library, and if you want to compile a program in the Solaris 9 operating environment that links to both Motif and that older shared library, use a line such as the following to compile:
cc foo.c -o program -DMOTIF12_HEADERS -I/usr/openwin/include -I/usr/dt/include -lXm12 -lXt -lX11