Mike Weiblen (mew++at++paradigmsim.com)
Thu, 11 Jun 1998 16:40:30 -0500
Old pf doesn't recognize XFS partitions, and assumes it's NFS, hence the
message.
Workarounds:
1) If you have an EFS partition, point PFTMPDIR to that.
2) Don Hatch wrote the attached script which patches the executable.
Hope this helps
-- mew
Brad Colbert wrote:
>
> We have an older application that was compiled (God knows how long ago)
> with Performer 1.? . The machine that the application ran on was just
> upgraded to Irix 6.2 from what we think was 6.1.
>
> Anyways, the message we get back when we try to run the application is
> something like...
>
> PfInit cannot create semaphore arena via NFS (/usr/tmp) Change PFTMPDIR
>
> No matter what we set PFTMPDIR to we get the same message.
>
> Any ideas would be greatly appreciated.
>
> Brad
>
> --
> -+---------------------------- " We Are VR " ----------------------------------
> -| Brad Colbert w: (202) 404-4708 ITD Virtual Reality Lab, NRL
> -| bcolbert++at++acm.org m: (703) 862-4104 ITT Systems & Sciences Corporation
> -+----------------| http://www.ait.nrl.navy.mil/people/bcolbert |--------------
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
-- Mike Weiblen talkto:972-960-2301 x292 PARADIGM Simulation, Inc. faxto:972-960-9049 14900 Landmark, Suite 400 mailto:mew++at++paradigmsim.com Dallas TX 75240 http://www.paradigmsim.com
#!/bin/sh
# # perf21xfs $Revision: 1.2 $ # # Script to patch a statically linked Performer2.1 application # to allow it to run when PFTMPDIR is an XFS file system # (getting rid of the bogus fatal "cannot create semaphore arena via NFS" # error). # # Run this script on the executable (but make a backup first!) # # So far, it has been tested on the following files: # ~src/trees/demo/GL/perfly/perfly # /usr/demos/Impact/data/GIS/terrain/perfly.ptu # /usr/demos/Impact/MaxImpact/SGI/site/perfly # If you have an executable for which it doesn't work, # please let me know (hatch++at++sgi.com). #
if [ $# -ne 1 ] then echo Usage: `basename $0` executablename >&2 exit 1 fi
perl -p -i.bak \ -e '$/ = 0777;' \ -e "s/pfInit: cannot create semaphore arena via NFS \(%s\). Change PFTMPDIR./pfInit: semaphore arena dir (%s) is not EFS. Use PFTMPDIR to change./;" \ -e "s/(\ \217\274\000\040\ \000\000\000\000\ \217\231..\ \047\244..\ \003\040\370\011\ \047\245..\ \217\274\000\040\ \047\244..\ \217\231..\ \044\005\000\057\ \003\040\370\011\ \000\000\000\000\ \217\274\000\040\ \020\100\000\002\ \047\244..\ \240\100\000\000\ \217\231..\ \047\245..\ \044\006\000\050\ \003\040\370\011\ \000\000\070\045\ \217\274\000\040\ \004\101\000\013\ \207\256..\ \217\206..\ \217\231..\ \044\004\000\001\ \044\005\000\003\ \047\247..\ \003\040\370\011\ \044\306..\ \217\274\000\040\ \000\000\000\000\ \207\256..\ \044\001\000\001\ \025\301\000\012\ \000\000\000\000\ \217\206..\ \217\231..\ \044\004\000)\001\ /"'$1'"\005/g;" \ -e "s/(\ \047\244..\ \003\040\370\011\ \044\245..\ \217\274\000\040\ \000\000\000\000\ \217\231..\ \047\244..\ \003\040\370\011\ \047\245..\ \217\274\000\040\ \047\244..\ \217\231..\ \044\005\000\057\ \003\040\370\011\ \000\000\000\000\ \217\274\000\040\ \020\100\000\002\ \047\244..\ \240\100\000\000\ \217\231..\ \047\245..\ \044\006\000\050\ \003\040\370\011\ \000\000\070\045\ \217\274\000\040\ \004\101\000\013\ \207\257..\ \217\206..\ \217\231..\ \044\004\000\001\ \044\005\000\003\ \047\247..\ \003\040\370\011\ \044\306..\ \217\274\000\040\ \000\000\000\000\ \207\257..\ \044\001\000\001\ \025\341\000\011\ \044\004\000)\001\ /"'$1'"\005/g;" \ $1 exit 0
======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:57:32 PDT