iglesias@orion.cf.uci.edu (Mike Iglesias) (09/13/89)
I'm trying to build GNU Emacs v18.55 on a DECstation 3100 running Ultrix v3.0 and DECwindows. When ld links the executable, it complains that malloc, realloc and free are multiply defined. ld does leave a src/temacs file, which seems to run ok if I chmod it to have execute permissions. I then run make again and it builds the dumped verions of Emacs, which also appears to run ok in the limited testing I've done on it. Has anyone else built GNU Emacs on a DECstation 3100 using the DECwindows X11 library and gotten around this problem? Below is a script of the ld of emacs. Thanks in advance for any information! Mike Iglesias University of California, Irvine Internet: iglesias@orion.cf.uci.edu BITNET: iglesias@uci UUCP: ...!ucbvax!ucivax!iglesias ------------------------------------------------------------------------ Script started on Mon Sep 11 22:02:07 1989 csh> make cd etc; make all cd src; make all make -f xmakefile all ld -X -D 800000 -o temacs pre-crt0.o /lib/crt0.o dispnew.o scroll.o xdisp.o window.o term.o cm.o x11term.o x11fns.o emacs.o keyboard.o macros.o keymap.o sysdep.o buffer.o filelock.o insdel.o marker.o minibuf.o fileio.o dired.o filemode.o cmds.o casefiddle.o indent.o search.o regex.o undo.o alloc.o data.o doc.o editfns.o callint.o eval.o fns.o print.o lread.o abbrev.o syntax.o unexmips.o mocklisp.o bytecode.o process.o callproc.o doprnt.o termcap.o tparam.o lastfile.o malloc.o -lX11 -lc ld: /lib/libX11.a(XvmsAlloc.o): malloc: multiply defined /lib/libX11.a(XvmsAlloc.o): realloc: multiply defined /lib/libX11.a(XvmsAlloc.o): free: multiply defined *** Error code 1 Stop. *** Error code 1 Stop. *** Error code 1 Stop. csh>
frank@croton.dec.com (Frank Wortner) (09/13/89)
In article <2684@orion.cf.uci.edu>, iglesias@orion.cf.uci.edu (Mike Iglesias) writes: > From: iglesias@orion.cf.uci.edu (Mike Iglesias) > Subject: Problems building GNU Emacs with DECwindows > Date: 12 Sep 89 21:29:28 GMT > > I'm trying to build GNU Emacs v18.55 on a DECstation 3100 running > Ultrix v3.0 and DECwindows. When ld links the executable, it > complains that malloc, realloc and free are multiply defined. Here's what I did to kludge around this problem. I created a file called "s-ultrix3.h" and #include'd it in "config.h" instead of the supplied "s-bsd4.3.h". ... Ugly, but effective. Frank P.S. Here's s-ultrix3.h: /* ULTRIX 3.0 has a name conflict in its X11 library, so we have to map these names to something else. Otherwise, the OS is just like 4.3 BSD. */ #define C_SWITCH_SYSTEM -Dmalloc=gnumalloc -Drealloc=gnurealloc -Dfree=gnufree #include "s-bsd4-3.h" croton>
klee@gilroy.pa.dec.com (Ken Lee) (09/14/89)
In article <2684@orion.cf.uci.edu>, iglesias@orion.cf.uci.edu (Mike Iglesias) writes: > I'm trying to build GNU Emacs v18.55 on a DECstation 3100 running > Ultrix v3.0 and DECwindows. Try defining SYSTEM_MALLOC in your GNU emacs s-*.h file. If you then have problems with "sequence lost" errors, you should upgrade to a more recent version of DECwindows. Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@decwrl.dec.com uucp: uunet!decwrl!klee