- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- getpwuid() problem on HPUX 11
Operating System - HP-UX
1748169
Members
4295
Online
108758
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-17-2001 01:24 PM
10-17-2001 01:24 PM
getpwuid() problem on HPUX 11
We recently have encountered incompatible problem of getpwuid() UNIX system call between HPUX10.10 And HPUX11. We have to compile our source code on HPUX10.10 because some of our customers are still Using HPUX10.10. But when our HPUX10.10 compiled binary code running on HPUX 11, getpwuid() system call returns NULL if the ?+? sign is removed from /etc/passwd file.
When we compiled our source code on HPUX10.10, we did not use any ?lc options. I guess the default of linker should find the shared library instead of archive library. Also /etc/nsswitch.conf does define the following line:
passwd: files nis
But getpwuid() system call still returns NULL, if ?+? sign is not in the /etc/passwd file.
Besides, if we do put the ?+? sign in the /etc/passwd file and use NIS+ instead of NIS in /etc/nsswitch.conf:
passwd: files nis+
the getpwuid() system call did not work either.
Is there a way to make the getpwuid() work on HPUX11 if our source is compiled on HPUX10.10 and ?+? sign was not defined in /etc/passwd file>
When we compiled our source code on HPUX10.10, we did not use any ?lc options. I guess the default of linker should find the shared library instead of archive library. Also /etc/nsswitch.conf does define the following line:
passwd: files nis
But getpwuid() system call still returns NULL, if ?+? sign is not in the /etc/passwd file.
Besides, if we do put the ?+? sign in the /etc/passwd file and use NIS+ instead of NIS in /etc/nsswitch.conf:
passwd: files nis+
the getpwuid() system call did not work either.
Is there a way to make the getpwuid() work on HPUX11 if our source is compiled on HPUX10.10 and ?+? sign was not defined in /etc/passwd file>
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP