HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: compiling programs with getprpwent (and alike)...
Operating System - HP-UX
1833861
Members
2232
Online
110063
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
Forums
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
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
09-20-2001 08:09 PM
09-20-2001 08:09 PM
compiling programs with getprpwent (and alike) function on HP UX 10.20
Hi
I'm sure this is an easy problem and someone's probably asked this before but if anyone knows the answer please tell me causing it's driving me insane.
Eg.
#include
#include
#include
#include
int main(void)
{
getprpwnam("User");
printf("Hello World!");
return 0;
}
I can compile that no problems in HP UX 11.00 using gcc.
However when I compile it on HP UX 10.20 it doesn't wanna work with gcc or aCC. It works fine using cc -Ae -lsec.
The error I get is
/usr/include/prot.h: 466: to many arguements to function 'struct pr_passwd * getprpwnam()'
I noticed that with the prot.h file in 10.20 the the function prototypes have no arguements for all the getprpwent type functions.
Eg. It's defined as
struct pr_passwd * getprpwnam()
instead of
struct pr_passwd * getprpwnam(const char *name)
Can someone please tell me what I must do to get it to compile (including compiler line options) on 10.20 using aCC or gcc.(Preferable gcc)
Thank you very much.
I'm sure this is an easy problem and someone's probably asked this before but if anyone knows the answer please tell me causing it's driving me insane.
Eg.
#include
#include
#include
#include
int main(void)
{
getprpwnam("User");
printf("Hello World!");
return 0;
}
I can compile that no problems in HP UX 11.00 using gcc.
However when I compile it on HP UX 10.20 it doesn't wanna work with gcc or aCC. It works fine using cc -Ae -lsec.
The error I get is
/usr/include/prot.h: 466: to many arguements to function 'struct pr_passwd * getprpwnam()'
I noticed that with the prot.h file in 10.20 the the function prototypes have no arguements for all the getprpwent type functions.
Eg. It's defined as
struct pr_passwd * getprpwnam()
instead of
struct pr_passwd * getprpwnam(const char *name)
Can someone please tell me what I must do to get it to compile (including compiler line options) on 10.20 using aCC or gcc.(Preferable gcc)
Thank you very much.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2001 01:27 AM
09-21-2001 01:27 AM
Re: compiling programs with getprpwent (and alike) function on HP UX 10.20
Found a similar posting in the comp.sys.hp.hpux newsgroup and they suggested try adding -fno-strict-prototype to your gcc line. Don't know what the equivalent (if any) for aCC would be.
-Santosh
-Santosh
Life is what's happening while you're busy making other plans
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP