<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Starbase problem with Fortran in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580244#M725680</link>
    <description>I got another problem in using Exceed to access my HP machine remotely. &lt;BR /&gt;&lt;BR /&gt;After you guru's help, I could use Starbase successfully with the demo program 'simple_f.f' from '/opt/graphics/starbase/examples/dl' (modified according to your suggestions, see attchment). I could run the program in front of the HP machine (got a cube). But when I run the program in my PC remotly, I got the following error messages: &lt;BR /&gt;&lt;BR /&gt;$ ./simple_f&lt;BR /&gt;Starbase error 1: Graphics device is not initialized for this operation.&lt;BR /&gt;    Procedure name:      open_segment&lt;BR /&gt;    File descriptor:     2063865000&lt;BR /&gt;    Device file name:    Unknown&lt;BR /&gt;    Library location:    global definitions (1)&lt;BR /&gt;Starbase error 1: Graphics device is not initialized for this operation.&lt;BR /&gt;    Procedure name:      close_segment&lt;BR /&gt;    File descriptor:     2063865000&lt;BR /&gt;    Device file name:    Unknown&lt;BR /&gt;    Library location:    global definitions (1)&lt;BR /&gt;Starbase error 1: Graphics device is not initialized for this operation.&lt;BR /&gt;    Procedure name:      refresh_segment&lt;BR /&gt;    File descriptor:     2063865000&lt;BR /&gt;    Device file name:    Unknown&lt;BR /&gt;    Library location:    global definitions (1)&lt;BR /&gt;$ &lt;BR /&gt;&lt;BR /&gt;I could run other programs like 'liberty' from '/opt/graphics/starbase/demos/dl' remotly on my PC. &lt;BR /&gt;&lt;BR /&gt;Do I need to install any other patches? FYI, the result running 'swlist -l product' on the HP machine. &lt;BR /&gt;&lt;BR /&gt;Any input is highly appreciated. &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 24 Sep 2001 08:53:57 GMT</pubDate>
    <dc:creator>Yong Zhang</dc:creator>
    <dc:date>2001-09-24T08:53:57Z</dc:date>
    <item>
      <title>Starbase problem with Fortran</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580239#M725675</link>
      <description>First, I run the following three commands (as 'root') and the correponding results are attached as file '1.txt', '2.txt', '3.txt', respectively (no result when runing the 3rd command):&lt;BR /&gt; &lt;BR /&gt;swlist &lt;BR /&gt;uname -a&lt;BR /&gt;swlist -lfileset -astate | grep -v \# | grep -v conf&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;Attachment 'graphinfo.txt' is the result when runing command '/usr/bin/graphinfo &amp;gt; graphinfo.txt', while 'test.f' is the simple Fortran program I wrote. I am using Fortran90 compiler and the attachment 'Makefile' is used to compile and link 'test.f'.&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;Following is the error message when I run the program 'test':&lt;BR /&gt; &lt;BR /&gt;$ ./test&lt;BR /&gt;Starbase error 3: Device kind is not supported for the specified device.&lt;BR /&gt;    Procedure name:      gopen&lt;BR /&gt;    File descriptor:     -1&lt;BR /&gt;    Device file name:    Unknown&lt;BR /&gt;    Library location:    device control (10)&lt;BR /&gt; fildes:  -1&lt;BR /&gt;$ &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;Any advice/help is highly appreciated. &lt;BR /&gt;Yong&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Sep 2001 07:06:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580239#M725675</guid>
      <dc:creator>Yong Zhang</dc:creator>
      <dc:date>2001-09-17T07:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Starbase problem with Fortran</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580240#M725676</link>
      <description>You need to change your includes from the /usr/include ones meant for f77 to the starbase-f90.1.h and starbase-f90.2.h meant for f90.&lt;BR /&gt;You need to change the parameter passing for strings so you put a trailing null character at the end.&lt;BR /&gt;You need to specify a window name rather than a crt device file.  That window can be created with xwcreate, or&lt;BR /&gt;can be created by some other method and then mapped to a gopen string parameter with a call to the C routine- make_X11_gopen_string.&lt;BR /&gt;The attached example works with a window created by "xwcreate test".&lt;BR /&gt;  While f90 can make calls to starbase, you would be better served by using C code for the window creation and main program.  Fortran is not well suited to the event loop based model that X11 expects.  You can use a gopen fildes from C code that is passed into fortran routines.&lt;BR /&gt;You could start with an example like /opt/graphics/starbase/demos/starbase/motif_sb1.c&lt;BR /&gt;and call your fortran code from that C/motif main body.</description>
      <pubDate>Mon, 17 Sep 2001 15:58:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580240#M725676</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2001-09-17T15:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Starbase problem with Fortran</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580241#M725677</link>
      <description>It is working. Thanks so much. &lt;BR /&gt;&lt;BR /&gt;BTW, besides 'Grapgics Administration Guide for HP UX 11.x' (&lt;A href="http://www.hp.com/workstations/support/documentation/manuals/user_guides/graphics/GAG11/GAG.html)," target="_blank"&gt;http://www.hp.com/workstations/support/documentation/manuals/user_guides/graphics/GAG11/GAG.html),&lt;/A&gt; are there any documents/manuals to get more ideas? &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Sep 2001 04:19:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580241#M725677</guid>
      <dc:creator>Yong Zhang</dc:creator>
      <dc:date>2001-09-18T04:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Starbase problem with Fortran</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580242#M725678</link>
      <description>You should find a lot of docs on your system in /usr/share/docs&lt;BR /&gt;&lt;BR /&gt;Bill</description>
      <pubDate>Tue, 18 Sep 2001 09:22:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580242#M725678</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-09-18T09:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Starbase problem with Fortran</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580243#M725679</link>
      <description>There are documents on Starbase at &lt;BR /&gt;&lt;A href="http://docs.hp.com./hpux/dev/index.html#Starbase" target="_blank"&gt;http://docs.hp.com./hpux/dev/index.html#Starbase&lt;/A&gt;&lt;BR /&gt;There is a paper-only manual,&lt;BR /&gt;98592-90081&lt;BR /&gt;Starbase Graphics Techniques&lt;BR /&gt;which is more of a Starbase tutorial.  Starbase is being replaced by OpenGL.  There is no Starbase support in 11iV1.5 for Itanium systems.  However, there is no Fortran binding shipped for OpenGL.&lt;BR /&gt;You need to call OpenGL from C or C++ code.&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Sep 2001 21:02:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580243#M725679</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2001-09-18T21:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Starbase problem with Fortran</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580244#M725680</link>
      <description>I got another problem in using Exceed to access my HP machine remotely. &lt;BR /&gt;&lt;BR /&gt;After you guru's help, I could use Starbase successfully with the demo program 'simple_f.f' from '/opt/graphics/starbase/examples/dl' (modified according to your suggestions, see attchment). I could run the program in front of the HP machine (got a cube). But when I run the program in my PC remotly, I got the following error messages: &lt;BR /&gt;&lt;BR /&gt;$ ./simple_f&lt;BR /&gt;Starbase error 1: Graphics device is not initialized for this operation.&lt;BR /&gt;    Procedure name:      open_segment&lt;BR /&gt;    File descriptor:     2063865000&lt;BR /&gt;    Device file name:    Unknown&lt;BR /&gt;    Library location:    global definitions (1)&lt;BR /&gt;Starbase error 1: Graphics device is not initialized for this operation.&lt;BR /&gt;    Procedure name:      close_segment&lt;BR /&gt;    File descriptor:     2063865000&lt;BR /&gt;    Device file name:    Unknown&lt;BR /&gt;    Library location:    global definitions (1)&lt;BR /&gt;Starbase error 1: Graphics device is not initialized for this operation.&lt;BR /&gt;    Procedure name:      refresh_segment&lt;BR /&gt;    File descriptor:     2063865000&lt;BR /&gt;    Device file name:    Unknown&lt;BR /&gt;    Library location:    global definitions (1)&lt;BR /&gt;$ &lt;BR /&gt;&lt;BR /&gt;I could run other programs like 'liberty' from '/opt/graphics/starbase/demos/dl' remotly on my PC. &lt;BR /&gt;&lt;BR /&gt;Do I need to install any other patches? FYI, the result running 'swlist -l product' on the HP machine. &lt;BR /&gt;&lt;BR /&gt;Any input is highly appreciated. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Sep 2001 08:53:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580244#M725680</guid>
      <dc:creator>Yong Zhang</dc:creator>
      <dc:date>2001-09-24T08:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Starbase problem with Fortran</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580245#M725681</link>
      <description>Hi Yong,&lt;BR /&gt;&lt;BR /&gt;I think the gurus above would have a slightly higher intention to help you again, if you would provide some points for the solution they already gave you.&lt;BR /&gt;&lt;BR /&gt;No points for this post please.&lt;BR /&gt;Volker</description>
      <pubDate>Mon, 24 Sep 2001 09:57:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580245#M725681</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2001-09-24T09:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Starbase problem with Fortran</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580246#M725682</link>
      <description>Sure. But how can I do that?</description>
      <pubDate>Mon, 24 Sep 2001 11:49:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580246#M725682</guid>
      <dc:creator>Yong Zhang</dc:creator>
      <dc:date>2001-09-24T11:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Starbase problem with Fortran</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580247#M725683</link>
      <description>Sorry, I knew how to that. Thank you for the help.</description>
      <pubDate>Mon, 24 Sep 2001 11:55:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580247#M725683</guid>
      <dc:creator>Yong Zhang</dc:creator>
      <dc:date>2001-09-24T11:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Starbase problem with Fortran</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580248#M725684</link>
      <description>Sorry, I knew how to do that. Thank you for the remind.</description>
      <pubDate>Mon, 24 Sep 2001 11:55:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580248#M725684</guid>
      <dc:creator>Yong Zhang</dc:creator>
      <dc:date>2001-09-24T11:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Starbase problem with Fortran</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580249#M725685</link>
      <description>It looks like you need to fix up the include lines for the dl header files.  That error message complains about fildes</description>
      <pubDate>Mon, 24 Sep 2001 15:19:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580249#M725685</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2001-09-24T15:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Starbase problem with Fortran</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580250#M725686</link>
      <description>I don't know how my last posting got so truncated.&lt;BR /&gt;&lt;BR /&gt;It looks like you need to fix up the include lines for the dl header files.&lt;BR /&gt;That error message complains about fildes 2063865000, which is a really bad number for a fildes, but reasonable value for the address of a local variable on the stack.&lt;BR /&gt;It looks like the "call open_segment" and other uses of dl.h functions passed fildes by reference as it would if there was no correct&lt;BR /&gt;header file declaration for the functions.  I have attached a version of simple_f.f that includes the right f90 header files.</description>
      <pubDate>Mon, 24 Sep 2001 21:51:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580250#M725686</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2001-09-24T21:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Starbase problem with Fortran</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580251#M725687</link>
      <description>Is there any document I can refer to for the Starbase error number, e.g., 'Starbase error 2054'? &lt;BR /&gt;&lt;BR /&gt;Thanks a lot. &lt;BR /&gt;Yong</description>
      <pubDate>Wed, 26 Sep 2001 01:32:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580251#M725687</guid>
      <dc:creator>Yong Zhang</dc:creator>
      <dc:date>2001-09-26T01:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Starbase problem with Fortran</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580252#M725688</link>
      <description>You can get the strings for starbase error numbers from-&lt;BR /&gt;dumpmsg /opt/graphics/common/lib/nls/msg/C/hpgfx.cat&lt;BR /&gt;There is no document with expanded explaination of possible causes.&lt;BR /&gt;Error 2054 is "Exec failed.".&lt;BR /&gt;It is probably a failure starting one of the background process commands in /opt/graphics/common/lbin .&lt;BR /&gt;You could use the tusc utility on 11.0 to look for why an exec failed.  It is available from&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/tusc-7.0/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/tusc-7.0/&lt;/A&gt;</description>
      <pubDate>Wed, 26 Sep 2001 17:42:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580252#M725688</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2001-09-26T17:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Starbase problem with Fortran</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580253#M725689</link>
      <description>Now I have no problem with the remote display (Exceed) for 'simple_f', but there is just nothing displayed in that window I specified ('sb_win' with 'xwcreate') for 'stick_leg_f.f'. Any suggestions? Pls. refer to the attachment for the '.f' files. &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Yong</description>
      <pubDate>Wed, 10 Oct 2001 05:08:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580253#M725689</guid>
      <dc:creator>Yong Zhang</dc:creator>
      <dc:date>2001-10-10T05:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Starbase problem with Fortran</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580254#M725690</link>
      <description>The problem with stick_leg_f.f is likely to me that you are using Exceed in 24 bit mode but the example uses a default color of pixel value 1.  That would be practically black on black.&lt;BR /&gt;You can call  line_color(fildes, 0.1, 0.4, 0.9)&lt;BR /&gt;to make the program use a particular RGB line color.&lt;BR /&gt;It seems that the library assumes a particular RGB encoding, so it may get the red, green , and blue channels confused when displayed to exceed.  You will also see much faster drawing for simple lines if you force the driver to 'sox11' instead of the default 'hpvmx' that uses software rasterization to support depth comparisons.</description>
      <pubDate>Wed, 10 Oct 2001 19:05:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/starbase-problem-with-fortran/m-p/2580254#M725690</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2001-10-10T19:05:00Z</dc:date>
    </item>
  </channel>
</rss>

