From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 22052 invoked from network); 21 Sep 1998 17:36:21 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 21 Sep 1998 17:36:21 -0000 Received: from crdems.GE.COM (root@crdems.GE.COM [192.35.44.5]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id NAA06031 for ; Mon, 21 Sep 1998 13:36:00 -0400 Received: from crd.ge.com (hobbes.crd.ge.com [3.1.221.9]) by crdems.GE.COM (8.9.0/8.9.0) with ESMTP id NAA24482 for ; Mon, 21 Sep 1998 13:35:24 -0400 Sender: morrill@crdems.GE.COM Message-ID: <36068E59.9568AD65@crd.ge.com> Date: Mon, 21 Sep 1998 13:35:21 -0400 From: Dan Morrill X-Mailer: Mozilla 4.03 [en] (X11; U; SunOS 5.5.1 sun4m) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Linux/AXP signum.h Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit The other day, I attempted to build the OpenLDAP package on my Red Hat 5.1 box. OpenLDAP has threading support, and the threading library it uses snarfs SIGUSR1 and SIGUSR2. OpenLDAP itself, however, also requires the availability of two signals. OpenLDAP has an #ifdef LINUX around the points where it uses these signals; however, it uses SIGSTKFLT and SIGUNUSED, which are present on Linux/Intel but not on Linux/Alpha. In other words, the authors of OpenLDAP have assumed that all Linuxes have the same signum.h, whatever platform they're running on. The Alpha signum.h says: /* * Linux/AXP has different signal numbers that Linux/i386: I'm trying * to make it OSF/1 binary compatible, at least for normal binaries. */ While this is a laudable goal, I suppose, it bothers me that this was done in this particular way: why does Linux/Alpha try to be compatible with OSF/1 at the expense of compatibility with Linux? At any rate, what is the feasibility of extending the number of signals to include all the Linux/Intel signals? (Or at least all the signals that make sense on the Alpha architecture.) Granted, this is obscure and pretty arcane, but I think it would be a good idea to make sure, as much as possible, that when Joe Programmer says "#ifdef LINUX" it's compatible with ALL Linuxes. Dan Morrill Computer Scientist GE Corporate R&D, K1 5C36 (518) 387 - 6761