Article View: gnu.emacs.bug
Article #99637Emacs 18.55 on HP 9000/834 running HP/UX 7.00
From: Anne Louise Gockel
Date: Tue, 19 Jun 1990 15:41
Date: Tue, 19 Jun 1990 15:41
88 lines
3613 bytes
3613 bytes
I had to make the following changes to dist-18.55/src/process.c to compile
emacs on a HP 9000/834 running HP/UX 7.00 with HP's "cc" compiler. The
compiler error messages were:
cc -g -Demacs -c process.c
process.c: 133: WCOREDUMP redefined
cc: "process.c", line 2033: error 1527: Incompatible types in cast.
cc: "process.c", line 2036: error 1527: Incompatible types in cast.
cc: "process.c", line 2038: error 1527: Incompatible types in cast.
cc: "process.c", line 2045: error 1527: Incompatible types in cast.
cc: "process.c", line 2045: error 1603: Incompatible operands: & operator.
cc: "process.c", line 2045: error 1563: Expression in if must be scalar.
cc: "process.c", line 2050: error 1527: Incompatible types in cast.
*** Error code 1
The description for error 1527 refers to Ansi standard 3.3.4.
--------------
*** process.c.ORIG Tue Jun 19 11:37:46 1990
--- process.c Tue Jun 19 11:37:45 1990
***************
*** 130,136 ****
--- 130,138 ----
#endif /* not BSD 4.1 */
#define WAITTYPE union wait
#define WRETCODE(w) w.w_retcode
+ #ifndef WCOREDUMP
#define WCOREDUMP(w) w.w_coredump
+ #endif
#ifndef WTERMSIG
#define WTERMSIG(w) w.w_termsig
#endif
***************
*** 2030,2053 ****
#endif
child_changed++;
! if (WIFSTOPPED (w))
{
XFASTINT (p->flags) = STOPPED | CHANGED;
! XFASTINT (p->reason) = WSTOPSIG (w);
}
! else if (WIFEXITED (w))
{
XFASTINT (p->flags) = EXITED | CHANGED;
! if (WCOREDUMP (w))
XFASTINT (p->flags) |= COREDUMPED;
XFASTINT (p->reason) = WRETCODE (w);
}
! else if (WIFSIGNALED (w))
{
XFASTINT (p->flags) = SIGNALED | CHANGED;
! if (WCOREDUMP (w))
XFASTINT (p->flags) |= COREDUMPED;
! XFASTINT (p->reason) = WTERMSIG (w);
}
#if !defined (USG) || (defined (HPUX) && defined (WNOHANG))
goto loop;
--- 2032,2055 ----
#endif
child_changed++;
! if ( WIFSTOPPED (w.w_status) )
{
XFASTINT (p->flags) = STOPPED | CHANGED;
! XFASTINT (p->reason) = WSTOPSIG (w.w_status);
}
! else if (WIFEXITED (w.w_status))
{
XFASTINT (p->flags) = EXITED | CHANGED;
! if (WCOREDUMP (w.w_status))
XFASTINT (p->flags) |= COREDUMPED;
XFASTINT (p->reason) = WRETCODE (w);
}
! else if (WIFSIGNALED (w.w_status))
{
XFASTINT (p->flags) = SIGNALED | CHANGED;
! if (WCOREDUMP (w.w_status))
XFASTINT (p->flags) |= COREDUMPED;
! XFASTINT (p->reason) = WTERMSIG (w.w_status);
}
#if !defined (USG) || (defined (HPUX) && defined (WNOHANG))
goto loop;
-------------------
-Anne Louise Gockel
Cornell Computer Science
Internet: alg@cs.cornell.edu UUCP:cornell!alg
Technical Details
Message-ID:
<42379@cornell.UUCP>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!aplcen!uakari.primate.wisc.edu!dali.cs.montana.edu!rpi!image.soe.clarkson.edu!sunybcs!uhura.cc.rochester.edu!rochester!cornell!algShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 114b0c,654adcf5d940474b,start X-Google-Attributes: gid114b0c,public X-Google-Thread: fb2f1,654adcf5d940474b,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-06-19 08:41:28 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!aplcen!uakari.primate.wisc.edu!dali.cs.montana.edu!rpi!image.soe.clarkson.edu!sunybcs!uhura.cc.rochester.edu!rochester!cornell!alg From: alg@cornell.UUCP (Anne Louise Gockel) Newsgroups: gnu.emacs.bug,comp.sys.hp Subject: Emacs 18.55 on HP 9000/834 running HP/UX 7.00 Message-ID: <42379@cornell.UUCP> Date: 19 Jun 90 15:41:28 GMT Reply-To: alg@cs.cornell.edu (Anne Louise Gockel) Distribution: gnu Organization: Cornell Univ. CS Dept, Ithaca NY Lines: 88 Posted: Tue Jun 19 16:41:28 1990