Patch-ID# 101947-01
Keywords: point patch SunPHIGS fortran system CTE7511
Synopsis: SunPHIGS3.0: Fortran segv point patch 
Date: Aug/10/94

Solaris Release: 2.3

SunOS Release: 5.3

Unbundled Product: SunPHIGS

Unbundled Release: 3.0

        NOTE: As a point patch, this fix is not currently scheduled nor will
        necessarily be approved for integration in a future SunOS release.

Relevant Architectures: sparc
    NOTE: sun4c sun4m

BugId's fixed with this patch: 1151102

Changes incorporated in this version: 

Patches accumulated and obsoleted by this patch: 

Patches which conflict with this patch: 

Patches required with this patch: 101240

Obsoleted by: 

Files included with this patch: 

sun4c/phigs_system_patch.o
sun4m/phigs_system_patch.o

Problem Description: 

        1151102 (CTE7511)
          PHIGS 3.0, FORTRAN will segv if call to system() is used with
          phigstool


Special Install Instructions: 
----------------------------- 
To workaround 1151102, it is necessary to link in the provided
object module with your application at compile time. Simply copy
the module of the desired architecture (use sun4c if you're not
sure or if your application is destined to run on multiple sparc 
architectures) to your build area. Then you must link in the patched
fortran system call object with your application. An example
phigs compile command follows:

f77 -I$PHIGSHOME/include -I/usr/openwin/include application.F		\
    -L$PHIGSHOME/lib -L$XGLHOME/lib -L/usr/openwin/lib			\
    phigs_system_patch.o						\
    -lphigs77 -lphigs -lxgl -lX11 -lm -lintl -lsocket -o application

Caveat:
------

Using this patch for the fortran system() call will not work if your
application relies on the f77 behavior of checking the SHELL environment
variable. The command interpreter for will always be sh(1).

