🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87665

building problem on sparc-sun-solaris2.3

#87665
From: SAKAI Kiyotaka
Date: Thu, 08 Sep 1994 16:16
52 lines
2707 bytes
In GNU Emacs 19.26.1 (sparc-sun-solaris2.3) of Fri Sep  9 1994 on musashi.mtl.t.u-tokyo.ac.jp

When compiling emacs-19.26, the following error was occured.

  gcc -c  -Demacs -DHAVE_CONFIG_H  -I. -I/home/ksakai/src/emacs-19.26/src   -traditional    -I/usr/local/X11/include      -O2 gmalloc.c
  gmalloc.c:1250: parse error before `ptrdiff_t'

This is because gmalloc.c includes <stddef.h> which defines ptrdiff_t
only if __STDC__ is defined. I wonder why "-traditional" are specified
for C_SWITCH_SYSTEM. If I apply this patch, only the following warnings
are occured. I think this is gcc-2.6.0's fixinclude's problem, not
emacs-19.26's.

  /usr/local/lib/gcc-lib/sparc-sun-solaris2.3/2.6.0/include/string.h:30: warning: conflicting types for built-in function `memcpy'
  /usr/local/lib/gcc-lib/sparc-sun-solaris2.3/2.6.0/include/string.h:32: warning: conflicting types for built-in function `strcpy'
  /usr/local/lib/gcc-lib/sparc-sun-solaris2.3/2.6.0/include/string.h:38: warning: conflicting types for built-in function `memcmp'
  /usr/local/lib/gcc-lib/sparc-sun-solaris2.3/2.6.0/include/string.h:39: warning: conflicting types for built-in function `strcmp'

===================================================================
RCS file: src/s/RCS/sol2.h,v
retrieving revision 1.1
diff -c -r1.1 src/s/sol2.h
*** 1.1	1994/09/08 15:18:04
--- src/s/sol2.h	1994/09/08 15:50:09
***************
*** 12,17 ****
--- 12,19 ----
  
  #define POSIX
  
+ #define HAVE_VFORK
+ 
  /* Here is how to find X Windows.  LD_SWITCH_X_SITE_AUX gives an -R option
     says where to find X windows at run time.  */
  #ifndef __GNUC__
***************
*** 27,33 ****
  #ifndef __GNUC__
  #define C_SWITCH_SYSTEM -Xs
  #else /* GCC */
! #define C_SWITCH_SYSTEM -traditional
  #endif /* GCC */
  #define const
  
--- 29,35 ----
  #ifndef __GNUC__
  #define C_SWITCH_SYSTEM -Xs
  #else /* GCC */
! #define C_SWITCH_SYSTEM
  #endif /* GCC */
  #define const
  
Technical Details
Message-ID: <9409081612.AA09647@challenger.mtl.t.u-tokyo.ac.jp>
Path: arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!slsv6bt!slbh01.bln.sel.alcatel.de!rcvie!Austria.EU.net!EU.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!mtl.t.u-tokyo.ac.jp!ksakai

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,bc1af45a0a347aa6,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-09-09 00:38:33 PST
Path: arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!slsv6bt!slbh01.bln.sel.alcatel.de!rcvie!Austria.EU.net!EU.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!mtl.t.u-tokyo.ac.jp!ksakai
From: ksakai@mtl.t.u-tokyo.ac.jp (SAKAI Kiyotaka)
Newsgroups: gnu.emacs.bug
Subject: building problem on sparc-sun-solaris2.3
Date: 8 Sep 1994 12:16:34 -0400
Organization: GNUs Not Usenet
Lines: 52
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <9409081612.AA09647@challenger.mtl.t.u-tokyo.ac.jp>