🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87646

19.26 on solaris 2.3: -traditional loses

#87646
From: Karl Berry
Date: Tue, 13 Sep 1994 18:08
28 lines
1978 bytes
Compiling Emacs 19.26 with GCC 2.6.0 on a Sparc 10/41 running Solaris 5.3.

s/sol2.h says to use -traditional to ``work around bugs in system header
files''.  But this results in an error compiling src/gmalloc.c:

gcc -V 2.6.0 -c  -Demacs -DHAVE_CONFIG_H  -I. -I/usr/eng/gnu/src/emacs-19.26/src   -traditional    -I/usr/local/x11r5/include      -g -O2 -DPURESIZE=450000 gmalloc.c
gmalloc.c:1250: parse error before `ptrdiff_t'

I suspect the -traditional is left over from the days of GCC 1.

I took out the -traditional, reconfigured, recompiled, and everything
went fine except sysdep.c: HAVE_VFORK needs to be defined; the
definition in sysdep.c conflicts with the declaration in unistd.h.
Probably configure.in should call AC_VFORK (AC_FUNC_VFORK in the new
Autoconf).

(Well, without -traditional there are warnings about <string.h>
declarations conflicting with built-in prototypes, but that's a GCC bug,
I think.  And they're just warnings.)


Also on the subject of s/sol2.h: it says
   /* Karl Berry writes:
You may as well say kb@cs.umb.edu -- my name doesn't matter :-)

(For that matter, you can also take out my apparently-broken code in
src/fileio.c that is enabled if SOLARIS_BROKEN_ACCESS is defined, since
nothing defines it.)
Technical Details
Message-ID: <9409121436.AA04034@owl.HQ.Ileaf.COM>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!panix!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!owl.hq.ILeaf.COM!karl

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,c1cf93a86f7751ad,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-09-13 19:55:13 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!panix!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!owl.hq.ILeaf.COM!karl
From: karl@owl.hq.ILeaf.COM (Karl Berry)
Newsgroups: gnu.emacs.bug
Subject: 19.26 on solaris 2.3: -traditional loses
Date: 13 Sep 1994 14:08:47 -0400
Organization: GNUs Not Usenet
Lines: 28
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <9409121436.AA04034@owl.HQ.Ileaf.COM>