<?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 compiler problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cc-compiler-problem/m-p/4623779#M675950</link>
    <description>Do you still have any questions?</description>
    <pubDate>Tue, 27 Apr 2010 07:45:21 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2010-04-27T07:45:21Z</dc:date>
    <item>
      <title>cc compiler problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cc-compiler-problem/m-p/4623776#M675947</link>
      <description>Deal All,&lt;BR /&gt;&lt;BR /&gt;I have a simple c code like this:&lt;BR /&gt;&lt;BR /&gt;#define _HPUX_API_LEVEL 20040821&lt;BR /&gt;#if !defined(__GNUC__) || (__GNUC__ &amp;lt; 2)&lt;BR /&gt;# define __attribute__(x)&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;#include &lt;ERRNO.H&gt;&lt;BR /&gt;#include &lt;STRING.H&gt;&lt;BR /&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;        struct utsname osname;&lt;BR /&gt;        if(uname(&amp;amp;osname)&amp;lt;0)&lt;BR /&gt;        {&lt;BR /&gt;                printf("%d %s\n",errno,strerror(errno));&lt;BR /&gt;                printf("error\n");&lt;BR /&gt;        }&lt;BR /&gt;        printf("%s\n",osname.release);&lt;BR /&gt;&lt;BR /&gt;        return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;to use the expand hostname.&lt;BR /&gt;But if define the following line,it will &lt;BR /&gt;create errors:&lt;BR /&gt;72 Value too large to be stored in data type&lt;BR /&gt;error&lt;BR /&gt;&lt;BR /&gt;#if !defined(__GNUC__) || (__GNUC__ &amp;lt; 2)&lt;BR /&gt;# define __attribute__(x)&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The reason is that in the /usr/include/sys/stdsyms.h there is line:&lt;BR /&gt;&lt;BR /&gt;#define _HPUX_API_VERS_20040821_ATTR __attribute__((version_id("20040821")))&lt;BR /&gt;&lt;BR /&gt;That may be cause the error.&lt;BR /&gt;&lt;BR /&gt;So can anyone give me some help?&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;Kevin,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRING.H&gt;&lt;/ERRNO.H&gt;&lt;/SYS&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Mon, 26 Apr 2010 09:02:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cc-compiler-problem/m-p/4623776#M675947</guid>
      <dc:creator>yangk</dc:creator>
      <dc:date>2010-04-26T09:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: cc compiler problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cc-compiler-problem/m-p/4623777#M675948</link>
      <description>What OS version are you using?  What C compiler version are you using?&lt;BR /&gt;&lt;BR /&gt;#if !defined(__GNUC__) || (__GNUC__ &amp;lt; 2)&lt;BR /&gt;# define __attribute__(x)&lt;BR /&gt;&lt;BR /&gt;You can't do this if you want to use longer hostnames.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;if define the following line, it will create errors:&lt;BR /&gt;&lt;BR /&gt;Yes.  It appears you already know the cause and answer, remove those bogus #if lines.</description>
      <pubDate>Mon, 26 Apr 2010 09:39:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cc-compiler-problem/m-p/4623777#M675948</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-04-26T09:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: cc compiler problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cc-compiler-problem/m-p/4623778#M675949</link>
      <description>Hi dennis,&lt;BR /&gt;&lt;BR /&gt;My OS is :&lt;BR /&gt;uname -a&lt;BR /&gt;HP-UX test567890 B.11.31 U 9000/800 2404418694 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;And the cc version is :&lt;BR /&gt;what /opt/ansic/bin/cc&lt;BR /&gt;/opt/ansic/bin/cc:&lt;BR /&gt;        $Revision: 92453-07 linker linker crt0.o B.11.53 060807 $&lt;BR /&gt;        LINT B.11.11.18 CXREF B.11.11.18&lt;BR /&gt;        HP92453-01 B.11.11.18 HP C Compiler&lt;BR /&gt;         $ PATCH/11.00:PHCO_27774  Oct  3 2002 09:45:59 $</description>
      <pubDate>Tue, 27 Apr 2010 00:36:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cc-compiler-problem/m-p/4623778#M675949</guid>
      <dc:creator>yangk</dc:creator>
      <dc:date>2010-04-27T00:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: cc compiler problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cc-compiler-problem/m-p/4623779#M675950</link>
      <description>Do you still have any questions?</description>
      <pubDate>Tue, 27 Apr 2010 07:45:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cc-compiler-problem/m-p/4623779#M675950</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-04-27T07:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: cc compiler problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cc-compiler-problem/m-p/4623780#M675951</link>
      <description>Hi dennis,&lt;BR /&gt;&lt;BR /&gt;Thank you very much, now i have no questions about this!</description>
      <pubDate>Tue, 27 Apr 2010 08:16:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cc-compiler-problem/m-p/4623780#M675951</guid>
      <dc:creator>yangk</dc:creator>
      <dc:date>2010-04-27T08:16:00Z</dc:date>
    </item>
  </channel>
</rss>

