From unknown Fri Jun 20 07:10:25 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#440 <440@debbugs.gnu.org> To: bug#440 <440@debbugs.gnu.org> Subject: Status: Build error on Solaris Reply-To: bug#440 <440@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:10:25 +0000 retitle 440 Build error on Solaris reassign 440 emacs submitter 440 NAKAJI Hiroyuki severity 440 normal thanks From nakaji@kankyo-u.ac.jp Wed Jun 18 00:20:47 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.9 required=4.0 tests=BAYES_00,FOURLA, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 18 Jun 2008 07:20:47 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5I7Kf13008300 for ; Wed, 18 Jun 2008 00:20:45 -0700 Received: from mail.gnu.org ([199.232.76.166]:57862 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1K8rw6-00008h-2y for emacs-pretest-bug@gnu.org; Wed, 18 Jun 2008 03:18:30 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1K8ryA-0005L7-2Y for emacs-pretest-bug@gnu.org; Wed, 18 Jun 2008 03:20:40 -0400 Received: from mx20.gnu.org ([199.232.41.8]:3839) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K8ry9-0005KH-Gn for emacs-pretest-bug@gnu.org; Wed, 18 Jun 2008 03:20:37 -0400 Received: from d4407.kankyo-u.ac.jp ([202.216.78.81]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K8ry6-0002TQ-5a for emacs-pretest-bug@gnu.org; Wed, 18 Jun 2008 03:20:34 -0400 Received: from roddy.4407.kankyo-u.ac.jp.kankyo-u.ac.jp (localhost [IPv6:::1]) by d4407.kankyo-u.ac.jp (8.14.2/8.14.2) with ESMTP id m5I7KG6c033621 for ; Wed, 18 Jun 2008 16:20:23 +0900 (JST) (envelope-from nakaji@kankyo-u.ac.jp) Sender: nakaji@kankyo-u.ac.jp From: NAKAJI Hiroyuki To: emacs-pretest-bug@gnu.org Subject: Build error on Solaris Date: Wed, 18 Jun 2008 16:20:16 +0900 Message-ID: <87y753w6of.fsf@roddy.4407.kankyo-u.ac.jp> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new X-detected-kernel: by mx20.gnu.org: Genre and OS details not recognized. X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) Solaris does not have the functions cfmakeraw() and cfsetspeed() which are used in src/sysdep.c. I added these functions into sysdep.c but I'm not sure these must be necessary. Here is a patch. Thanks. Index: sysdep.c =================================================================== RCS file: /cvsroot/emacs/emacs/src/sysdep.c,v retrieving revision 1.300 diff -u -r1.300 sysdep.c --- sysdep.c 14 Jun 2008 19:14:01 -0000 1.300 +++ sysdep.c 17 Jun 2008 10:03:21 -0000 @@ -231,6 +231,27 @@ #endif #endif +#ifdef SOLARIS2 +void cfmakeraw(struct termios *t) +{ + t->c_iflag &= ~(IMAXBEL|IXOFF|INPCK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON|IGNPAR); + t->c_iflag |= IGNBRK; + t->c_oflag &= ~OPOST; + t->c_lflag &= ~(ECHO|ECHOE|ECHOK|ECHONL|ICANON|ISIG|IEXTEN|NOFLSH|TOSTOP|PENDIN); + t->c_cflag &= ~(CSIZE|PARENB); + t->c_cflag |= CS8|CREAD; + t->c_cc[VMIN] = 1; + t->c_cc[VTIME] = 0; +} + +int cfsetspeed(struct termios *t, speed_t speed) +{ + cfsetispeed(t, speed); + cfsetospeed(t, speed); + return (0); +} +#endif + int emacs_ospeed; void croak P_ ((char *)) NO_RETURN; -- NAKAJI Hiroyuki From monnier@iro.umontreal.ca Fri Jun 20 08:07:48 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.8 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 440) by emacsbugs.donarmstrong.com; 20 Jun 2008 15:07:48 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5KF7jlP023779 for <440@emacsbugs.donarmstrong.com>; Fri, 20 Jun 2008 08:07:46 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ag0FADhkW0jO+KWv/2dsb2JhbACBW64Q X-IronPort-AV: E=Sophos;i="4.27,679,1204520400"; d="scan'208";a="23016840" Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 20 Jun 2008 11:07:40 -0400 Received: from pastel.home ([206.248.165.175]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id AVB30440; Fri, 20 Jun 2008 11:07:40 -0400 Received: by pastel.home (Postfix, from userid 20848) id 01B127F05; Fri, 20 Jun 2008 11:07:39 -0400 (EDT) From: Stefan Monnier To: 440@debbugs.gnu.org Subject: Re: bug#440: Build error on Solaris Message-ID: References: <87y753w6of.fsf@roddy.4407.kankyo-u.ac.jp> Date: Fri, 20 Jun 2008 11:07:39 -0400 In-Reply-To: <87y753w6of.fsf@roddy.4407.kankyo-u.ac.jp> (NAKAJI Hiroyuki's message of "Wed, 18 Jun 2008 16:20:16 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > Solaris does not have the functions cfmakeraw() and cfsetspeed() which are > used in src/sysdep.c. I added these functions into sysdep.c but I'm not > sure these must be necessary. A similar problem appeared under Cygwin. I've installed a change (provided by Angelo Graziosi) which should hopefully fix the problem, but it's slightly different from your code (mostly your cfmakeraw sets things up a bit differently, e.g. your code sets IGNBRK on iflag, whereas the code I installed clears it). Can you try the new code to see if it now builds right, and could you also tell me where you got your cfmakeraw code, to try and understand the reason for the differences? Stefan From nakaji@kankyo-u.ac.jp Mon Jun 23 22:14:24 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.4 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 440) by emacsbugs.donarmstrong.com; 24 Jun 2008 05:14:24 +0000 Received: from d4407.kankyo-u.ac.jp (d4407.kankyo-u.ac.jp [202.216.78.81]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5O5EKu2032332 for <440@emacsbugs.donarmstrong.com>; Mon, 23 Jun 2008 22:14:22 -0700 Received: from roddy.4407.kankyo-u.ac.jp.kankyo-u.ac.jp (localhost [IPv6:::1]) by d4407.kankyo-u.ac.jp (8.14.2/8.14.2) with ESMTP id m5O5E9sw025703; Tue, 24 Jun 2008 14:14:09 +0900 (JST) (envelope-from nakaji@kankyo-u.ac.jp) Sender: nakaji@kankyo-u.ac.jp From: NAKAJI Hiroyuki To: Stefan Monnier Cc: 440@debbugs.gnu.org Subject: Re: bug#440: Build error on Solaris References: <87y753w6of.fsf@roddy.4407.kankyo-u.ac.jp> Date: Tue, 24 Jun 2008 14:14:09 +0900 In-Reply-To: (Stefan Monnier's message of "Fri, 20 Jun 2008 11:07:39 -0400") Message-ID: <87abhbquse.fsf@roddy.4407.kankyo-u.ac.jp> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new >>>>> In >>>>> Stefan Monnier wrote: > > Solaris does not have the functions cfmakeraw() and cfsetspeed() which are > > used in src/sysdep.c. I added these functions into sysdep.c but I'm not > > sure these must be necessary. > A similar problem appeared under Cygwin. I've installed a change > (provided by Angelo Graziosi) which should hopefully fix the problem, > but it's slightly different from your code (mostly your cfmakeraw sets > things up a bit differently, e.g. your code sets IGNBRK on iflag, > whereas the code I installed clears it). Can you try the new code to > see if it now builds right, and could you also tell me where you got > your cfmakeraw code, to try and understand the reason for > the differences? I tried your code. It works well. Thanks. I only googled "solaris cfmakeraw" and copied some code from somewhere. But, I'm sorry, I've forgotten where I found that code. Anyway, your code is much better than mine, because I do not understand teroios functions well and my copied code may not be freely redistributable. Best Regards, -- NAKAJI Hiroyuki From monnier@iro.umontreal.ca Tue Jun 24 05:17:54 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.8 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 440-close) by emacsbugs.donarmstrong.com; 24 Jun 2008 12:17:54 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5OCHokB007458 for <440-close@emacsbugs.donarmstrong.com>; Tue, 24 Jun 2008 05:17:52 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq8EAGKCYEhFxIdG/2dsb2JhbACBW7EX X-IronPort-AV: E=Sophos;i="4.27,696,1204520400"; d="scan'208";a="23134752" Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 24 Jun 2008 08:17:44 -0400 Received: from pastel.home ([69.196.135.70]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id ESP53144; Tue, 24 Jun 2008 08:17:44 -0400 Received: by pastel.home (Postfix, from userid 20848) id 055BC825A; Tue, 24 Jun 2008 08:17:41 -0400 (EDT) From: Stefan Monnier To: NAKAJI Hiroyuki Cc: 440-close@debbugs.gnu.org Subject: Re: bug#440: Build error on Solaris Message-ID: References: <87y753w6of.fsf@roddy.4407.kankyo-u.ac.jp> <87abhbquse.fsf@roddy.4407.kankyo-u.ac.jp> Date: Tue, 24 Jun 2008 08:17:41 -0400 In-Reply-To: <87abhbquse.fsf@roddy.4407.kankyo-u.ac.jp> (NAKAJI Hiroyuki's message of "Tue, 24 Jun 2008 14:14:09 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> A similar problem appeared under Cygwin. I've installed a change >> (provided by Angelo Graziosi) which should hopefully fix the problem, [...] > I tried your code. It works well. Thanks. Thank you, Stefan From unknown Fri Jun 20 07:10:25 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Tue, 22 Jul 2008 14:24:05 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator