A problem occurs when compiling a Motif program in the Solaris 8 operating environment 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 and 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 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 you have an older shared library that links directly to the Motif library, and if you want to compile a program in the Solaris 8 operating environment that links to both Motif and that older shared library, use a line like this to compile:
cc foo.c -o program -DMOTIF12_HEADERS -I/usr/openwin/include \ -I/usr/dt/include -lXm12 -lXt -lX11
where program is the name of the program you are compiling.