<?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 cc compile in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cc-compile/m-p/4391527#M350313</link>
    <description>When compiling with cc on HP-UX 11.23 OS on hp9000 server, getting this warning:&lt;BR /&gt;cpp: "/usr/include/sys/stdsyms.h". line 19: warning 2001: Redefinition of macro. _INCLUDE_POSIX_SOURCE&lt;BR /&gt;the compile command looks like this:&lt;BR /&gt;cc -c -I/opt/mqm/inc -I. -Ae +U4 +DA1.0 +w3 +O2 -lmqm getmsgs.c&lt;BR /&gt; &lt;BR /&gt;The c programs compile - but need to know what to do with the warning.&lt;BR /&gt;&lt;BR /&gt;Let me know if more info is needed.&lt;BR /&gt;</description>
    <pubDate>Tue, 31 Mar 2009 20:03:22 GMT</pubDate>
    <dc:creator>Linda Lux</dc:creator>
    <dc:date>2009-03-31T20:03:22Z</dc:date>
    <item>
      <title>cc compile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cc-compile/m-p/4391527#M350313</link>
      <description>When compiling with cc on HP-UX 11.23 OS on hp9000 server, getting this warning:&lt;BR /&gt;cpp: "/usr/include/sys/stdsyms.h". line 19: warning 2001: Redefinition of macro. _INCLUDE_POSIX_SOURCE&lt;BR /&gt;the compile command looks like this:&lt;BR /&gt;cc -c -I/opt/mqm/inc -I. -Ae +U4 +DA1.0 +w3 +O2 -lmqm getmsgs.c&lt;BR /&gt; &lt;BR /&gt;The c programs compile - but need to know what to do with the warning.&lt;BR /&gt;&lt;BR /&gt;Let me know if more info is needed.&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Mar 2009 20:03:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cc-compile/m-p/4391527#M350313</guid>
      <dc:creator>Linda Lux</dc:creator>
      <dc:date>2009-03-31T20:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: cc compile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cc-compile/m-p/4391528#M350314</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] but need to know [...]&lt;BR /&gt;&lt;BR /&gt;This may depend on how much you care.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] Redefinition of macro [...]&lt;BR /&gt;&lt;BR /&gt;So, in how many places is&lt;BR /&gt;_INCLUDE_POSIX_SOURCE getting defined?  The&lt;BR /&gt;warning message tells you where the second&lt;BR /&gt;one happened.  Where's the first one?  And&lt;BR /&gt;whose fault is it?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] -Ae +U4 +DA1.0 +w3 [...]&lt;BR /&gt;&lt;BR /&gt;I know nothing.  Does any of those imply a&lt;BR /&gt;definition for _INCLUDE_POSIX_SOURCE?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] getmsgs.c&lt;BR /&gt;&lt;BR /&gt;Can't see it.  Can you provide a small&lt;BR /&gt;failing test case?</description>
      <pubDate>Tue, 31 Mar 2009 21:27:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cc-compile/m-p/4391528#M350314</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-03-31T21:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: cc compile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cc-compile/m-p/4391529#M350315</link>
      <description>If you are getting warning 2001 on _INCLUDE_POSIX_SOURCE, it means you have illegally defined that variable, instead of _POSIX_SOURCE.&lt;BR /&gt;&lt;BR /&gt;To debug macros you can use:&lt;BR /&gt;cc ... -Wp,-C,-G -E &amp;gt; getmsgs.i&lt;BR /&gt;&lt;BR /&gt;Then look for _INCLUDE_POSIX_SOURCE.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;-Ae +U4 +DA1.0 +w3 +O2 -lmqm getmsgs.c&lt;BR /&gt;&lt;BR /&gt;There is a +u4 but not +U4.&lt;BR /&gt;The use of +DA1.0 is not supported after 10.10, replace by +DAportable.&lt;BR /&gt;You should really have your libs after your sources/objects: getmsgs.c -lmqm&lt;BR /&gt;You shouldn't be using +w3 to suppress all warnings, better to use +W with a list of messages to suppress.</description>
      <pubDate>Tue, 31 Mar 2009 23:34:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cc-compile/m-p/4391529#M350315</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-03-31T23:34:33Z</dc:date>
    </item>
  </channel>
</rss>

