From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: syswait.h Date: Fri, 26 Jul 2002 12:43:59 -0600 (MDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200207261843.g6QIhxX09256@aztec.santafe.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1027709045 14966 127.0.0.1 (26 Jul 2002 18:44:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 26 Jul 2002 18:44:05 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17YA4J-0003tF-00 for ; Fri, 26 Jul 2002 20:44:03 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17YAKC-0004g7-00 for ; Fri, 26 Jul 2002 21:00:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17YA4V-0004K1-00; Fri, 26 Jul 2002 14:44:15 -0400 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17YA4G-0004IT-00; Fri, 26 Jul 2002 14:44:00 -0400 Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.11.6+Sun/8.11.6) with ESMTP id g6QIi8B01756; Fri, 26 Jul 2002 12:44:08 -0600 (MDT) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g6QIhxX09256; Fri, 26 Jul 2002 12:43:59 -0600 (MDT) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: kzeitler@lucent.com, emacs-devel@gnu.org Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6068 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6068 It looks like your system's sys/wait.h defines macros to access the wait argument as a structure, but that is not what Emacs expects on a POSIX system. I don't have a copy of the POSIX spec here; does anyone know what it says about this? Meanwhile, I think some people have build Emacs on HPUX 11 and do not have this problem. Why is that? Could others who have HPUX 11 see how these macros are defined in sys/wait.h? Do they expect to operate on a struct or on an int? If you add #undef HAVE_SYS_WAIT_H to s/hpux11.h, does that make it work? To: rms@gnu.org Cc: emacs-pretest-bug@gnu.org Subject: Re: build under HP-UX-B.10.20 or 11.11 fails in process.c References: <200207181455.g6IEtRe25036@aztec.santafe.edu> X-Uboat-Death-Message: ATTACKED BY ATOMIC BOMB. CAPTAIN INTOXICATED. SINKING. U-144. From: Klaus Zeitler Date: 19 Jul 2002 17:42:46 +0200 In-Reply-To: <200207181455.g6IEtRe25036@aztec.santafe.edu> Message-ID: Lines: 60 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Length: 1510 >>>>> "Richard" == Richard Stallman writes: Richard> Richard> Can you figure out what caused the problem? WAITTYPE is defined as int in syswait.h, but macros defined in /usr/include/sys/wait.h that deal with WAITTYPE, e.g. WIFSTOPPED, try to access variables of type WAITTYPE as a struct. e.g. status_convert from process.c: Lisp_Object status_convert (w) WAITTYPE w; { if (WIFSTOPPED (w)) return Fcons (Qstop, Fcons (make_number (WSTOPSIG (w)), Qnil)); looks in preprocessor file like: int status_convert (w) int w; { if (((w).w_S.w_Stopval == 0177)) return Fcons (Qstop, Fcons (((((int) (((w).w_S.w_Stopsig))) & ((((int) 1)<<(32 - 4)) - 1)) | ((int) Lisp_Int) << (32 - 4)), Qnil)); So either the definition or the macros need to change. I've done it the bold way, by undefining HAVE_SYS_WAIT_H (first I changed config.h but hpux8.h explicitly defines HAVE_SYS_WAIT_H so I went ahead and inserted in syswait.h: #if defined(HPUX10) || defined(HPUX11) #undef HAVE_SYS_WAIT_H #endif right after the line: #include that works, but may not be the developers intention, but with this change emacs cvs compiles on HP-UX 10.20 and 11.11 Klaus -- ------------------------------------------ | Klaus Zeitler Lucent Technologies | | Email: kzeitler@lucent.com | ------------------------------------------ --- Never let your sense of morals prevent you from doing what is right. -- Salvor Hardin, "Foundation"