From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Warning starting Emacs (was Re: Failure bootstrapping Emacs (Cygwin)) Date: Fri, 01 Aug 2008 12:38:54 +0200 Message-ID: <4892E7BE.1080706@alice.it> References: <4891D01B.6070802@alice.it> <4891E7E8.1000503@alice.it> <200807311700.m6VH0eCa004994@sallyv1.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1217587239 9975 80.91.229.12 (1 Aug 2008 10:40:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Aug 2008 10:40:39 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 01 12:41:29 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KOs4T-0007zt-KD for ged-emacs-devel@m.gmane.org; Fri, 01 Aug 2008 12:41:17 +0200 Original-Received: from localhost ([127.0.0.1]:46112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOs3Z-0002GM-2D for ged-emacs-devel@m.gmane.org; Fri, 01 Aug 2008 06:40:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KOs2Z-0001EP-RM for emacs-devel@gnu.org; Fri, 01 Aug 2008 06:39:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KOs2Y-0001Cu-Vl for emacs-devel@gnu.org; Fri, 01 Aug 2008 06:39:19 -0400 Original-Received: from [199.232.76.173] (port=38152 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOs2Y-0001Cg-L5 for emacs-devel@gnu.org; Fri, 01 Aug 2008 06:39:18 -0400 Original-Received: from smtp-out26.alice.it ([85.33.2.26]:3392) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KOs2Y-0005Bs-72 for emacs-devel@gnu.org; Fri, 01 Aug 2008 06:39:18 -0400 Original-Received: from FBCMMO03.fbc.local ([192.168.68.197]) by smtp-out26.alice.it with Microsoft SMTPSVC(6.0.3790.1830); Fri, 1 Aug 2008 12:39:17 +0200 Original-Received: from FBCMCL01B04.fbc.local ([192.168.69.85]) by FBCMMO03.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Fri, 1 Aug 2008 12:39:16 +0200 Original-Received: from [87.6.235.30] ([87.6.235.30]) by FBCMCL01B04.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Fri, 1 Aug 2008 12:39:15 +0200 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: <200807311700.m6VH0eCa004994@sallyv1.ics.uci.edu> X-OriginalArrivalTime: 01 Aug 2008 10:39:15.0626 (UTC) FILETIME=[D82F90A0:01C8F3C2] X-detected-kernel: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:101859 Archived-At: Dan Nicolaescu ha scritto: > Angelo Graziosi writes: > > > Angelo Graziosi ha scritto: > > > Current trunk fails in this waY: > > > > > > [...] > > > term.o: In function `dissociate_if_controlling_tty': > > > /work/emacs/src/term.c:3216: undefined reference to `_EMACS_GET_TTY_PGRP' > > > emacs.o: In function `shut_down_emacs': > > > /work/emacs/src/emacs.c:2031: undefined reference to `_EMACS_GET_TTY_PGRP' > > > callproc.o: In function `child_setup': > > > /work/emacs/src/callproc.c:1257: undefined reference to > > > _EMACS_SET_TTY_PGRP' > > > collect2: ld returned 1 exit status > > > make[1]: *** [temacs.exe] Error 1 > > > make[1]: Leaving directory `/work/build/src' > > > make: *** [src] Error 2 > > > > > > This does not happen with trunk of a few hours before. > > > > > > > > > > Perhaps this changes are the cause: > > > > > > 2008-07-31 Dan Nicolaescu > > > > > > * bitmaps/README: > > > * xfns.c: > > > * termcap.c: > > > * term.c: <== > > > * syswait.h: > > > * systty.h: > > > * systime.h: > > > [...] > > > > > ^^^^^^^ wrong ! ^^^^^^^^^^^^^^ > > > > This is the cause: > > > > 2008-07-30 Dan Nicolaescu > > > > * systty.h (sensemode): Remove empty #if. Remove reference to > > BSD_TERMIOS, unused. > > > > Restoring to systty.h: > > > > #if defined (HAVE_TERMIOS) && ! defined (BSD_TERMIOS) > > > > This looks plausible, and the change had a logic error: > && ! defined (BSD_TERMIOS) when BSD_TERMIOS is never defined is > equivalent to > #if defined (HAVE_TERMIOS) > > not to #if 0 as the change assumed. > > I'll check in a fix later today if nobody beats me to it. For the sake of completeness, I have applied this: $ cat downloads/emacs.ports/systty.h.diff --- systty.h.orig 2008-07-31 16:13:42.000000000 +0200 +++ systty.h 2008-07-31 18:43:08.625000000 +0200 @@ -151,12 +151,20 @@ #ifdef EMACS_HAVE_TTY_PGRP +#if defined (HAVE_TERMIOS) + +#define EMACS_GET_TTY_PGRP(fd, pgid) (*(pgid) = tcgetpgrp ((fd))) +#define EMACS_SET_TTY_PGRP(fd, pgid) (tcsetpgrp ((fd), *(pgid))) + +#else + #ifdef TIOCSPGRP #define EMACS_GET_TTY_PGRP(fd, pgid) (ioctl ((fd), TIOCGPGRP, (pgid))) #define EMACS_SET_TTY_PGRP(fd, pgid) (ioctl ((fd), TIOCSPGRP, (pgid))) #endif /* TIOCSPGRP */ +#endif /* HAVE_TERMIOS */ #else /* not EMACS_SET_TTY_PGRP */ with which current trunk bootstraps, but starting Emacs it opens a buffer called Warnings in which it prints: Emergency (alloc): Warning: past 95% of memory limit Perhaps, here, we have some other problems... Angelo.