bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 6.2 RedHat linux/emacs-19.34b unistd.h line 567 parse error


From: Jeff Dwork
Subject: Re: 6.2 RedHat linux/emacs-19.34b unistd.h line 567 parse error
Date: Mon, 23 Oct 2000 16:42:51 -0700 (PDT)

There are two changes required to compile 19.34 on RH 6.2.

One relates to glibc-2.1.  Change src/systty.h as follows:

diff -c emacs-19.34/src/systty.h.orig emacs-19.34/src/systty.h
*** emacs-19.34/src/systty.h.orig Tue Jul  2 09:12:22 1996
--- emacs-19.34/src/systty.h      Fri Sep 29 17:36:27 2000
***************
*** 296,302 ****
--- 296,310 ----
  
  #ifdef __GNU_LIBRARY__
  /* GNU libc by default defines getpgrp with no args on all systems.  */
+ #if __GLIBC__  >= 2
+ /* glibc-2.1 adds the BSD compatibility getpgrp function
+    if you use _BSD_SOURCE, which Emacs does on GNU/Linux systems.  */
+ #if __GLIBC_MINOR__ < 1 || ! defined (__FAVOR_BSD)
  #define GETPGRP_NO_ARG
+ #endif
+ #else /* __GLIBC__ < 2 */
+ #define GETPGRP_NO_ARG
+ #endif /* __GLIBC__ < 2 */
  #else /* not __GNU_LIBRARY__ */
  #if defined (USG) && !defined (GETPGRP_NEEDS_ARG)
  #  if !defined (GETPGRP_NO_ARG)

Diff finished at Mon Oct 23 16:33:55

The other is in src/s/gnu-linux.h, where setpgrp is defined in a way
that conflicts with a definition in unistd.h.  Change
src/s/gnu-linux.h as follows:

diff -c emacs-19.34/src/s/gnu-linux.h.orig emacs-19.34/src/s/gnu-linux.h
*** emacs-19.34/src/s/gnu-linux.h.orig  Mon Jul 15 19:17:05 1996
--- emacs-19.34/src/s/gnu-linux.h       Fri Sep 29 16:35:12 2000
***************
*** 292,295 ****
     actually set a process group. */
  
  #define BSD_PGRPS
! #define setpgrp(pid,pgid) setpgid((pid),(pgid))
--- 292,296 ----
     actually set a process group. */
  
  #define BSD_PGRPS
!      /* this conflicts with the same definition in unistd.h - jrd 092900 */
!      /* #define setpgrp(pid,pgid) setpgid((pid),(pgid)) */

Diff finished at Mon Oct 23 16:40:12

Works fine for me after these changes.

Jeff

Richard Deeley writes:
 > To: address@hidden
 > Subject: 6.2 RedHat linux/emacs-19.34b unistd.h line 567 parse error
 > Date: Sun, 22 Oct 2000 21:22:03 -0700
 > 
 > 
 > New install of 6.2 RedHat Linux. on 586 (configure without arguments
 > reports i586-pc-linux-gnu). Uses gcc as compiler.
 > 
 > Install of emacs-19.34b produces:
 > 
 > /usr/include/unistd.h: parse error before  '('
 > /usr/include/unistd.h: parse error before '__pgrp'
 > 
 > (am not able to read any newsgroups, so this may something you
 > already knew - still trying to hunt down the answer to this one).
 > 
 > 
 > 
 > 
 > 
 > 
 > _______________________________________________
 > Bug-gnu-emacs mailing list
 > address@hidden
 > http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs

-- 
Jeff Dwork                      |           address@hidden
Advanced Micro Devices, M/S 45  | 408-749-5216 (voice) 408-774-8448 (fax)
PO Box 3453                     |----------------------------------------
Sunnyvale, Ca 94088-3453        | 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]