<?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: Erros when using  -D_HPUX_API_LEVEL=20040821 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/erros-when-using-d-hpux-api-level-20040821/m-p/5153070#M683935</link>
    <description>&amp;gt;Is this is known issue with aries/linker on systems with long hostnames?&lt;BR /&gt;&lt;BR /&gt;Yes, this is a known problem with dld.&lt;BR /&gt;PHSS_39093 11.23 linker + fdp cumulative patch&lt;BR /&gt;PHSS_39094 11.31 linker + fdp cumulative patch</description>
    <pubDate>Thu, 29 Jan 2009 23:11:18 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2009-01-29T23:11:18Z</dc:date>
    <item>
      <title>Erros when using  -D_HPUX_API_LEVEL=20040821</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/erros-when-using-d-hpux-api-level-20040821/m-p/5153064#M683929</link>
      <description>I have a program which is not compatible with long hostnames/nodename. To make it compatible I tried to compile it with D_HPUX_API_LEVEL=20040821 but the following errors were thrown by aCC.&lt;BR /&gt;&lt;BR /&gt;bash-3.2# aCC -D_HPUX_API_LEVEL=20040821 long_hostname.c &lt;BR /&gt;Error 19: "/usr/include/sys/utsname.h", line 73 # Unexpected 'utsname'.&lt;BR /&gt;    struct __UTSNAME_VERSION_V2_ATTR utsname {&lt;BR /&gt;                                     ^^^^^^^  &lt;BR /&gt;Error 373: "/usr/include/sys/utsname.h", line 73 # Old-style function definition parameter must be a simple identifier.&lt;BR /&gt;    struct __UTSNAME_VERSION_V2_ATTR utsname {&lt;BR /&gt;           ^^^^^^^^^^^^^^^^^^^^^^^^^          &lt;BR /&gt;Error 43: "/usr/include/sys/utsname.h", line 73 # C++ does not allow Old-style (non-prototype) function definitions.&lt;BR /&gt;    struct __UTSNAME_VERSION_V2_ATTR utsname {&lt;BR /&gt;    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^          &lt;BR /&gt;Error 305: "/usr/include/sys/utsname.h", line 73 # Function definitions must return completed object type or void.&lt;BR /&gt;    struct __UTSNAME_VERSION_V2_ATTR utsname {&lt;BR /&gt;           ^^^^^^^^^^^^^^^^^^^^^^^^^          &lt;BR /&gt;Warning 361: "/usr/include/sys/utsname.h", line 73 # Value-returning function might end without executing a return statement.&lt;BR /&gt;    struct __UTSNAME_VERSION_V2_ATTR utsname {&lt;BR /&gt;           ^^^^^^^^^^^^^^^^^^^^^^^^^          &lt;BR /&gt;Error 20: "/usr/include/sys/utsname.h", line 91 # '{' expected before '__attribute__'.&lt;BR /&gt;         extern int uname(struct utsname *) __UNAME_VERSION_ATTR;&lt;BR /&gt;                                            ^^^^^^^^^^^^^^^^^^^^ &lt;BR /&gt;Error 284: "/usr/include/sys/utsname.h", line 91 # Called function must return completed object type or void.&lt;BR /&gt;         extern int uname(struct utsname *) __UNAME_VERSION_ATTR;&lt;BR /&gt;                                            ^^^^^^^^^^^^^^^^^^^^ &lt;BR /&gt;Warning 361: "/usr/include/sys/utsname.h", line 91 # Value-returning function might end without executing a return statement.&lt;BR /&gt;         extern int uname(struct utsname *) __UNAME_VERSION_ATTR;&lt;BR /&gt;                    ^^^^^                                        &lt;BR /&gt;Error 628: "long_hostname.c", line 8 # "utsname n" ["long_hostname.c", line 8] cannot be defined to have an incomplete type.&lt;BR /&gt;       struct utsname n;&lt;BR /&gt;                      ^ &lt;BR /&gt;Error 548: "long_hostname.c", line 14 # The expression on the left side of the '.' (dot member access operator) must be a completed class object type; the&lt;BR /&gt;    type of the left side is 'tentative struct utsname' and 'struct utsname' has not been defined yet.&lt;BR /&gt;    intf("sysname=%s, release=%s, version=%s\n",n.sysname,n.release,n.version);&lt;BR /&gt;                                                                    ^          &lt;BR /&gt;Error 20: "long_hostname.c", line 2716 # '}' expected before '&lt;END of="" file=""&gt;'.&lt;BR /&gt;bash-3.2# &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here is a sample .&lt;BR /&gt;&lt;BR /&gt;bash-3.2# cat long_hostname.c &lt;BR /&gt;#include&lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;#define SYS_NMLN1 257&lt;BR /&gt;#define SNLEN1 257&lt;BR /&gt;&lt;BR /&gt;int main() &lt;BR /&gt;{&lt;BR /&gt;   struct utsname n;&lt;BR /&gt;   int ret; &lt;BR /&gt;   ret = uname(&amp;amp;n);&lt;BR /&gt;   printf("ret = %d" , ret);&lt;BR /&gt;   if(ret &amp;gt;=0 )&lt;BR /&gt;   { &lt;BR /&gt;      printf("sysname=%s, release=%s, version=%s\n",n.sysname,n.release,n.version);&lt;BR /&gt;   }&lt;BR /&gt;   else&lt;BR /&gt;   {&lt;BR /&gt;       perror("Uname");&lt;BR /&gt;   }&lt;BR /&gt;   return 0;&lt;BR /&gt;} &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Has somebdy seen these errors before?&lt;BR /&gt;&lt;BR /&gt;&lt;/SYS&gt;&lt;/STDIO.H&gt;&lt;/END&gt;</description>
      <pubDate>Wed, 28 Jan 2009 10:50:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/erros-when-using-d-hpux-api-level-20040821/m-p/5153064#M683929</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2009-01-28T10:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Erros when using  -D_HPUX_API_LEVEL=20040821</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/erros-when-using-d-hpux-api-level-20040821/m-p/5153065#M683930</link>
      <description>&amp;gt;I have a program which is not compatible with long hostnames/nodename.&lt;BR /&gt;&lt;BR /&gt;What version of aC++ do you have?  It is highly likely that version doesn't support this functionality.</description>
      <pubDate>Wed, 28 Jan 2009 13:21:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/erros-when-using-d-hpux-api-level-20040821/m-p/5153065#M683930</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-01-28T13:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Erros when using  -D_HPUX_API_LEVEL=20040821</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/erros-when-using-d-hpux-api-level-20040821/m-p/5153066#M683931</link>
      <description>aCC version is 3.37. I also think that this is too old for this.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jan 2009 18:39:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/erros-when-using-d-hpux-api-level-20040821/m-p/5153066#M683931</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2009-01-28T18:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Erros when using  -D_HPUX_API_LEVEL=20040821</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/erros-when-using-d-hpux-api-level-20040821/m-p/5153067#M683932</link>
      <description>upgrading the compiler is not possible :-(&lt;BR /&gt;&lt;BR /&gt;I think I have only these options left if -D_HPUX_API_LEVEL=20040821 does not work:&lt;BR /&gt;&lt;BR /&gt;-ignore EOVERFLOW as I am not interested in utsname.nodename. But this behavior can change&lt;BR /&gt;in any new HPUX release. EOVERFLOW and population of utname can be made mutually exclusive.&lt;BR /&gt;&lt;BR /&gt;- Set tunable uname_eoverflow=0 as we do not care about the nodename field. &lt;BR /&gt;&lt;BR /&gt;-use something else instead of uname(2M). e.g popen("uname -r") etc. to get the data&lt;BR /&gt;&lt;BR /&gt;Do you know of any more methods?&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 28 Jan 2009 18:46:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/erros-when-using-d-hpux-api-level-20040821/m-p/5153067#M683932</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2009-01-28T18:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Erros when using  -D_HPUX_API_LEVEL=20040821</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/erros-when-using-d-hpux-api-level-20040821/m-p/5153068#M683933</link>
      <description>&amp;gt;upgrading the compiler is not possible :-(&lt;BR /&gt;&lt;BR /&gt;Why?  You are using A.03.37 but the first compiler that was supported for 11.23 is A.03.55.&lt;BR /&gt;You need at least A.03.39.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Do you know of any more methods?&lt;BR /&gt;&lt;BR /&gt;Call uname(2) in a C source, using a newer C compiler.</description>
      <pubDate>Thu, 29 Jan 2009 00:26:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/erros-when-using-d-hpux-api-level-20040821/m-p/5153068#M683933</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-01-29T00:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Erros when using  -D_HPUX_API_LEVEL=20040821</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/erros-when-using-d-hpux-api-level-20040821/m-p/5153069#M683934</link>
      <description>&amp;gt;Call uname(2) in a C source, using a newer C compiler.&lt;BR /&gt;&lt;BR /&gt;:-(. I have fixed the app to not to use uname.&lt;BR /&gt;&lt;BR /&gt;But on IA i am facing a strange issue, the application does not even start and it dumps with "unknown error" as soon as its started. even main() not getting called. &lt;BR /&gt;&lt;BR /&gt;when I set the hostname to less then 8 chars or set uname_eoverflow to 0 it starts without problems. Is this is known issue with aries/linker  on systems with long hostnames?&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;Sri</description>
      <pubDate>Thu, 29 Jan 2009 15:37:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/erros-when-using-d-hpux-api-level-20040821/m-p/5153069#M683934</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2009-01-29T15:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Erros when using  -D_HPUX_API_LEVEL=20040821</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/erros-when-using-d-hpux-api-level-20040821/m-p/5153070#M683935</link>
      <description>&amp;gt;Is this is known issue with aries/linker on systems with long hostnames?&lt;BR /&gt;&lt;BR /&gt;Yes, this is a known problem with dld.&lt;BR /&gt;PHSS_39093 11.23 linker + fdp cumulative patch&lt;BR /&gt;PHSS_39094 11.31 linker + fdp cumulative patch</description>
      <pubDate>Thu, 29 Jan 2009 23:11:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/erros-when-using-d-hpux-api-level-20040821/m-p/5153070#M683935</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-01-29T23:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Erros when using  -D_HPUX_API_LEVEL=20040821</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/erros-when-using-d-hpux-api-level-20040821/m-p/5153071#M683936</link>
      <description>Thanks Dennis&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jan 2009 05:28:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/erros-when-using-d-hpux-api-level-20040821/m-p/5153071#M683936</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2009-01-30T05:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Erros when using  -D_HPUX_API_LEVEL=20040821</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/erros-when-using-d-hpux-api-level-20040821/m-p/5153072#M683937</link>
      <description>Removed uname.</description>
      <pubDate>Fri, 30 Jan 2009 05:29:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/erros-when-using-d-hpux-api-level-20040821/m-p/5153072#M683937</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2009-01-30T05:29:28Z</dc:date>
    </item>
  </channel>
</rss>

