<?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: Pro*C Precompile Warnings in HPUX Itanium in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240264#M676827</link>
    <description>Differnet compilers notice and/or care about different things.&lt;BR /&gt;&lt;BR /&gt;Clearly in this case the compiler you are using on 11.31 (BTW, you should specify the compiler version, not the OS version) cares about things the compiler version you are using on the system running 11.11 does not.  Perhaps the compiler on 11.11 adheres to a looser/older C standard.&lt;BR /&gt;&lt;BR /&gt;You should solve the problem by fixing your source code.  I suspect you will find it still compiles without incident with the compiler you use on 11.11.  Don't try to paper-over the warnings with compiler options even if you find some.  At least that is my personal suggestion.</description>
    <pubDate>Fri, 25 Jul 2008 15:43:16 GMT</pubDate>
    <dc:creator>rick jones</dc:creator>
    <dc:date>2008-07-25T15:43:16Z</dc:date>
    <item>
      <title>Pro*C Precompile Warnings in HPUX Itanium</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240259#M676819</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I migrated from HP-UX versión 11.11 RICS to HP-UX versión 11.31 Itanium.&lt;BR /&gt;&lt;BR /&gt;The Proc un 11.11 RICS Compile fine, but when recompiling in 11.31 Itanium generate warnings such a :&lt;BR /&gt;- warning #2951-D: return type of function "main" must  be "int"&lt;BR /&gt;- warning #2181-D: argument is incompatible with          corresponding format string conversion&lt;BR /&gt;etc&lt;BR /&gt;&lt;BR /&gt;Help me please how to solve the problem.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Mnauel</description>
      <pubDate>Thu, 24 Jul 2008 22:20:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240259#M676819</guid>
      <dc:creator>victorq</dc:creator>
      <dc:date>2008-07-24T22:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Pro*C Precompile Warnings in HPUX Itanium</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240260#M676821</link>
      <description>The warnings mean what they say, your code is broken.  Look at what you have for the definition of main.  I should not be "void main" but "int main".&lt;BR /&gt;The format error means you have the wrong format for that argument.&lt;BR /&gt;To help you any more, we would need to see the exact warning and the source in question.</description>
      <pubDate>Fri, 25 Jul 2008 08:25:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240260#M676821</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-25T08:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Pro*C Precompile Warnings in HPUX Itanium</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240261#M676823</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Ok, thanks for replay.&lt;BR /&gt;&lt;BR /&gt;the question is because in HP-UX versiÃ³n 11.11 RICS the programs .pc compile well without warnings, whereas in the HP-UX versiÃ³n 11.31 Itanium the same programs  generate warnings ..?&lt;BR /&gt;&lt;BR /&gt;is It some flag of compiled ..?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 25 Jul 2008 13:25:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240261#M676823</guid>
      <dc:creator>victorq</dc:creator>
      <dc:date>2008-07-25T13:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pro*C Precompile Warnings in HPUX Itanium</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240262#M676824</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This is a example the .pc : &lt;BR /&gt;&lt;BR /&gt;#include &lt;STDARG.H&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;#include&lt;STDIO.H&gt;&lt;BR /&gt;#include&lt;STDLIB.H&gt;&lt;BR /&gt;#include&lt;STRING.H&gt;&lt;BR /&gt;&lt;BR /&gt;void main( argc, argv )&lt;BR /&gt;int argc;&lt;BR /&gt;char **argv;&lt;BR /&gt;{&lt;BR /&gt;        if( argc != 3 ) {&lt;BR /&gt;                FinAnormal(0);&lt;BR /&gt;        }&lt;BR /&gt;&lt;BR /&gt;        if( !ValidarUsuario( argv[2] ) ) {&lt;BR /&gt;                FinAnormal(1);&lt;BR /&gt;        }&lt;BR /&gt;        &lt;BR /&gt;        ProcesarArchivo( argv[1] );&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;void FinAnormal( CodigoError )&lt;BR /&gt;int CodigoError;&lt;BR /&gt;{&lt;BR /&gt;        fprintf( stderr, "%s\n", ListaErrores[CodigoError] );&lt;BR /&gt;        exit( CodigoError );&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In 11.11 RISC the .C is generated without warnings &lt;BR /&gt;In 11.31 Itanium the .C is generated with warnings&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/STRING.H&gt;&lt;/STDLIB.H&gt;&lt;/STDIO.H&gt;&lt;/SYS&gt;&lt;/STDARG.H&gt;</description>
      <pubDate>Fri, 25 Jul 2008 13:36:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240262#M676824</guid>
      <dc:creator>victorq</dc:creator>
      <dc:date>2008-07-25T13:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Pro*C Precompile Warnings in HPUX Itanium</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240263#M676826</link>
      <description>&amp;gt; [...] the same programs generate warnings ..?&lt;BR /&gt;&lt;BR /&gt;You're using two different compilers, and one&lt;BR /&gt;is newer/better/more helpful.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; warning #2951-D: return type of function&lt;BR /&gt;&amp;gt; "main" must be "int"&lt;BR /&gt;&lt;BR /&gt;&amp;gt; void main( argc, argv )&lt;BR /&gt;&lt;BR /&gt;That seems pretty clear to me.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; warning #2181-D: argument is incompatible&lt;BR /&gt;&amp;gt; with corresponding format string conversion&lt;BR /&gt;&amp;gt; etc&lt;BR /&gt;&lt;BR /&gt;Not knowing which line is involved, I'll&lt;BR /&gt;assume this one:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; fprintf( stderr, "%s\n", ListaErrores[CodigoError] );&lt;BR /&gt;&lt;BR /&gt;I don't see a declaration of ListaErrores[].&lt;BR /&gt;Is it "char *" (to agree with "%s")?</description>
      <pubDate>Fri, 25 Jul 2008 15:21:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240263#M676826</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-07-25T15:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Pro*C Precompile Warnings in HPUX Itanium</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240264#M676827</link>
      <description>Differnet compilers notice and/or care about different things.&lt;BR /&gt;&lt;BR /&gt;Clearly in this case the compiler you are using on 11.31 (BTW, you should specify the compiler version, not the OS version) cares about things the compiler version you are using on the system running 11.11 does not.  Perhaps the compiler on 11.11 adheres to a looser/older C standard.&lt;BR /&gt;&lt;BR /&gt;You should solve the problem by fixing your source code.  I suspect you will find it still compiles without incident with the compiler you use on 11.11.  Don't try to paper-over the warnings with compiler options even if you find some.  At least that is my personal suggestion.</description>
      <pubDate>Fri, 25 Jul 2008 15:43:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240264#M676827</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2008-07-25T15:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Pro*C Precompile Warnings in HPUX Itanium</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240265#M676828</link>
      <description>&amp;gt;the question is because in HP-UX 11.11 RISC the programs .pc compile well without warnings, whereas in the HP-UX 11.31 Integrity the same programs generate warnings?&lt;BR /&gt;&lt;BR /&gt;Because aCC6 is much better (and stricter) than the PA compiler.  It also includes +wlint.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;void main(argc, argv) int argc; char **argv;&lt;BR /&gt;&lt;BR /&gt;This is garbage K&amp;amp;R style code.  Also the Standard requires main to return an int.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;fprintf(stderr, "%s\n", ListaErrores[CodigoError]);&lt;BR /&gt;&lt;BR /&gt;What is the type of ListaErrores?  Is it a char[]?  A char*?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Rick: Perhaps the compiler on 11.11 adheres to a looser/older C standard.&lt;BR /&gt;&lt;BR /&gt;They are probably both C89 but aCC6 is just better at flagging errors.</description>
      <pubDate>Fri, 25 Jul 2008 22:23:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240265#M676828</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-25T22:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pro*C Precompile Warnings in HPUX Itanium</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240266#M676829</link>
      <description>Ok,&lt;BR /&gt;&lt;BR /&gt;I understand that the new version is more strict that the previous version and the solution is to check the code to solve it.&lt;BR /&gt;&lt;BR /&gt;The problem is the .C are many programas and to solve each one would spend a lot of time.&lt;BR /&gt;&lt;BR /&gt;I might restore Compiler C of RISC version and use it in Itanium ..?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 29 Jul 2008 20:56:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240266#M676829</guid>
      <dc:creator>victorq</dc:creator>
      <dc:date>2008-07-29T20:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Pro*C Precompile Warnings in HPUX Itanium</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240267#M676830</link>
      <description>&amp;gt; I might restore Compiler C of RISC version&lt;BR /&gt;&amp;gt; and use it in Itanium ..?&lt;BR /&gt;&lt;BR /&gt;Right.  Good one.&lt;BR /&gt;&lt;BR /&gt;Or, if you were serious, I seriously doubt it.</description>
      <pubDate>Tue, 29 Jul 2008 21:33:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240267#M676830</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-07-29T21:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Pro*C Precompile Warnings in HPUX Itanium</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240268#M676831</link>
      <description>The compiler you are running on the 11.31 Itanium system is pointing-out probable bugs in the source code.  Probable bugs that the older compiler didn't catch.  Just because the older compiler didn't catch them doesn't mean the code was correct, it only means that the older compiler didn't catch them.  Soooooo, you Really Should (tm) start cleaning-up the warnings.&lt;BR /&gt;&lt;BR /&gt;The compiler you are running on the 11.11 system only generates PA-RISC code.  While the Aries emulator will run that code on the Itanium systems, you are better off running "native" Itanium code.  For that reason, bringing the compiler you are using on the 11.11 system onto the 11.31 Itanium system is really not a good idea.</description>
      <pubDate>Tue, 29 Jul 2008 21:58:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240268#M676831</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2008-07-29T21:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Pro*C Precompile Warnings in HPUX Itanium</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240269#M676832</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;To Rick's sound advice, I'll add a question for you:  What will you do when a later compiler version doesn't compile your old code at all?  Won't you wish that you had taken the time to address the *warnings* that have now become outright *errors*?  You see, the issue will resurface and at a time when you have less time than now to rectify it.  That's a universal law :-)&lt;BR /&gt;&lt;BR /&gt;Of course, you could hope that all this will simply become someone else's problem.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Jul 2008 22:37:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240269#M676832</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-07-29T22:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Pro*C Precompile Warnings in HPUX Itanium</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240270#M676833</link>
      <description>&amp;gt;the solution is to check the code to solve it.&lt;BR /&gt;&amp;gt;The problem is the .C are many programs and to solve each one would spend a lot of time.&lt;BR /&gt;&lt;BR /&gt;If you don't want to fix them now, you can just ignore the warnings until you have some time to fix them.&lt;BR /&gt;&lt;BR /&gt;You can also use HP Code Advisor to get a prioritized list of the warnings so you know which to work on first:&lt;BR /&gt;$ cadvise report logfiles ...</description>
      <pubDate>Wed, 30 Jul 2008 01:16:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240270#M676833</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-30T01:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Pro*C Precompile Warnings in HPUX Itanium</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240271#M676834</link>
      <description>&amp;gt; The problem is the .C are many programas&lt;BR /&gt;&amp;gt; and to solve each one would spend a lot of&lt;BR /&gt;&amp;gt; time.&lt;BR /&gt;&lt;BR /&gt;Writing good, clean code is such a bother.&lt;BR /&gt;This fact helps to explain the abundance of&lt;BR /&gt;bad code in the world.</description>
      <pubDate>Wed, 30 Jul 2008 01:53:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-precompile-warnings-in-hpux-itanium/m-p/4240271#M676834</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-07-30T01:53:57Z</dc:date>
    </item>
  </channel>
</rss>

