- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: __builtin_va_start not defined
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2004 08:27 AM
тАО01-05-2004 08:27 AM
__builtin_va_start not defined
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:
aCC -o hello hello.c
I get the error:
Error 328: "hello.c", line 9 # Function '__builtin_va_start' has not been
defined yet; cannot call.
va_start (args);
^^^^^^^^
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?
Thanks.
Don
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2004 08:35 AM
тАО01-05-2004 08:35 AM
Re: __builtin_va_start not defined
look here:
http://www.mkssoftware.com/docs/man3/va_start.3.asp
I think you miss:
#include
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2004 02:16 AM
тАО01-06-2004 02:16 AM
Re: __builtin_va_start not defined
If I use that I get:
Warning 134: "hello.c", line 10 # Expected 2 arguments for macro 'va_start'.
va_start (args);
^^^^^^^^
Error 20: "hello.c", line 10 # '
va_start (args);
^^^^^^^^
Error 280: "hello.c", line 10 # Operator & expects lvalue operand.
va_start (args);
^^^^^^^^
The confusing thing is that stdarg.h includes
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.
I'm confused.
Thanks.
Don
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2004 02:33 AM
тАО01-06-2004 02:33 AM
Re: __builtin_va_start not defined
this function expects two arguments. Look at the link, I posted.
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2004 02:52 AM
тАО01-06-2004 02:52 AM
Re: __builtin_va_start not defined
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.
It looks like a migration issue.
Thanks for your help.
Don