Solaris 7 (Intel Platform Edition) 11/99 Release Notes

Compiling Motif Programs on Solaris 7 (4172061)

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.4, 2.5, 2.5.1 or 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: If you have an older shared library which links directly to the Motif library, to compile a program in the Solaris 7 operating environment which links to both Motif and that older shared library, use a compile line such as the following:


cc foo.c -o foo -DMOTIF12_HEADERS -I/usr/openwin/include -I/usr/dt/include
-lXm12 -lXt -lX11

where foo is the name of the program you are compiling.