From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Nelson H. F. Beebe" Newsgroups: gmane.emacs.devel Subject: emacs-24.2.93 build problems Date: Sat, 2 Mar 2013 16:00:47 -0700 (MST) Message-ID: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1362265256 9745 80.91.229.3 (2 Mar 2013 23:00:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Mar 2013 23:00:56 +0000 (UTC) Cc: beebe@math.utah.edu To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 03 00:01:19 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UBvQc-0006ys-GR for ged-emacs-devel@m.gmane.org; Sun, 03 Mar 2013 00:01:18 +0100 Original-Received: from localhost ([::1]:48140 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBvQH-0006sg-8I for ged-emacs-devel@m.gmane.org; Sat, 02 Mar 2013 18:00:57 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53276) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBvQC-0006sZ-6Y for emacs-devel@gnu.org; Sat, 02 Mar 2013 18:00:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBvQA-0005DI-AW for emacs-devel@gnu.org; Sat, 02 Mar 2013 18:00:52 -0500 Original-Received: from mail.math.utah.edu ([155.101.98.135]:38016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBvQA-0005DA-13 for emacs-devel@gnu.org; Sat, 02 Mar 2013 18:00:50 -0500 Original-Received: from psi.math.utah.edu (psi.math.utah.edu [155.101.96.19]) by mail.math.utah.edu (8.14.5/8.14.5) with ESMTP id r22N0l30013715; Sat, 2 Mar 2013 16:00:47 -0700 (MST) Original-Received: from psi.math.utah.edu (localhost [127.0.0.1]) by psi.math.utah.edu (8.14.5/8.14.5) with ESMTP id r22N0l1g015304; Sat, 2 Mar 2013 16:00:47 -0700 (MST) Original-Received: (from beebe@localhost) by psi.math.utah.edu (8.14.5/8.14.5/Submit) id r22N0l6v015302; Sat, 2 Mar 2013 16:00:47 -0700 (MST) X-US-Mail: "Department of Mathematics, 110 LCB, University of Utah, 155 S 1400 E RM 233, Salt Lake City, UT 84112-0090, USA" X-Telephone: +1 801 581 5254 X-FAX: +1 801 581 4148 X-URL: http://www.math.utah.edu/~beebe X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8 (mail.math.utah.edu [155.101.98.135]); Sat, 02 Mar 2013 16:00:47 -0700 (MST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 155.101.98.135 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:157486 Archived-At: I have spent much of today in build attempts for emacs-24.2.93 on about 25 flavors of Unix in our lab. After a lot of restarts, I have mostly succeeded, except for two platforms: OpenBSD 4.9 on x86, and MirOS 10 on x86. On those two systems, compilation of src/sysdep.c fails like this: sysdep.c: In function 'list_system_processes': sysdep.c:2656: error: 'KERN_PROC' undeclared (first use in this function) sysdep.c:2656: error: (Each undeclared identifier is reported only once sysdep.c:2656: error: for each function it appears in.) sysdep.c:2684: error: 'struct kinfo_proc' has no member named 'p_pid' Both systems previously had emacs-24.1 installed. A similar build of emacs-24.2.93 on OpenBSD 5.1 was successful. Examination of the source code reveals the problem: function list_system_processes() is delving into kernel data structures defined in which in turn includes , and that header file defines kernel data structures that list_system_processes() attempts to reference. In OpenBSD 5.1, p_pid is in struct kinfo_proc, but on the other two systems, p_pid is instead in struct kinfo_proc2. There is no support code in list_system_processes() for that alternative, and no test for it in configure either. By contrast, the emacs-24.1 version of list_system_processes() has no reference to the kinfo_proc* structs. On request, I can provide off-list pointers to copies of sysctl.h for the two failing systems. Although some might argue that because OpenBSD 5.x is available, OpenBSD 4.x is no longer of interest, I do not hold that view. Emacs has been around now for almost 40 years, and for the last 30 or so, its portability has been held in high regard. As a result, it is available on, or has been ported to, all common desktop and mobile platforms, even non-Unix ones. I prefer to see that portability continue. Emacs is what makes computers usable in much the same way, no matter what the underlying O/S platform is. ------------------------------------------------------------------------------- - Nelson H. F. Beebe Tel: +1 801 581 5254 - - University of Utah FAX: +1 801 581 4148 - - Department of Mathematics, 110 LCB Internet e-mail: beebe@math.utah.edu - - 155 S 1400 E RM 233 beebe@acm.org beebe@computer.org - - Salt Lake City, UT 84112-0090, USA URL: http://www.math.utah.edu/~beebe/ - -------------------------------------------------------------------------------