<?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: Compiled Fortran File from another OS... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893297#M936152</link>
    <description>If it's IDATE that you're asking about, then&lt;BR /&gt;the message from the compiler is pretty&lt;BR /&gt;self-explanatory.  If you're concerned with&lt;BR /&gt;Y2K compliance then you need to fix the&lt;BR /&gt;warning.  Otherwise, you can ignore it and&lt;BR /&gt;the program ought to run.  (The reason why&lt;BR /&gt;your example above doesn't work is the&lt;BR /&gt;missing main program -- the warning about&lt;BR /&gt;IDATE is unrelated).&lt;BR /&gt;&lt;BR /&gt;From the syntax you show, it seems that the&lt;BR /&gt;original programmer was using the VAX IDATE;&lt;BR /&gt;g77 believes that the VAX IDATE is not Y2K&lt;BR /&gt;compliant, hence the warning.  However, if&lt;BR /&gt;you use the Unix IDATE syntax, g77 is satisifed&lt;BR /&gt;and the warning will go away.  But you'll&lt;BR /&gt;need to modify your program a bit:&lt;BR /&gt;&lt;BR /&gt;integer ibuf(3)&lt;BR /&gt;call idate(ibuf)&lt;BR /&gt;ijour = buf(1)&lt;BR /&gt;imoi = buf(2)&lt;BR /&gt;ian = buf(3)&lt;BR /&gt;</description>
    <pubDate>Thu, 06 Feb 2003 21:52:09 GMT</pubDate>
    <dc:creator>Gregory Fruth</dc:creator>
    <dc:date>2003-02-06T21:52:09Z</dc:date>
    <item>
      <title>Compiled Fortran File from another OS...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893279#M936134</link>
      <description>Hi guys!!&lt;BR /&gt;&lt;BR /&gt;I've a little problem here... I've an IBM workstation running AIX 4.3.2 and XLfortran.... On that machine, some users have compiled Fortran progs, and now I have change my IBM for and HP Visualize B2600 running HP-UX 11i and without a Fortran compiler... &lt;BR /&gt;&lt;BR /&gt;What I have done, is moved the file from the IBM on the HP station, with the same rights of rwx on each file....  The problem is when I call on compiled app, it says to me:&lt;BR /&gt;/elec/bin/excu[57]: //elec/bin/exec/zturb: cannot execute&lt;BR /&gt;&lt;BR /&gt;What's on the line in my "excu" script on line 57, is to run that prog "zturb"....&lt;BR /&gt;&lt;BR /&gt;any clue.?.?.?  or somebody know why this program is not executable... is it really because of the compilation on an IBM machine???&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jonathan</description>
      <pubDate>Thu, 30 Jan 2003 19:23:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893279#M936134</guid>
      <dc:creator>Jonathan Caplette_1</dc:creator>
      <dc:date>2003-01-30T19:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Compiled Fortran File from another OS...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893280#M936135</link>
      <description>Jonathan,&lt;BR /&gt;&lt;BR /&gt;Different compiler, different architecture:  it's definitely not going to work.  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 30 Jan 2003 19:30:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893280#M936135</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-01-30T19:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Compiled Fortran File from another OS...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893281#M936136</link>
      <description>I've found the source code...  Can I compile it with any Fortran compiler???</description>
      <pubDate>Thu, 30 Jan 2003 19:38:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893281#M936136</guid>
      <dc:creator>Jonathan Caplette_1</dc:creator>
      <dc:date>2003-01-30T19:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Compiled Fortran File from another OS...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893282#M936137</link>
      <description>HP has a Fortran compiler they'd be happy to sell you.  I don't know if there's a "freeware" compiler available.&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 30 Jan 2003 19:39:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893282#M936137</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-01-30T19:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Compiled Fortran File from another OS...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893283#M936138</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I just hit the gcc web site and it says it will compile fortran.  I've never tried it before.  Sounds like fun!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://gcc.gnu.org/onlinedocs/gcc-3.2.1/gcc/G---and-GCC.html#G++%20and%20GCC" target="_blank"&gt;http://gcc.gnu.org/onlinedocs/gcc-3.2.1/gcc/G---and-GCC.html#G++%20and%20GCC&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Jan 2003 19:43:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893283#M936138</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-01-30T19:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Compiled Fortran File from another OS...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893284#M936139</link>
      <description>Why not use GNU's fortran compiler, ported to HP - (install the Dependencies first!)?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-3.2/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-3.2/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Or the GCC compiler depot from HP:&lt;BR /&gt;&lt;A href="http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html" target="_blank"&gt;http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 30 Jan 2003 19:50:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893284#M936139</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2003-01-30T19:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Compiled Fortran File from another OS...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893285#M936140</link>
      <description>I'm gonna try those compiler.... I'll keep writting!!</description>
      <pubDate>Thu, 30 Jan 2003 19:52:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893285#M936140</guid>
      <dc:creator>Jonathan Caplette_1</dc:creator>
      <dc:date>2003-01-30T19:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Compiled Fortran File from another OS...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893286#M936141</link>
      <description>The GNU project EGCS includes a fortran compiler.  It's pretty robust, and supports fortran 77 standards.  The compiler name is actually g77.  &lt;BR /&gt;&lt;BR /&gt;If your code is written in f90 standards, the compile will most likely fail.  &lt;BR /&gt;&lt;BR /&gt;The HP fortran compiler has both f77 and f90, so definately a safer route if your not sure.&lt;BR /&gt;&lt;BR /&gt;You can download egcs from the HP porting center.  &lt;A href="http://hpux.cs.utah.edu/hppd/hpux/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;Shannon</description>
      <pubDate>Thu, 30 Jan 2003 20:01:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893286#M936141</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2003-01-30T20:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Compiled Fortran File from another OS...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893287#M936142</link>
      <description>Shannon,&lt;BR /&gt;&lt;BR /&gt;Does the g77 compiler support the "old" f77 extensions of do...while and do...until constructs ??&lt;BR /&gt;&lt;BR /&gt;It's been about 20 years since I've written an F77 program!&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 30 Jan 2003 20:08:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893287#M936142</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2003-01-30T20:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Compiled Fortran File from another OS...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893288#M936143</link>
      <description>Harry,&lt;BR /&gt;&lt;BR /&gt;My curiousity is peaked also.  I took a Fortran programming class a LONG time ago when I was in college.  I won't say how long ago, but the U.S. president at the time was a former Southern governor, and not from Arkansas!   :)&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Jan 2003 20:11:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893288#M936143</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-01-30T20:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Compiled Fortran File from another OS...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893289#M936144</link>
      <description>As far as I know yes.&lt;BR /&gt;&lt;BR /&gt;I took some of my code and it worked.  My code may predate yours, and was pretty basic math code for Calculus. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I'm not sure about how certain things would work though, as my code was mainframe based so file descriptors were much different than a Unix counterpart.&lt;BR /&gt;&lt;BR /&gt;The basic routines all worked though.  The one I compiled was a root number find program, which required no file i/o, just had a seed imbedded in the code.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Thu, 30 Jan 2003 21:02:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893289#M936144</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2003-01-30T21:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Compiled Fortran File from another OS...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893290#M936145</link>
      <description>I downloaded gcc 3.2 from the link above... I got the compiler g77 and when I try to compile my files it says to me : "Fortran Compiler not installed on this machine "&lt;BR /&gt;&lt;BR /&gt;I did g77 &lt;FILENAME&gt;.f  I'm sure that I need option with that, but I don't know which one to put, I've nerver compiled with any compiler...&lt;BR /&gt;&lt;BR /&gt;Somebody can help me please??&lt;BR /&gt;&lt;/FILENAME&gt;</description>
      <pubDate>Fri, 31 Jan 2003 14:11:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893290#M936145</guid>
      <dc:creator>Jonathan Caplette_1</dc:creator>
      <dc:date>2003-01-31T14:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Compiled Fortran File from another OS...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893291#M936146</link>
      <description>Because it's been a long time ago when I wrote F77 progs myself, and then there was no GNU g77 available, I can only guess about compiler options for g77.&lt;BR /&gt;&lt;BR /&gt;But I guess as it builds on gcc they are basically very similar.&lt;BR /&gt;&lt;BR /&gt;So look for file a.out (if the compile went without errors) which should be your executable.&lt;BR /&gt;&lt;BR /&gt;Since the name isn't very fancy (and only for historic reasons) you can tell g77 to name the binary something else.&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;g77 -o my_number_cruncher number_cruncher.for</description>
      <pubDate>Fri, 31 Jan 2003 15:04:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893291#M936146</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2003-01-31T15:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Compiled Fortran File from another OS...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893292#M936147</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Here is a link to the Fortran docs on the GNU site.  Maybe they will help:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://gcc.gnu.org/onlinedocs/gcc-3.2.1/g77/" target="_blank"&gt;http://gcc.gnu.org/onlinedocs/gcc-3.2.1/g77/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Jan 2003 15:20:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893292#M936147</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-01-31T15:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Compiled Fortran File from another OS...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893293#M936148</link>
      <description>Make sure you download and install gnu-binutils as well as egcs.  I believe the assembler for g77 and other compilers is identical, so this may be the complaint.  &lt;BR /&gt;&lt;BR /&gt;Also, make sure that your path includes the ~/bin directory for both bin-utils and egcs.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Fri, 31 Jan 2003 15:57:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893293#M936148</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2003-01-31T15:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Compiled Fortran File from another OS...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893294#M936149</link>
      <description>g77 works quite well on FORTRAN 77&lt;BR /&gt;programs.  It supports the usual F77&lt;BR /&gt;extensions like "end do".  I've had no&lt;BR /&gt;problems using it on our applications&lt;BR /&gt;(30000 lines of F77 code).</description>
      <pubDate>Fri, 31 Jan 2003 19:09:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893294#M936149</guid>
      <dc:creator>Gregory Fruth</dc:creator>
      <dc:date>2003-01-31T19:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Compiled Fortran File from another OS...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893295#M936150</link>
      <description>Hi guys, look at what I got here... Somebody have a clue about what to do????&lt;BR /&gt;&lt;BR /&gt;# g77 qn0460a.f&lt;BR /&gt;qn0460a.f: In subroutine `chdate':&lt;BR /&gt;qn0460a.f:42: warning:&lt;BR /&gt;         CALL IDATE(IMOIS,IJOUR,IAN)&lt;BR /&gt;              ^&lt;BR /&gt;Intrinsic `IDATE', invoked at (^), known to be non-Y2K-compliant [info -f g77 M &lt;BR /&gt;Y2KBAD]&lt;BR /&gt;/usr/ccs/bin/ld: Unsatisfied symbols:&lt;BR /&gt;   MAIN__ (first referenced in /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2/&lt;BR /&gt;../../../libfrtbegin.a(frtbegin.o)) (code)&lt;BR /&gt;   ltitsb_ (first referenced in /var/tmp//ccckg4zb.o) (code)&lt;BR /&gt;collect2: ld returned 1 exit status&lt;BR /&gt;&lt;BR /&gt;thanks!&lt;BR /&gt;jonathan</description>
      <pubDate>Mon, 03 Feb 2003 18:50:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893295#M936150</guid>
      <dc:creator>Jonathan Caplette_1</dc:creator>
      <dc:date>2003-02-03T18:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Compiled Fortran File from another OS...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893296#M936151</link>
      <description>Step 1: Assign points where appropriate.&lt;BR /&gt;&lt;BR /&gt;Step 2: Make sure you have a main program&lt;BR /&gt;defined somewhere.  If the app is halfway&lt;BR /&gt;decently written there'll be a PROGRAM&lt;BR /&gt;and/or STOP statement somewhere.&lt;BR /&gt;Otherwise, look for code that is not encased&lt;BR /&gt;in a SUBROUTINE or FUNCTION or BLOCK&lt;BR /&gt;DATA program unit.&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Feb 2003 19:30:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893296#M936151</guid>
      <dc:creator>Gregory Fruth</dc:creator>
      <dc:date>2003-02-03T19:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Compiled Fortran File from another OS...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893297#M936152</link>
      <description>If it's IDATE that you're asking about, then&lt;BR /&gt;the message from the compiler is pretty&lt;BR /&gt;self-explanatory.  If you're concerned with&lt;BR /&gt;Y2K compliance then you need to fix the&lt;BR /&gt;warning.  Otherwise, you can ignore it and&lt;BR /&gt;the program ought to run.  (The reason why&lt;BR /&gt;your example above doesn't work is the&lt;BR /&gt;missing main program -- the warning about&lt;BR /&gt;IDATE is unrelated).&lt;BR /&gt;&lt;BR /&gt;From the syntax you show, it seems that the&lt;BR /&gt;original programmer was using the VAX IDATE;&lt;BR /&gt;g77 believes that the VAX IDATE is not Y2K&lt;BR /&gt;compliant, hence the warning.  However, if&lt;BR /&gt;you use the Unix IDATE syntax, g77 is satisifed&lt;BR /&gt;and the warning will go away.  But you'll&lt;BR /&gt;need to modify your program a bit:&lt;BR /&gt;&lt;BR /&gt;integer ibuf(3)&lt;BR /&gt;call idate(ibuf)&lt;BR /&gt;ijour = buf(1)&lt;BR /&gt;imoi = buf(2)&lt;BR /&gt;ian = buf(3)&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Feb 2003 21:52:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893297#M936152</guid>
      <dc:creator>Gregory Fruth</dc:creator>
      <dc:date>2003-02-06T21:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Compiled Fortran File from another OS...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893298#M936153</link>
      <description>Oops, replace buf() with ibuf() where appropriate.</description>
      <pubDate>Thu, 06 Feb 2003 22:46:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compiled-fortran-file-from-another-os/m-p/2893298#M936153</guid>
      <dc:creator>Gregory Fruth</dc:creator>
      <dc:date>2003-02-06T22:46:16Z</dc:date>
    </item>
  </channel>
</rss>

