Solaris 9 (SPARC Platform Edition) Release Notes

Common Desktop Environment (CDE) Issues

Compiling Motif Programs on the Solaris 9 Operating Environment

A problem occurs when you compile a Motif program in the Solaris 9 operating environment under the following circumstances.

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
In the previous example, program is the name of the program you are compiling.