<?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: cc compilation error after install B3901BA in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cc-compilation-error-after-install-b3901ba/m-p/4960615#M786178</link>
    <description>Yes, the -C option does help. But the -P option for C preprocessor expansion to see all the lines is more useful.&lt;BR /&gt;&lt;BR /&gt;thanks for the speedy response. very grateful.</description>
    <pubDate>Fri, 17 Feb 2006 18:48:37 GMT</pubDate>
    <dc:creator>Liu, yuhyun Marjorie</dc:creator>
    <dc:date>2006-02-17T18:48:37Z</dc:date>
    <item>
      <title>cc compilation error after install B3901BA</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cc-compilation-error-after-install-b3901ba/m-p/4960608#M786171</link>
      <description>Hello,&lt;BR /&gt;I just installed B3901BA ( B11.11.14) on our HP-UX 11.11.&lt;BR /&gt;I tried to recompile existing applications, and get an error ..&lt;BR /&gt;&lt;BR /&gt;cc: "/sas/code/utils/tlm.h", line59: error 1000: Unexpected symbol: "-".&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;Stop.&lt;BR /&gt;when I checked the tlm.h file, it does not have  "-" around.&lt;BR /&gt;&lt;BR /&gt;Our HP server is 9000/800/rp3410, 64-bit machine.&lt;BR /&gt;&lt;BR /&gt;The codes around line 59 are:&lt;BR /&gt;&lt;BR /&gt;typedef enum&lt;BR /&gt;   {&lt;BR /&gt;   NO_VIOLATION = 0,&lt;BR /&gt;   CRITICAL_LOW,&lt;BR /&gt;   MARGINAL_LOW,&lt;BR /&gt;   NOMINAL,&lt;BR /&gt;   MARGINAL_HIGH,&lt;BR /&gt;   CRITICAL_HIGH,&lt;BR /&gt;   INVALID,   &amp;lt;----- line 59&lt;BR /&gt;   UPDATING&lt;BR /&gt;   } VIOLATION_STATES;&lt;BR /&gt;&lt;BR /&gt;As far as I remember when we have B11.00.xx version C/ANSI C compiler, there is no such problem.&lt;BR /&gt;&lt;BR /&gt;Also, we need a C compiler to install oracle software.&lt;BR /&gt;&lt;BR /&gt;Please give me some hint, and help&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Marjorie Liu</description>
      <pubDate>Thu, 16 Feb 2006 20:57:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cc-compilation-error-after-install-b3901ba/m-p/4960608#M786171</guid>
      <dc:creator>Liu, yuhyun Marjorie</dc:creator>
      <dc:date>2006-02-16T20:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: cc compilation error after install B3901BA</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cc-compilation-error-after-install-b3901ba/m-p/4960609#M786172</link>
      <description>My best guess is than a previously included header file has a #define for "INVALID" that is interfering. I would compile with the -P (I think) option which will produce a ".i" (I think) file which is the output of the c preprocessor before it is sent to the actual compiler.&lt;BR /&gt;&lt;BR /&gt;e.g. cc -P myfile.c&lt;BR /&gt;should produce myfile.i. Examine it to see what macro expansions/substitutions have taken place.&lt;BR /&gt;&lt;BR /&gt;Man cc to make sure that I have the correct cc options because I a doing this from memory.&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Feb 2006 21:25:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cc-compilation-error-after-install-b3901ba/m-p/4960609#M786172</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-02-16T21:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: cc compilation error after install B3901BA</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cc-compilation-error-after-install-b3901ba/m-p/4960610#M786173</link>
      <description>Hello,&lt;BR /&gt;I compiled with -P option and created a display.i file.&lt;BR /&gt;&lt;BR /&gt;after checking the content, the section&lt;BR /&gt;&lt;BR /&gt;typedef enum&lt;BR /&gt;{&lt;BR /&gt;NO_VIOLATION = 0,&lt;BR /&gt;CRITICAL_LOW,&lt;BR /&gt;MARGINAL_LOW,&lt;BR /&gt;NOMINAL,&lt;BR /&gt;MARGINAL_HIGH,&lt;BR /&gt;CRITICAL_HIGH,&lt;BR /&gt;-1, &amp;lt;----- line 59&lt;BR /&gt;UPDATING&lt;BR /&gt;} VIOLATION_STATES;&lt;BR /&gt;&lt;BR /&gt;which is not right.&lt;BR /&gt;&lt;BR /&gt;How do I find out where the INVALID is defined or replaced?</description>
      <pubDate>Fri, 17 Feb 2006 15:10:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cc-compilation-error-after-install-b3901ba/m-p/4960610#M786173</guid>
      <dc:creator>Liu, yuhyun Marjorie</dc:creator>
      <dc:date>2006-02-17T15:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: cc compilation error after install B3901BA</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cc-compilation-error-after-install-b3901ba/m-p/4960611#M786174</link>
      <description>You need to grep each of the specified #include'ed files (which might in turn contain #include directives) for "INVALID".&lt;BR /&gt;&lt;BR /&gt;You are looking for a statement like this:&lt;BR /&gt;#define INVALID -1&lt;BR /&gt;&lt;BR /&gt;or it may simply be a compiler flag like this&lt;BR /&gt;cc -DINVALID=-1 myfile.c&lt;BR /&gt;so have a close look at your makefile.</description>
      <pubDate>Fri, 17 Feb 2006 15:55:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cc-compilation-error-after-install-b3901ba/m-p/4960611#M786174</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-02-17T15:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: cc compilation error after install B3901BA</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cc-compilation-error-after-install-b3901ba/m-p/4960612#M786175</link>
      <description>I found the line&lt;BR /&gt;&lt;BR /&gt;#define INVALID  -1&lt;BR /&gt;&lt;BR /&gt;in a header file.&lt;BR /&gt;&lt;BR /&gt;This solved the problem.&lt;BR /&gt;&lt;BR /&gt;Thank you so much.&lt;BR /&gt;Marjorie</description>
      <pubDate>Fri, 17 Feb 2006 18:02:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cc-compilation-error-after-install-b3901ba/m-p/4960612#M786175</guid>
      <dc:creator>Liu, yuhyun Marjorie</dc:creator>
      <dc:date>2006-02-17T18:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: cc compilation error after install B3901BA</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cc-compilation-error-after-install-b3901ba/m-p/4960613#M786176</link>
      <description>By the way, you can add the -C option along with -P and it will leave the comments in. Most header files have their names in comments so you should be able to track down the #define.&lt;BR /&gt;&lt;BR /&gt;cc -P -C myfile.c&lt;BR /&gt;&lt;BR /&gt;Now examine myfile.i and you should have a much better idea where in the #include chain the substitution is occuring.</description>
      <pubDate>Fri, 17 Feb 2006 18:03:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cc-compilation-error-after-install-b3901ba/m-p/4960613#M786176</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-02-17T18:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: cc compilation error after install B3901BA</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cc-compilation-error-after-install-b3901ba/m-p/4960614#M786177</link>
      <description>By the way, if you ever encounter a problem like this again, you can fix it by simply&lt;BR /&gt;doing an:&lt;BR /&gt;#undef INVALID&lt;BR /&gt;just before your enum statement or whatever&lt;BR /&gt;block of code applies. This is much better than "fixing" a standard #include file because almost certainly if you commented out a #define in a header, you broke an application that depends upon that define.&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Feb 2006 18:10:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cc-compilation-error-after-install-b3901ba/m-p/4960614#M786177</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-02-17T18:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: cc compilation error after install B3901BA</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cc-compilation-error-after-install-b3901ba/m-p/4960615#M786178</link>
      <description>Yes, the -C option does help. But the -P option for C preprocessor expansion to see all the lines is more useful.&lt;BR /&gt;&lt;BR /&gt;thanks for the speedy response. very grateful.</description>
      <pubDate>Fri, 17 Feb 2006 18:48:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cc-compilation-error-after-install-b3901ba/m-p/4960615#M786178</guid>
      <dc:creator>Liu, yuhyun Marjorie</dc:creator>
      <dc:date>2006-02-17T18:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: cc compilation error after install B3901BA</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cc-compilation-error-after-install-b3901ba/m-p/4960616#M786179</link>
      <description>Thanks for all the help</description>
      <pubDate>Mon, 27 Feb 2006 16:22:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cc-compilation-error-after-install-b3901ba/m-p/4960616#M786179</guid>
      <dc:creator>Liu, yuhyun Marjorie</dc:creator>
      <dc:date>2006-02-27T16:22:58Z</dc:date>
    </item>
  </channel>
</rss>

