- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Compiling deamon gives an error
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
09-12-2001 08:08 AM
09-12-2001 08:08 AM
Compiling deamon gives an error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2001 08:11 AM
09-12-2001 08:11 AM
Re: Compiling deamon gives an error
get gcc or ansi/c compilers (ansi/c is expensive) but you can download gcc for free
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2001 09:33 AM
09-12-2001 09:33 AM
Re: Compiling deamon gives an error
Hope this helps
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2001 10:19 AM
09-12-2001 10:19 AM
Re: Compiling deamon gives an error
Hmmm, The code is as follows:
#ifdef SIGTSTP /* true if BSD system */
...
#include
...
#endif
Then further down in the code, the place where the compiler actually objects:
#ifdef SIGTSTP /* BSD */
if (setpgrp(0, getpid()) == -1 )
err_sys("can't change process group");
if ( (fd = open("/dev/tty", O_RDWR) {
ioctl(fd, TIOCNOTTY, (char *)NULL) /* disc cntrl term */
}
...
#endif
As you can see, the code includes the appropriate header file. However, in the header file, the define for TIOCNOTTY is also ifdef'd as follows:
#ifdef notdef
#define TIOCNOTTY _IO('t', 113) /* void tty association */
#endif /* notdef */
The notdef variable is not defined in this header file and as far as I can tell (grep'd the sub directory) it isn't defined in the /usr/include/sys or /usr/include directories.
I am tempted to take the define statement and simply move it to the daemon code.... That would fix the compiler problem, but only heaven knows what it would break elsewhere!
Thanks for the help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2001 05:23 PM
09-12-2001 05:23 PM
Re: Compiling deamon gives an error
I would recommend that you move the #include out of the #ifdef clause rather than moving the #defines. Could you try this out and let me know what happens.
The reason I say this is because it doesn't look like SIGSTP get defined in HPUX. Also the comment mentions that this is set in BSD systems...HPUX is a SYSV derivative.
Hope this helps.
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2001 06:34 AM
09-13-2001 06:34 AM
Re: Compiling deamon gives an error
The solution you put forward did indeed allow the daemon to compile. However, it appears that what I really need to do is to get a more current edition of Stevens's book.
In the version that I have, he states on page 77: "This field identifies the process group to receive the signals associated with the terminal: SIGINT, SIGQUIT, SIGHUP, SIGIO, SIGTSTP, SIGCONT, and SIGWINCH. The first three signals are common to both 4.3BSD and System V, while the latter four are 4.3BSD-specific."
It appears that SIGTSTP is defined in HP-UX, which as you say is a System V derivitive. I was using the presence of SIGTSTP to indirectly determine that the operating system was a BSD version. I'll need to try something else.
Thanks so much for your assistance!
Regards,
Terry