<?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 gcc parse error on HPUX11.11 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/gcc-parse-error-on-hpux11-11/m-p/2730025#M717983</link>
    <description>I have a very simple file to compile. It has just one line:&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;&lt;BR /&gt;I use the precompiled gcc from HPUX Porting Archive&lt;BR /&gt;gcc version 3.0.4&lt;BR /&gt;hppa2.0n-hp-hpux11.00&lt;BR /&gt;&lt;BR /&gt;Im runing this gcc on a system with HPUX11.11(64bit).&lt;BR /&gt;&lt;BR /&gt;Compiling this one line gives:&lt;BR /&gt; /usr/include/sys/socket.h:484: parse error before "sendfile"&lt;BR /&gt;/usr/include/sys/socket.h:484: parse error before "bsize_t"&lt;BR /&gt;/usr/include/sys/socket.h:486: parse error before "sendpath"&lt;BR /&gt;/usr/include/sys/socket.h:486: parse error before "bsize_t"&lt;BR /&gt;&lt;BR /&gt;If i add a -I/usr/include option things compile without any error. &lt;BR /&gt;It seems that the sys/types.h which was fixed for the gcc 11.0 version (in /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.4/include) is broken for 11.11. &lt;BR /&gt;&lt;BR /&gt;Seems to be a FAQ but found no solution so far. Most helpful (but also no solution) was&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xbbc9996c5988d5118ff10090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xbbc9996c5988d5118ff10090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Any suggestions. Would i need a special fixed sys/types.h for HPUX11.11 or could it be save to just delete the fixed file and use the normal one (which is /usr/include/sys/types.h)?&lt;BR /&gt;&lt;BR /&gt;Hartmut&lt;/SYS&gt;</description>
    <pubDate>Thu, 23 May 2002 11:44:40 GMT</pubDate>
    <dc:creator>Hartmut Lang</dc:creator>
    <dc:date>2002-05-23T11:44:40Z</dc:date>
    <item>
      <title>gcc parse error on HPUX11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gcc-parse-error-on-hpux11-11/m-p/2730025#M717983</link>
      <description>I have a very simple file to compile. It has just one line:&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;&lt;BR /&gt;I use the precompiled gcc from HPUX Porting Archive&lt;BR /&gt;gcc version 3.0.4&lt;BR /&gt;hppa2.0n-hp-hpux11.00&lt;BR /&gt;&lt;BR /&gt;Im runing this gcc on a system with HPUX11.11(64bit).&lt;BR /&gt;&lt;BR /&gt;Compiling this one line gives:&lt;BR /&gt; /usr/include/sys/socket.h:484: parse error before "sendfile"&lt;BR /&gt;/usr/include/sys/socket.h:484: parse error before "bsize_t"&lt;BR /&gt;/usr/include/sys/socket.h:486: parse error before "sendpath"&lt;BR /&gt;/usr/include/sys/socket.h:486: parse error before "bsize_t"&lt;BR /&gt;&lt;BR /&gt;If i add a -I/usr/include option things compile without any error. &lt;BR /&gt;It seems that the sys/types.h which was fixed for the gcc 11.0 version (in /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.4/include) is broken for 11.11. &lt;BR /&gt;&lt;BR /&gt;Seems to be a FAQ but found no solution so far. Most helpful (but also no solution) was&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xbbc9996c5988d5118ff10090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xbbc9996c5988d5118ff10090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Any suggestions. Would i need a special fixed sys/types.h for HPUX11.11 or could it be save to just delete the fixed file and use the normal one (which is /usr/include/sys/types.h)?&lt;BR /&gt;&lt;BR /&gt;Hartmut&lt;/SYS&gt;</description>
      <pubDate>Thu, 23 May 2002 11:44:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gcc-parse-error-on-hpux11-11/m-p/2730025#M717983</guid>
      <dc:creator>Hartmut Lang</dc:creator>
      <dc:date>2002-05-23T11:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: gcc parse error on HPUX11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gcc-parse-error-on-hpux11-11/m-p/2730026#M717984</link>
      <description>What i found out is, that i really need a hpux11.11 version (hppa1.1-hp-hpux11.11) of gcc 3.0.4 to compile code on hpux11.11. The hpux11.0 version of the gcc can fail with parse errors, because some headers files seems to be incompatible between hpux11.0 and 11.11.&lt;BR /&gt;&lt;BR /&gt;Now the problem is how to build the hppa1.1-hp-hpux11.11 version. I only have the precompiled hppa2.0n-hp-hpux11.00 version from the HPUX Porting archive. &lt;BR /&gt;Using it the build of gcc will fail with parse error around size_t in file libiberty/floatformat.c&lt;BR /&gt;&lt;BR /&gt;So i compiled this file adding a -I/usr/include option by hand. Now the rest of the build works without any problems. &lt;BR /&gt;&lt;BR /&gt;The newly build gcc is a "gcc version 3.0.4 Configured with: ./configure --host=hppa1.1-hp-hpux11.11".&lt;BR /&gt;Using this gcc my socket.h parse error problem is solved.&lt;BR /&gt;&lt;BR /&gt;Another way propably would have been to download the precompiled hpux11.11 version of gcc 3.0.2 from HP developer portal:&lt;BR /&gt;&lt;A href="http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html" target="_blank"&gt;http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html&lt;/A&gt; &lt;BR /&gt;(But i prefer the /opt/gcc installations from the HPUX Porting and Archive Centre:&lt;BR /&gt; &lt;A href="http://hpux.cs.utah.edu/)" target="_blank"&gt;http://hpux.cs.utah.edu/)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Any further comments on this are very welcome!&lt;BR /&gt;Hartmut</description>
      <pubDate>Fri, 24 May 2002 04:44:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gcc-parse-error-on-hpux11-11/m-p/2730026#M717984</guid>
      <dc:creator>Hartmut Lang</dc:creator>
      <dc:date>2002-05-24T04:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: gcc parse error on HPUX11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gcc-parse-error-on-hpux11-11/m-p/2730027#M717985</link>
      <description>Hi Hartmut,&lt;BR /&gt;&lt;BR /&gt;have you tried the "official" gcc from HP? It's located in the Linux Porting Kit. Originally designed for porting  programs from linux to HP-UX. You will find here any userfull linux tool like bash, tcpwrapper ...&lt;BR /&gt;&lt;BR /&gt;Look at &lt;A href="http://devresource.hp.com/LPK/" target="_blank"&gt;http://devresource.hp.com/LPK/&lt;/A&gt;</description>
      <pubDate>Fri, 24 May 2002 07:58:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gcc-parse-error-on-hpux11-11/m-p/2730027#M717985</guid>
      <dc:creator>Frank Gilsdorf</dc:creator>
      <dc:date>2002-05-24T07:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: gcc parse error on HPUX11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gcc-parse-error-on-hpux11-11/m-p/2730028#M717986</link>
      <description>Frank,&lt;BR /&gt;&lt;BR /&gt;thanks, i will look into it!&lt;BR /&gt;Hartmut</description>
      <pubDate>Fri, 24 May 2002 08:18:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gcc-parse-error-on-hpux11-11/m-p/2730028#M717986</guid>
      <dc:creator>Hartmut Lang</dc:creator>
      <dc:date>2002-05-24T08:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: gcc parse error on HPUX11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gcc-parse-error-on-hpux11-11/m-p/2730029#M717987</link>
      <description>I was trying to compile Tobi Oetikers Rrdtool (&lt;A href="http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/)" target="_blank"&gt;http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/)&lt;/A&gt; and had a similar Problem using the 11.00 Version on 11i from the Porting Archive:&lt;BR /&gt;&lt;BR /&gt;/usr/include/sys/socket.h:484: syntax error before "sendfile"&lt;BR /&gt;/usr/include/sys/socket.h:485: syntax error before "bsize_t"&lt;BR /&gt;/usr/include/sys/socket.h:486: syntax error before "sendpath"&lt;BR /&gt;/usr/include/sys/socket.h:487: syntax error before "bsize_t"&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;The 11i Version from the Linux Porting Kit taken from the above link worked perfectly for me.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot.&lt;BR /&gt;&lt;BR /&gt;Regards Michael</description>
      <pubDate>Mon, 22 Dec 2003 12:50:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gcc-parse-error-on-hpux11-11/m-p/2730029#M717987</guid>
      <dc:creator>Hofmaenner</dc:creator>
      <dc:date>2003-12-22T12:50:23Z</dc:date>
    </item>
  </channel>
</rss>

