- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: RPCGEN on IA64
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
тАО10-14-2008 05:13 AM
тАО10-14-2008 05:13 AM
RPCGEN on IA64
I have a int in my .x and the encode function correctly uses xdr_int but the decode function decides to use IDXR_GET/PUT_LONG
Surely an int is an int and a long is a long.
When i then compile the generated code then generates warnings such as
warning #4229-D: 64 bit migration: conversion from "long" to "int" may truncate value
objp->workstate = IXDR_GET_LONG(buf);
warning #4229-D: 64 bit migration: conversion from "ulong_t" to "int32_t" may truncate value
IXDR_PUT_LONG(buf, objp->workstate);
I can see no new options to rpcgen.
Thx
- Tags:
- RPCGEN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2008 01:24 PM
тАО10-14-2008 01:24 PM
Re: RPCGEN on IA64
What are you asking? If you are not compiling with +DD64, you can ignore those warnings.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2008 01:53 PM
тАО10-14-2008 01:53 PM
Re: RPCGEN on IA64
I can not see anyway to get rid of these errors. It would seem that compiling as 64 bit has been taken into account.
Some of the other generated code has it correctly using xdr_int for the encode for an int but IXDR_PUT_LONG for the decode.
Is there something I am misunderstanding.?
Is the source to the HP RPCGEN available to try and work out what it is doing when it is doing the code generation?
Thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2008 10:18 PM
тАО10-14-2008 10:18 PM
Re: RPCGEN on IA64
Well, if these are 32 bit values, they should be using int, not long. You can get rid of the warnings by adding casts.
>Some of the other generated code has it correctly using xdr_int for the encode for an int but IXDR_PUT_LONG for the decode.
This doesn't seem nice.
Something seems wrong with those warnings. For the first 4229 it seems that workstate is a 32 bit int field. But from the second it seems that it is now a ulong_t?
Are IXDR_GET_LONG and IXDR_PUT_LONG macros that could be having problems?
You may want to compile with +legacy_cpp if you suspect macros.
>Is the source to the HP RPCGEN available
I have no clue. If you think there is a problem, why not report it to the Response Center?
Do you have some sample input?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2008 10:37 PM
тАО10-14-2008 10:37 PM
Re: RPCGEN on IA64
I have downloaded of the sun site the open source to RPCGEN and it includes a define for _LP64 and then uses INT32 instead of long and long if not _LP64.
Seems like an oversite.
Thx