<?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 syntax error in /usr/include/sys/socket.h in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/syntax-error-in-usr-include-sys-socket-h/m-p/3037210#M718962</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;FYI - I'm using gcc 3.2.3 from the HP-UX Porting and Archive Centre for HP-UX 11.0 PA-RISC on a HP-UX 11.11 machine. And I need to build a 32-bit application.&lt;BR /&gt;&lt;BR /&gt;Compiling my application, I get the following errors:&lt;BR /&gt;/usr/include/sys/socket.h:439: syntax error before `(' token&lt;BR /&gt;/usr/include/sys/socket.h:441: syntax error before `(' token&lt;BR /&gt;&lt;BR /&gt;There are already several postings on this error in the forum. Mostly the error shows up when building some open source appl and the solution is to use a succesful built version. I've also tried the tip to add "-I/usr/include", but it didn't work in my case.&lt;BR /&gt;&lt;BR /&gt;To me it seems that there is in fact a bug in /usr/include/sys/types.h which becomes effective in socket.h?! Therefore, where can I get a fixed types.h? Or what do I have to change in types.h to get "my own one" for building my application? Or any other idea how to solve/bypass this error?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your help.&lt;BR /&gt;Regina</description>
    <pubDate>Wed, 30 Jul 2003 13:48:44 GMT</pubDate>
    <dc:creator>Regina Huber</dc:creator>
    <dc:date>2003-07-30T13:48:44Z</dc:date>
    <item>
      <title>syntax error in /usr/include/sys/socket.h</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syntax-error-in-usr-include-sys-socket-h/m-p/3037210#M718962</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;FYI - I'm using gcc 3.2.3 from the HP-UX Porting and Archive Centre for HP-UX 11.0 PA-RISC on a HP-UX 11.11 machine. And I need to build a 32-bit application.&lt;BR /&gt;&lt;BR /&gt;Compiling my application, I get the following errors:&lt;BR /&gt;/usr/include/sys/socket.h:439: syntax error before `(' token&lt;BR /&gt;/usr/include/sys/socket.h:441: syntax error before `(' token&lt;BR /&gt;&lt;BR /&gt;There are already several postings on this error in the forum. Mostly the error shows up when building some open source appl and the solution is to use a succesful built version. I've also tried the tip to add "-I/usr/include", but it didn't work in my case.&lt;BR /&gt;&lt;BR /&gt;To me it seems that there is in fact a bug in /usr/include/sys/types.h which becomes effective in socket.h?! Therefore, where can I get a fixed types.h? Or what do I have to change in types.h to get "my own one" for building my application? Or any other idea how to solve/bypass this error?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your help.&lt;BR /&gt;Regina</description>
      <pubDate>Wed, 30 Jul 2003 13:48:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syntax-error-in-usr-include-sys-socket-h/m-p/3037210#M718962</guid>
      <dc:creator>Regina Huber</dc:creator>
      <dc:date>2003-07-30T13:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error in /usr/include/sys/socket.h</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syntax-error-in-usr-include-sys-socket-h/m-p/3037211#M718963</link>
      <description>Regina,&lt;BR /&gt;IIRC gcc requires 'modified' versions of things like types.h.&lt;BR /&gt;These get installed somewhere in the directory structure which is created when you install gcc.&lt;BR /&gt;As a consequence, you need to make sure that the /usr/include/ files are searched after the gcc versions.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Michael.</description>
      <pubDate>Wed, 30 Jul 2003 14:05:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syntax-error-in-usr-include-sys-socket-h/m-p/3037211#M718963</guid>
      <dc:creator>Michael Kelly_5</dc:creator>
      <dc:date>2003-07-30T14:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error in /usr/include/sys/socket.h</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syntax-error-in-usr-include-sys-socket-h/m-p/3037212#M718964</link>
      <description>Michael,&lt;BR /&gt;&lt;BR /&gt;thanks for your reply - but can you tell me how to make sure, that the gcc include-files are used?&lt;BR /&gt;&lt;BR /&gt;I was compiling with "-I&lt;GCC-FILES&gt; -I/usr/include" plus "-nostdinc++", but then it gets totally messed up for the C++ standard includes like string, vector ... . Without "-nostdinc++" the -I settings alone didn't help.&lt;BR /&gt;&lt;BR /&gt;Initially I tried to use "fixincludes" of gcc, but the gcc 3.2.3 binary package doesn't include a fixincludes skript (or even a fixinc* something file/skript).&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Regina&lt;/GCC-FILES&gt;</description>
      <pubDate>Thu, 31 Jul 2003 08:00:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syntax-error-in-usr-include-sys-socket-h/m-p/3037212#M718964</guid>
      <dc:creator>Regina Huber</dc:creator>
      <dc:date>2003-07-31T08:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error in /usr/include/sys/socket.h</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syntax-error-in-usr-include-sys-socket-h/m-p/3037213#M718965</link>
      <description>Not sure this is the "best" solution, but here's how I worked around this problem:&lt;BR /&gt;&lt;BR /&gt;cp /usr/include/sys/socket.h /usr/local/include/sys/socket.h&lt;BR /&gt;vi /usr/local/include/sys/socket.h&lt;BR /&gt;&lt;BR /&gt;Add the following lines near the top of the file, just after the #include's:&lt;BR /&gt;&lt;BR /&gt;typedef int64_t  sbsize_t;      /* signed length in bytes */&lt;BR /&gt;typedef uint64_t bsize_t;       /* unsigned length in bytes */&lt;BR /&gt;typedef int64_t  sbsize64_t;&lt;BR /&gt;typedef uint64_t bsize64_t;&lt;BR /&gt;&lt;BR /&gt;Gcc should look in /usr/local/include first so the modified socket.h should be picked up.  If you ever install any patches that update socket.h make sure you update the new file as well!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 31 Jul 2003 08:01:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syntax-error-in-usr-include-sys-socket-h/m-p/3037213#M718965</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2003-07-31T08:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error in /usr/include/sys/socket.h</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syntax-error-in-usr-include-sys-socket-h/m-p/3037214#M718966</link>
      <description>Thanks a lot, Steven - this works.&lt;BR /&gt;(to make the solution a bit "cleaner", I guess I'll create a separate appl-specific header-file, which is included between sys/types.h and sys/socket.h)&lt;BR /&gt;&lt;BR /&gt;Regina</description>
      <pubDate>Thu, 31 Jul 2003 08:23:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syntax-error-in-usr-include-sys-socket-h/m-p/3037214#M718966</guid>
      <dc:creator>Regina Huber</dc:creator>
      <dc:date>2003-07-31T08:23:24Z</dc:date>
    </item>
  </channel>
</rss>

