<?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: &amp;quot;Unsatisfied symbols&amp;quot; while linking (Fortran 90 code calls C functions) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-unsatisfied-symbols-quot-while-linking-fortran-90-code/m-p/2696384#M723399</link>
    <description>&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As far as I can see  all *.o files go into&lt;BR /&gt;the astros.a  file.&lt;BR /&gt;Use nm  astros.a  to check if the unsatisfied&lt;BR /&gt;symbols really are in astros.a&lt;BR /&gt;&lt;BR /&gt;nm  astros.a   should show  lines like this:&lt;BR /&gt;&lt;BR /&gt;   when     |    0 |  extern | entry | $CODE$&lt;BR /&gt;&lt;BR /&gt;By the way,  I do not see why you have this&lt;BR /&gt;line in the compile-script:  &lt;BR /&gt;  ar rls $entry.a *.o&lt;BR /&gt;as this does not seem to be used  later.&lt;BR /&gt;&lt;BR /&gt;The  output from your cc -Ae  also indicates&lt;BR /&gt;that you do not have  the ANSI/C compiler&lt;BR /&gt;installed, only the "bundled compiler"&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Olav&lt;BR /&gt;</description>
    <pubDate>Wed, 03 Apr 2002 19:28:23 GMT</pubDate>
    <dc:creator>Olav Baadsvik</dc:creator>
    <dc:date>2002-04-03T19:28:23Z</dc:date>
    <item>
      <title>"Unsatisfied symbols" while linking (Fortran 90 code calls C functions)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-unsatisfied-symbols-quot-while-linking-fortran-90-code/m-p/2696383#M723398</link>
      <description>Hello there,&lt;BR /&gt;&lt;BR /&gt;I got the error message like the following during linking.  &lt;BR /&gt;&lt;BR /&gt;/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (ice.o) was detected.&lt;BR /&gt;The linked output may not run on a PA 1.x system.&lt;BR /&gt;/usr/ccs/bin/ld: Unsatisfied symbols:&lt;BR /&gt;   xxcset (code)&lt;BR /&gt;   when (code)&lt;BR /&gt;   xxgpci (code)&lt;BR /&gt;   xxcclr (code)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The scripts used to compile and link are:&lt;BR /&gt;compile script:&lt;BR /&gt;f90 -c -O2 +U77 *.f&lt;BR /&gt;if ( $entry == 'mdsgi' ) cc -c *.c&lt;BR /&gt;ar rls $entry.a *.o&lt;BR /&gt;ar rls $astpath/library/blockdata.a *bd.o&lt;BR /&gt;ar rls $astpath/library/astros.a *.o&lt;BR /&gt;&lt;BR /&gt;link script:&lt;BR /&gt;cp $astpath/library/astros.a $astpath/dist/sysgen&lt;BR /&gt;cp $astpath/library/sysgen.a $astpath/dist/sysgen&lt;BR /&gt;cp $astpath/library/blockdata.a $astpath/dist/sysgen&lt;BR /&gt;cd $astpath/dist/sysgen&lt;BR /&gt;f90 +U77 -o astros.bin astros.o *.o blockdata.a astros.a&lt;BR /&gt;&lt;BR /&gt;The cc compiler is with HP-UX 10.20 and&lt;BR /&gt;the Fortran 90 is from HP.  Please see&lt;BR /&gt;attachment for cc and f90 info.  Those&lt;BR /&gt;C programs (say, when.c) are compiled fine&lt;BR /&gt;without error messages, by the way.&lt;BR /&gt;&lt;BR /&gt;Does anyone have the idea about the problem?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Reggie&lt;BR /&gt;&lt;BR /&gt;reggie@zonatech.com&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Apr 2002 19:00:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-unsatisfied-symbols-quot-while-linking-fortran-90-code/m-p/2696383#M723398</guid>
      <dc:creator>Reggie Chang</dc:creator>
      <dc:date>2002-04-03T19:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: "Unsatisfied symbols" while linking (Fortran 90 code calls C functions)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-unsatisfied-symbols-quot-while-linking-fortran-90-code/m-p/2696384#M723399</link>
      <description>&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As far as I can see  all *.o files go into&lt;BR /&gt;the astros.a  file.&lt;BR /&gt;Use nm  astros.a  to check if the unsatisfied&lt;BR /&gt;symbols really are in astros.a&lt;BR /&gt;&lt;BR /&gt;nm  astros.a   should show  lines like this:&lt;BR /&gt;&lt;BR /&gt;   when     |    0 |  extern | entry | $CODE$&lt;BR /&gt;&lt;BR /&gt;By the way,  I do not see why you have this&lt;BR /&gt;line in the compile-script:  &lt;BR /&gt;  ar rls $entry.a *.o&lt;BR /&gt;as this does not seem to be used  later.&lt;BR /&gt;&lt;BR /&gt;The  output from your cc -Ae  also indicates&lt;BR /&gt;that you do not have  the ANSI/C compiler&lt;BR /&gt;installed, only the "bundled compiler"&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Olav&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Apr 2002 19:28:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-unsatisfied-symbols-quot-while-linking-fortran-90-code/m-p/2696384#M723399</guid>
      <dc:creator>Olav Baadsvik</dc:creator>
      <dc:date>2002-04-03T19:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: "Unsatisfied symbols" while linking (Fortran 90 code calls C functions)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-unsatisfied-symbols-quot-while-linking-fortran-90-code/m-p/2696385#M723400</link>
      <description>The HP F90 compiler (and I suspect most&lt;BR /&gt;if not all FORTRAN compilers) automatically&lt;BR /&gt;converts all external symbol names (function&lt;BR /&gt;names, subroutine names, and common block&lt;BR /&gt;names) to lower case.  Perhaps your functions&lt;BR /&gt;xxcset(), when(), etc. are actually named&lt;BR /&gt;(xxCset(0, When(), etc.)  F90 will only look&lt;BR /&gt;for xxcset(), when(), etc.   You can use the&lt;BR /&gt;"F90 +uppercase" option to make it look for&lt;BR /&gt;XXCSET(), WHEN(), etc., but I don't think&lt;BR /&gt;there's a way to get it to preserve mixed&lt;BR /&gt;case symbols.&lt;BR /&gt;&lt;BR /&gt;If this is the problem, you need to rename&lt;BR /&gt;your C functions to all lower case, or to&lt;BR /&gt;all upper case and use the +uppercase&lt;BR /&gt;option.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Apr 2002 20:41:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-unsatisfied-symbols-quot-while-linking-fortran-90-code/m-p/2696385#M723400</guid>
      <dc:creator>Gregory Fruth</dc:creator>
      <dc:date>2002-04-03T20:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: "Unsatisfied symbols" while linking (Fortran 90 code calls C functions)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-unsatisfied-symbols-quot-while-linking-fortran-90-code/m-p/2696386#M723401</link>
      <description>Hi Olav,&lt;BR /&gt;&lt;BR /&gt;nm astros.a gives the following result:&lt;BR /&gt;&lt;BR /&gt;Symbols from astros.a[when.o]:&lt;BR /&gt;S$7$when_     |    384|static|data   |$LIT$&lt;BR /&gt;when_         |      0|extern|entry  |$CODE$&lt;BR /&gt;when          |       |undef |code   |&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Do you see any problem?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Reggie&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Apr 2002 21:04:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-unsatisfied-symbols-quot-while-linking-fortran-90-code/m-p/2696386#M723401</guid>
      <dc:creator>Reggie Chang</dc:creator>
      <dc:date>2002-04-03T21:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: "Unsatisfied symbols" while linking (Fortran 90 code calls C functions)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quot-unsatisfied-symbols-quot-while-linking-fortran-90-code/m-p/2696387#M723402</link>
      <description>Oh yeah, most FORTRAN compilers also&lt;BR /&gt;add an underscore to external symbol names.&lt;BR /&gt;Use "f90 +noppu" to suppress this behavior.&lt;BR /&gt;&lt;BR /&gt;According to the man page, "f90 +ppu"&lt;BR /&gt;is the default for 64-bit objects, while&lt;BR /&gt;"f90 +noppu" is the default for 32-bit&lt;BR /&gt;objects.&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Apr 2002 21:19:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quot-unsatisfied-symbols-quot-while-linking-fortran-90-code/m-p/2696387#M723402</guid>
      <dc:creator>Gregory Fruth</dc:creator>
      <dc:date>2002-04-03T21:19:30Z</dc:date>
    </item>
  </channel>
</rss>

