Article View: gnu.emacs.bug
Article #99858Re: X-compilation with 18.55.2
From: Tom Lane
Date: Mon, 23 Apr 1990 15:00
Date: Mon, 23 Apr 1990 15:00
34 lines
2003 bytes
2003 bytes
In article <9004211954.AA11185@uunet.uu.net>, prcrs!wrwalke@UUNET.UU.NET (William Walker) writes: > The compilation of X11's library libX11.a under HP/ux requires > the addition of Berklib to simulate the random() and srandom() calls > using rand() and srand(). Therefore, when compiling emacs, ld found > two random() and srandom() routines during the link. > ... > In ~emacs/src/sysdep.c > ... > #ifndef X11R4 /* This is the change for R4 wrwalke */ > ... I ran into this too, under HP-UX on 9000 series 300 with X11 R2; I was running with HPUX 6.2 at the time. The problem does not occur with HP's ld, only if you use GNU ld. (I suspect HP's ld is hacked up to not report the duplicate symbol in this situation.) Conclusion: the #if in sysdep.c should not depend on X11 release number. It should depend on defined(HPUX) && defined(USE_GAS) (or whatever the spelling of that symbol is). I eventually gave up trying to compile Emacs with the gcc/gas combination, because of this and about six other problems. If anyone has the complete diffs to make it work, I'd appreciate seeing them (and also hearing whether the code was enough smaller or faster than with HP's cc to make it worth recompiling). -- tom lane Internet: tgl@cs.cmu.edu UUCP: <your favorite internet/arpanet gateway>!cs.cmu.edu!tgl BITNET: tgl%cs.cmu.edu@cmuccvma CompuServe: >internet:tgl@cs.cmu.edu
Technical Details
Message-ID:
<8975@pt.cs.cmu.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!pt.cs.cmu.edu!zog.cs.cmu.edu!tglReferences:
<9004211954.AA11185@uunet.uu.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,881b90f2ae50ed46 X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-04-23 22:32:46 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!pt.cs.cmu.edu!zog.cs.cmu.edu!tgl From: tgl@zog.cs.cmu.edu (Tom Lane) Newsgroups: gnu.emacs.bug Subject: Re: X-compilation with 18.55.2 Message-ID: <8975@pt.cs.cmu.edu> Date: 23 Apr 90 15:00:40 GMT References: <9004211954.AA11185@uunet.uu.net> Distribution: gnu Organization: Carnegie-Mellon University, CS/RI Lines: 34 Posted: Mon Apr 23 16:00:40 1990