- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: gethostbyname failed compiling with 64bit mode
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
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
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
02-26-2009 11:48 PM
02-26-2009 11:48 PM
gethostbyname failed compiling with 64bit mode
I try to port 32bit C application
to 64bit C application.
My environment.
OS: "HP-UX eai-psv2 B.11.23 U ia64".
compiler: "cc: HP C/aC++ B3910B A.06.17"
When compiling with 32bit mode,
gethostbyname () normal end.
But compiling with 64bit mode(+DD64),
gethostbyname () failed.
When calling gethostbyname () from mini program,
compiling 64bit mode,it end normal.
Please tell me how to recover.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2009 12:31 AM
02-27-2009 12:31 AM
Re: gethostbyname failed compiling with 64bit mode
>When calling gethostbyname from mini program,
compiling 64bit mode, it end normal.
You need to compile with +wlint and +w64bit and fix any warnings.
Some of the networking length parms are changed to pointers to 64 bit integers. Also look for casts to suppress any warnings in this area. This would hide the problems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2009 01:25 AM
02-27-2009 01:25 AM
Re: gethostbyname failed compiling with 64bit mode
>
>Some of the networking length parms are changed to pointers to 64 bit
>integers. Also look for casts to suppress any warnings in this
>area. This would hide the problems.
Thanks.
I will try with above option, and fixed warnings.
If you know, please tell me...
Excepting lint, Is there any tools which check above patternï¼
"HP STK tools" can check thems?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2009 01:29 AM
02-27-2009 01:29 AM
Re: gethostbyname failed compiling with 64bit mode
>>
>>Some of the networking length parms are changed to pointers to 64 bit
>>integers. Also look for casts to suppress any warnings in this
>>area. This would hide the problems.
>
>Thanks.
>I will try with above option, and fixed warnings.
>
>If you know, please tell me...
>
>Excepting lint, Is there any tools which check above patterni??
>"HP STK tools" can check thems?
I'm sorry, STK site is here.
http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=965fe820bcd45110VgnVCM100000275d6e10RCRD
>
>Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2009 01:10 PM
02-27-2009 01:10 PM
Re: gethostbyname failed compiling with 64bit mode
There is no lint on IPF, only +wlint, which is much better.
If you know which call to gethostbyname is bad, you should look very closely at it. Can you provide a small snip of the call? And the types of all of the parms.