all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Angelo Graziosi <angelo.graziosi@alice.it>
To: emacs-devel@gnu.org
Cc: dann@ics.uci.edu
Subject: Re: Failure bootstrapping Emacs (Cygwin)
Date: Thu, 31 Jul 2008 18:27:20 +0200	[thread overview]
Message-ID: <4891E7E8.1000503@alice.it> (raw)
In-Reply-To: <4891D01B.6070802@alice.it>

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  <xxx@xxx>
> 
>     * bitmaps/README:
>     * xfns.c:
>     * termcap.c:
>     * term.c:         <==
>     * syswait.h:
>     * systty.h:
>     * systime.h:
>         [...]
> 
^^^^^^^ wrong ! ^^^^^^^^^^^^^^

This is the cause:

2008-07-30  Dan Nicolaescu  <xxxx@xxxx>

         * systty.h (sensemode): Remove empty #if.  Remove reference to
         BSD_TERMIOS, unused.

Restoring to systty.h:

#if defined (HAVE_TERMIOS) && ! defined (BSD_TERMIOS) 	
	  	
#define EMACS_GET_TTY_PGRP(fd, pgid) (*(pgid) = tcgetpgrp ((fd))) 	
#define EMACS_SET_TTY_PGRP(fd, pgid) (tcsetpgrp ((fd), *(pgid))) 	
	  	
#else
...

#endif /*BSD_TERMIOS*/

works! i.e. applying:

$ cat /tmp/systty.h.diff
--- systty.h.orig       2008-07-31 18:07:05.000000000 +0200
+++ systty.h    2008-07-31 18:16:28.109375000 +0200
@@ -188,12 +188,20 @@

  #ifdef EMACS_HAVE_TTY_PGRP

+#if defined (HAVE_TERMIOS) && ! defined (BSD_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 /*BSD_TERMIOS*/

  #else /* not EMACS_SET_TTY_PGRP */

> Cheers,
>    Angelo.
> 





  reply	other threads:[~2008-07-31 16:27 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-31 14:45 Failure bootstrapping Emacs (Cygwin) Angelo Graziosi
2008-07-31 16:27 ` Angelo Graziosi [this message]
2008-07-31 16:57   ` Angelo Graziosi
2008-07-31 17:00   ` Dan Nicolaescu
2008-08-01 10:38     ` Warning starting Emacs (was Re: Failure bootstrapping Emacs (Cygwin)) Angelo Graziosi
2008-08-01 12:51       ` Warning starting Emacs (Cygwin) Angelo Graziosi
2008-08-01 13:08         ` Dan Nicolaescu
2008-08-01 14:13           ` Angelo Graziosi
2008-08-01 14:36             ` Dan Nicolaescu
2008-08-01 20:47               ` Angelo Graziosi
2008-08-02  4:06                 ` Dan Nicolaescu
2008-08-02 14:29                   ` Angelo Graziosi
2008-08-02 15:02                     ` Angelo Graziosi
2008-08-02 18:59                     ` Dan Nicolaescu
2008-08-02 19:14                       ` Chong Yidong
2008-08-02 19:30                         ` Dan Nicolaescu
2008-08-02 19:54                           ` Eli Zaretskii
2008-08-02 20:19                           ` Chong Yidong
2008-08-02 20:24                             ` Chong Yidong
2008-08-03  3:26                               ` Eli Zaretskii
2008-08-03  6:20                         ` Andreas Vögele
2008-08-03 14:10                           ` Chong Yidong
2008-08-03 22:35                             ` Angelo Graziosi
2008-08-04  6:25                               ` Andreas Vögele

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4891E7E8.1000503@alice.it \
    --to=angelo.graziosi@alice.it \
    --cc=dann@ics.uci.edu \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.