<?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: SIZE_MAX undefined in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/size-max-undefined/m-p/5647047#M638069</link>
    <description>&lt;P&gt;A little late, here, but maybe it will prove useful to someone in the future.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran into the same problem using the AllianceONE build of GCC 4.6.3 on HP-UX 11.11 just yesterday. This definition, as well as INTPTR_MAX and UINTPTR_MAX, are not present in the 11.11 include files with the latest December 2009 Gold Quality pack.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;gbrhpq$ find /usr/include -type f -print | xargs egrep '[^A-Z_]SIZE_MAX'&lt;/P&gt;&lt;P&gt;gbrhpq$&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The fix for it is to add the following to the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#ifdef __hpux&lt;/P&gt;&lt;P&gt;#ifndef SIZE_MAX&lt;BR /&gt;#define SIZE_MAX ((size_t)-1)&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the other two, which are defined but null:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#ifdef __hpux&lt;/P&gt;&lt;P&gt;#if !defined(INTPTR_MAX) || (defined(INTPTR_MAX) &amp;amp;&amp;amp; !(INTPTR_MAX+0))&lt;BR /&gt;#ifdef __LP64__&lt;BR /&gt;#define INTPTR_MAX INT64_MAX&lt;BR /&gt;#else&lt;BR /&gt;#define INTPTR_MAX INT32_MAX&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 May 2012 17:27:01 GMT</pubDate>
    <dc:creator>mvpel</dc:creator>
    <dc:date>2012-05-04T17:27:01Z</dc:date>
    <item>
      <title>SIZE_MAX undefined</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/size-max-undefined/m-p/4798688#M638066</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I'm trying to compile some software on HP-UX B.11.11.&lt;BR /&gt;&lt;BR /&gt;Things like coreutils and bash compile without problems, but gcc-4.5.2 and ruby-1.9.2-p180 fail and complain about "SIZE_MAX" being undefined.&lt;BR /&gt;&lt;BR /&gt;Any idea what the reason for this might be, and how to fix them?&lt;BR /&gt;&lt;BR /&gt;Did anyone manage to compile gcc and ruby on such a system? What did you do to let it work?&lt;BR /&gt;&lt;BR /&gt;There are two different cc installed on the system. Is there a way to tell what kind of compiler they are? (There seems not to be something like --version.)</description>
      <pubDate>Tue, 14 Jun 2011 16:10:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/size-max-undefined/m-p/4798688#M638066</guid>
      <dc:creator>michas</dc:creator>
      <dc:date>2011-06-14T16:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: SIZE_MAX undefined</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/size-max-undefined/m-p/4798689#M638067</link>
      <description>&lt;!--!*#--&gt;As usual, showing some actual commands with&lt;BR /&gt;their actual output might be more helpful&lt;BR /&gt;than vague descriptions or interpretations.&lt;BR /&gt;&lt;BR /&gt;Around here:&lt;BR /&gt;&lt;BR /&gt;dy # uname -a&lt;BR /&gt;HP-UX dy B.11.11 U 9000/785 2012616114 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;dy # gcc -v&lt;BR /&gt;Using built-in specs.&lt;BR /&gt;Target: hppa2.0w-hp-hpux11.11&lt;BR /&gt;Configured with: ../gcc-4.4.2/configure&lt;BR /&gt;Thread model: posix&lt;BR /&gt;gcc version 4.4.2 (GCC)&lt;BR /&gt;&lt;BR /&gt;SIZE_MAX is not defined everywhere.  Does&lt;BR /&gt;your newer GCC really demand it?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Did anyone manage to compile gcc [...]&lt;BR /&gt;&lt;BR /&gt;My notes suggest that I needed to install GNU&lt;BR /&gt;"bison", "m4", and "sed", and then&lt;BR /&gt;      export PATH="/usr/local/bin:${PATH}"&lt;BR /&gt;before doing the "configure" step.  But I&lt;BR /&gt;don't recall any complaints about SIZE_MAX.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; There are two different cc installed on the&lt;BR /&gt;&amp;gt; system. [...]&lt;BR /&gt;&lt;BR /&gt;Where?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Is there a way [...]?&lt;BR /&gt;&lt;BR /&gt;      man cc&lt;BR /&gt;&lt;BR /&gt;The old, bundled compiler may not be very&lt;BR /&gt;informative:&lt;BR /&gt;&lt;BR /&gt;dy # /usr/bin/cc -v&lt;BR /&gt;(Bundled) cc: NLSPATH is /usr/lib/nls/msg/%L/%N.cat:/usr/lib/nls/msg/C/%N.cat:&lt;BR /&gt;(Bundled) cc: CCOPTS is not set.&lt;BR /&gt;(Bundled) cc: INCLUDIR is INCLUDIR=/usr/include</description>
      <pubDate>Tue, 14 Jun 2011 16:59:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/size-max-undefined/m-p/4798689#M638067</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-06-14T16:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: SIZE_MAX undefined</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/size-max-undefined/m-p/4798690#M638068</link>
      <description>&amp;gt;complain about "SIZE_MAX" being undefined.&lt;BR /&gt;&lt;BR /&gt;This is in stdint.h on 11.23.&lt;BR /&gt;There is SSIZE_MAX in limits.h.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Is there a way to tell what kind of compiler they are?&lt;BR /&gt;&lt;BR /&gt;Have you tried what(1) or -V?</description>
      <pubDate>Wed, 15 Jun 2011 07:44:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/size-max-undefined/m-p/4798690#M638068</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-06-15T07:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: SIZE_MAX undefined</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/size-max-undefined/m-p/5647047#M638069</link>
      <description>&lt;P&gt;A little late, here, but maybe it will prove useful to someone in the future.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran into the same problem using the AllianceONE build of GCC 4.6.3 on HP-UX 11.11 just yesterday. This definition, as well as INTPTR_MAX and UINTPTR_MAX, are not present in the 11.11 include files with the latest December 2009 Gold Quality pack.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;gbrhpq$ find /usr/include -type f -print | xargs egrep '[^A-Z_]SIZE_MAX'&lt;/P&gt;&lt;P&gt;gbrhpq$&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The fix for it is to add the following to the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#ifdef __hpux&lt;/P&gt;&lt;P&gt;#ifndef SIZE_MAX&lt;BR /&gt;#define SIZE_MAX ((size_t)-1)&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the other two, which are defined but null:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#ifdef __hpux&lt;/P&gt;&lt;P&gt;#if !defined(INTPTR_MAX) || (defined(INTPTR_MAX) &amp;amp;&amp;amp; !(INTPTR_MAX+0))&lt;BR /&gt;#ifdef __LP64__&lt;BR /&gt;#define INTPTR_MAX INT64_MAX&lt;BR /&gt;#else&lt;BR /&gt;#define INTPTR_MAX INT32_MAX&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2012 17:27:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/size-max-undefined/m-p/5647047#M638069</guid>
      <dc:creator>mvpel</dc:creator>
      <dc:date>2012-05-04T17:27:01Z</dc:date>
    </item>
  </channel>
</rss>

