Article View: gnu.emacs.bug
Article #99759Re: Problem building emacs with X11 support on Sun-3/160
From: Barry A. Warsaw
Date: Mon, 11 Jun 1990 19:35
Date: Mon, 11 Jun 1990 19:35
46 lines
2450 bytes
2450 bytes
>>>>> "Peter" == Peter Scott <pjs@ARISTOTLE.JPL.NASA.GOV> writes:
Peter> When I attempt to build emacs for my Sun 3/160, running SunOS
Peter> 4.0.3 with X11R4.11, I get the message
Peter> undefined: f68881_used
Peter> When we made X11 we defined -f68881 as one of the compiler
Peter> flags (sun.cf:#define DefaultCCOptions -f68881 -pipe to be
Peter> precise). It has caused no problems until now. Is this a bug
Peter> in the Emacs build?
We came across this problem and solved it by linking emacs with the
Sun object file /usr/lib/Mcrt1.o which defines that flag and is used
by programs accessing the 68881. Can't remember exactly where in the
Sun docs they mention this. Anyway, we changed emacs/src/ymakefile
and here are the relevent lines (sorry, no diffs):
#ifndef START_FILES
#ifdef NO_REMAP
#define START_FILES pre-crt0.o /lib/crt0.o
#else
/* Modified: 24-May-1990 snc
only need Mcrt1.o for 68881 */
#ifdef sun3
#define START_FILES crt0.o /usr/lib/Mcrt1.o
#else
#define START_FILES crt0.o
#endif sun3
#endif
#endif /* have START_FILES */
Note that /usr/lib/Mcrt1.o *MUST* come after crt0.o on the START_FILES
line. crt0.o has to be the first thing on the link command or emacs
won't work. Also we added the ifdef for sun3 since those are the only
architecture that (at our site) have the 68881 and the file doesn't
exist on sun4's, etc.
-Barry
NAME: Barry A. Warsaw USMAIL: National Institute of Standards
TELE: (301) 975-3460 and Technology (formerly NBS)
UUCP: {...}!uunet!cme-durer!warsaw Rm. B-124, Bldg. 220
INET: warsaw@cme.nist.gov Gaithersburg, MD 20899
Technical Details
Message-ID:
<WARSAW.90Jun11153530@stella.cme.nist.gov>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cme!durer!warsawReferences:
<9006072030.AA02135@aristotle.jpl.nasa.gov>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,27cf9b5ced0eb919 X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-06-11 14:22:22 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cme!durer!warsaw From: warsaw@cme.nist.gov (Barry A. Warsaw) Newsgroups: gnu.emacs.bug Subject: Re: Problem building emacs with X11 support on Sun-3/160 Message-ID: <WARSAW.90Jun11153530@stella.cme.nist.gov> Date: 11 Jun 90 19:35:30 GMT References: <9006072030.AA02135@aristotle.jpl.nasa.gov> Sender: news@cme.nist.gov Distribution: gnu Organization: National Institute of Standards and Technology Lines: 46 Posted: Mon Jun 11 20:35:30 1990 In-reply-to: pjs@ARISTOTLE.JPL.NASA.GOV's message of 7 Jun 90 20:30:47 GMT