HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Compiling "nethack"
Operating System - HP-UX
1833747
Members
2691
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
01-26-2007 03:08 AM
01-26-2007 03:08 AM
Compiling "nethack"
For your daily dose of frivolity...
I'm trying to compile the roguelike game nethack v3.4.3 on my hp-ux 11.11 pa-risc system, with the ansi-c compiler. I've followed the instructions, and when I make it, I get:
# make
( cd src ; make )
cc -O -I../include -c monst.c
cc: "/usr/include/sys/unistd.h", line 164: error 1584: Inconsistent type declara
tion: "write".
cc: "/usr/include/sys/unistd.h", line 164: error 1711: Inconsistent parameter li
st declaration for "write".
cc: "/usr/include/sys/unistd.h", line 179: error 1584: Inconsistent type declara
tion: "fork".
cc: "/usr/include/sys/unistd.h", line 182: error 1584: Inconsistent type declara
tion: "getgid".
cc: "/usr/include/sys/unistd.h", line 184: error 1584: Inconsistent type declara
tion: "getpid".
cc: "/usr/include/sys/unistd.h", line 186: error 1584: Inconsistent type declara
tion: "getuid".
*** Error exit code 1
So, anything special I should be doing? I've had good luck compiling on other unix systems.
Thanks,
Doug
I'm trying to compile the roguelike game nethack v3.4.3 on my hp-ux 11.11 pa-risc system, with the ansi-c compiler. I've followed the instructions, and when I make it, I get:
# make
( cd src ; make )
cc -O -I../include -c monst.c
cc: "/usr/include/sys/unistd.h", line 164: error 1584: Inconsistent type declara
tion: "write".
cc: "/usr/include/sys/unistd.h", line 164: error 1711: Inconsistent parameter li
st declaration for "write".
cc: "/usr/include/sys/unistd.h", line 179: error 1584: Inconsistent type declara
tion: "fork".
cc: "/usr/include/sys/unistd.h", line 182: error 1584: Inconsistent type declara
tion: "getgid".
cc: "/usr/include/sys/unistd.h", line 184: error 1584: Inconsistent type declara
tion: "getpid".
cc: "/usr/include/sys/unistd.h", line 186: error 1584: Inconsistent type declara
tion: "getuid".
*** Error exit code 1
So, anything special I should be doing? I've had good luck compiling on other unix systems.
Thanks,
Doug
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2007 03:42 AM
01-26-2007 03:42 AM
Re: Compiling "nethack"
This means that a number of the system calls are defined in your application header files as being of one type (e.g. int) and in /usr/include/sys/unistd.h as being something else (e.g. uid_t). You might try changing the compiler option to something like -Ae, -Ac, -AC99. The default is -Aa (ANSI). Look at the header files and there will be a number of #ifdef's for the various models. You should be able to make some changes to your Makefile so that the source code and the machine machine architecture match.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2007 05:40 AM
01-26-2007 05:40 AM
Re: Compiling "nethack"
You put me on the right track.
It was trying to use POSIX declarations, I had to undefine "POSIX_TYPES" in a config file and it then compiled.
Thanks.
It was trying to use POSIX declarations, I had to undefine "POSIX_TYPES" in a config file and it then compiled.
Thanks.
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