- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Invalid parameter list declaration
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
Forums
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
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-17-2002 12:04 PM
тАО01-17-2002 12:04 PM
Invalid parameter list declaration
CFLAGS = -Ae -I/opt/CC/include/CC/ -lvrpn -lvrpnserver
myserver:myserver.o
$(CC) $(LDFLAGS) -o myserver myserver.o
myserver.o:myserver.c
$(CC) $(CFLAGS) -c myserver.c
and one of my function declarations looks like:
extern int vrpn_unbuffer (const char ** buffer, vrpn_int16 * lval);
the function is:
int vrpn_buffer (char ** insertPt, vrpn_int32 * buflen, const vrpn_uint16 value)
{
vrpn_uint16 netValue = htons(value);
int length = sizeof(netValue);
if (length > *buflen) {
fprintf(stderr, "vrpn_buffer: buffer not large enough\n");
return -1;
}
memcpy(*insertPt, &netValue, length);
*insertPt += length;
*buflen -= length;
return 0;
}
any ideas for me? from other things i've seen, i need to compile with ansi c, so i put in the -Ae and tried -Aa, but i still get the same results.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2002 12:22 PM
тАО01-17-2002 12:22 PM
Re: Invalid parameter list declaration
I guessing because of an incorrect #define in one of your header/include files, that those vrpnxxxx types aren't known.
If somewhere above the functions with the problems you make a file scope variable declaration, you can confirm this. e.g.
static vrpn_int16 my_dummy_var;
If that declaration fails, then the vrpn_int16 type is not defined.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2002 12:40 PM
тАО01-17-2002 12:40 PM
Re: Invalid parameter list declaration
Ok, I tried putting these two lines in:
static vrpn_int16 dummy_16;
static vrpn_int32 dummy_32;
and the errors didn't change. There were no errors indicated on either of those lines. Actually... I just noticed that it doesn't error on this declaration:
extern int vrpn_buffer (char ** insertPt, vrpn_int32 * buflen,
const vrpn_int8 value);
but it does on this one which is on the next line:
extern int vrpn_buffer (int ** insertPt, vrpn_int32 * buflen,
const vrpn_int16 value);
I read through the other declarations, and it only errors on lines that don't have vrpn_int8 in the parameter list...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2002 12:47 PM
тАО01-17-2002 12:47 PM
Re: Invalid parameter list declaration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2002 12:47 PM
тАО01-17-2002 12:47 PM
Re: Invalid parameter list declaration
typedef char vrpn_int8;
typedef unsigned char vrpn_uint8;
typedef short vrpn_int16;
typedef unsigned short vrpn_uint16;
typedef int vrpn_int32;
typedef unsigned int vrpn_uint32;
typedef float vrpn_float32;
typedef double vrpn_float64;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2002 02:38 PM
тАО01-17-2002 02:38 PM
Re: Invalid parameter list declaration
I downloaded the source and decided that this was "too much sugar for a dime". I'm certain that you are going to have to set the defines for HP-UX properly but I just don't have the time to hunt this one down.
Regards, Clay