Solaris 8 (SPARC Platform Edition) 2/02 Release Notes

Common Desktop Environment (CDE) Issues

Compiling Motif Programs on the Solaris 8 Operating Environment

A problem occurs when you compile a Motif program in the Solaris 8 operating environment under the following circumstances. When 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).

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 that were compiled in the Solaris 2.4, 2.5, 2.5.1, 2.6 operating environments, which should run correctly in the Solaris 8 operating environment.

Workaround: If an older shared library links directly to the Motif library, and if you are compiling a program in the Solaris 8 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 this line, program is the name of the program you are compiling.