<?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: __builtin_va_start not defined in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/builtin-va-start-not-defined/m-p/3156635#M718058</link>
    <description>Michael,&lt;BR /&gt;After I sent the message, I was looking at the previous versions of varargs.h we were using. va_start() had 1 argument. The HP version with softbench uses __builtin_va_start() which has 2 args. It looks like it expects the 2nd param to be provided by the user and va_start() has 1 param. &lt;BR /&gt;&lt;BR /&gt;It looks like a migration issue.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;Don</description>
    <pubDate>Tue, 06 Jan 2004 10:52:49 GMT</pubDate>
    <dc:creator>Don Rosengrant</dc:creator>
    <dc:date>2004-01-06T10:52:49Z</dc:date>
    <item>
      <title>__builtin_va_start not defined</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/builtin-va-start-not-defined/m-p/3156631#M718054</link>
      <description>Hi all,&lt;BR /&gt;I have an application that calls va_start() and am using aCC V A.03.50. A sample is attached. When I compile the program with:&lt;BR /&gt;&lt;BR /&gt;aCC -o hello hello.c&lt;BR /&gt;&lt;BR /&gt;I get the error:&lt;BR /&gt;&lt;BR /&gt;Error 328: "hello.c", line 9 # Function '__builtin_va_start' has not been&lt;BR /&gt;    defined yet; cannot call.&lt;BR /&gt;         va_start (args);&lt;BR /&gt;         ^^^^^^^^        &lt;BR /&gt;However if I look in varargs.h I can see where it seems to be declared. I had tried the same program with ver A.03.25 and it goes through the compile phase but ld cores with signal 11, Segmentation Fault. Anybody have an idea?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Don</description>
      <pubDate>Mon, 05 Jan 2004 16:27:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/builtin-va-start-not-defined/m-p/3156631#M718054</guid>
      <dc:creator>Don Rosengrant</dc:creator>
      <dc:date>2004-01-05T16:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: __builtin_va_start not defined</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/builtin-va-start-not-defined/m-p/3156632#M718055</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;look here:&lt;BR /&gt;&lt;A href="http://www.mkssoftware.com/docs/man3/va_start.3.asp" target="_blank"&gt;http://www.mkssoftware.com/docs/man3/va_start.3.asp&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I think you miss:&lt;BR /&gt;#include &lt;STDARG.H&gt; &lt;BR /&gt;&lt;BR /&gt;greetings,&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;&lt;/STDARG.H&gt;</description>
      <pubDate>Mon, 05 Jan 2004 16:35:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/builtin-va-start-not-defined/m-p/3156632#M718055</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2004-01-05T16:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: __builtin_va_start not defined</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/builtin-va-start-not-defined/m-p/3156633#M718056</link>
      <description>Michael,&lt;BR /&gt;If I use that I get:&lt;BR /&gt;&lt;BR /&gt;Warning 134: "hello.c", line 10 # Expected 2 arguments for macro 'va_start'.&lt;BR /&gt;         va_start (args);&lt;BR /&gt;         ^^^^^^^^        &lt;BR /&gt;Error 20: "hello.c", line 10 # '&lt;NUMBER&gt;' expected before ')'.&lt;BR /&gt;         va_start (args);&lt;BR /&gt;         ^^^^^^^^        &lt;BR /&gt;Error 280: "hello.c", line 10 # Operator &amp;amp; expects lvalue operand.&lt;BR /&gt;         va_start (args);&lt;BR /&gt;         ^^^^^^^^        &lt;BR /&gt;The confusing thing is that stdarg.h includes &lt;SYS&gt; and &lt;VARARGS.H&gt; and that's all it does. varargs.h includes &lt;SYS&gt;. Therefore I would expect the same behavior as just including &lt;VARARGS.H&gt; but it's not.&lt;BR /&gt;&lt;BR /&gt;It compiles with the softbench cc compiler we previously were using with -Aa option if I take out the __cplusplus reference and it works with the Solaris compiler.&lt;BR /&gt;&lt;BR /&gt;I'm confused.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;Don&lt;/VARARGS.H&gt;&lt;/SYS&gt;&lt;/VARARGS.H&gt;&lt;/SYS&gt;&lt;/NUMBER&gt;</description>
      <pubDate>Tue, 06 Jan 2004 10:16:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/builtin-va-start-not-defined/m-p/3156633#M718056</guid>
      <dc:creator>Don Rosengrant</dc:creator>
      <dc:date>2004-01-06T10:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: __builtin_va_start not defined</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/builtin-va-start-not-defined/m-p/3156634#M718057</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;this function expects two arguments. Look at the link, I posted.&lt;BR /&gt;&lt;BR /&gt;greetings,&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Jan 2004 10:33:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/builtin-va-start-not-defined/m-p/3156634#M718057</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2004-01-06T10:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: __builtin_va_start not defined</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/builtin-va-start-not-defined/m-p/3156635#M718058</link>
      <description>Michael,&lt;BR /&gt;After I sent the message, I was looking at the previous versions of varargs.h we were using. va_start() had 1 argument. The HP version with softbench uses __builtin_va_start() which has 2 args. It looks like it expects the 2nd param to be provided by the user and va_start() has 1 param. &lt;BR /&gt;&lt;BR /&gt;It looks like a migration issue.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;Don</description>
      <pubDate>Tue, 06 Jan 2004 10:52:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/builtin-va-start-not-defined/m-p/3156635#M718058</guid>
      <dc:creator>Don Rosengrant</dc:creator>
      <dc:date>2004-01-06T10:52:49Z</dc:date>
    </item>
  </channel>
</rss>

