Path: utzoo!attcan!uunet!mcvax!unido!tub!coma!opal!tubopal!willi From: willi@tubopal.uucp ( Wilhelm Koehler ) Newsgroups: comp.emacs Subject: Re: Problems with building emacs on SunOS 4.0 Message-ID: <76@opal.UUCP> Date: 26 Aug 88 16:21:00 GMT References: <611@expya.ex.ac.uk> Sender: news@opal.UUCP Organization: Technical University of Berlin, Germany (West) Lines: 49 In-reply-to: admin@cs.ex.ac.uk's message of 23 Aug 88 11:26:12 GMT In article <611@expya.ex.ac.uk> admin@cs.ex.ac.uk (System Administrator) writes: > I am having some problems with building gnu emacs 18.51 on our sun 3 > running SunOS 4.0 and I wonder if someone can help me out. > > I have used s-sunos4.h which contains [...] > Using this as it is I get an error during the linking phase of temacs > > _edata: ld: user attempt to redefine loader-defined symbol > _end: user attempt to redefine loader-defined symbol > _etext: /lib/libc.a(des_crypt.o): multiply defined > > so I changed the LD=ld to LD=cc and cleared the LDFLAGS macro in > xmakefile. This got me almost home, i.e. it produced the xemacs > file. But this core dumps on starting up. I tried a running temacs by > hand In comp.sys.sun there were two postings concerning the static version of libc.a in SunOS 4.0 on Sun 3. Mark Mendell writes This brings up the first minor problem. When the static library for 4.0 export was made, they messed up the following routines: des_crypt.o des_soft.o _crypt.o auth_des.o svcauth_des.o They are obviously completely linked, as the are about 24K in size, and define _end, _edata, and _etext. This means the -Bstatic won't work until these routines are removed from the library and it is ranlib-ed. A related problem is that the 'newkey' program will fail at runtime with a message that the routine '_cbc_crypt' cannot be found. I assume that the problems are both due to export restrictions. Kevin J. Maciunas stated the same. Clearing the LDFLAGS results in the default -Bdynamic ld-Option so that temacs will not be able to dump itself correctly. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Wilhelm Koehler Tel.: +49 30 314 24785 TU Berlin FB-20 Sekr. FR 5-6 UUCP: ...!unido!tubopal!willi Franklinstr. 28/29 BITNET: willi@db0tui62 || KOEHLER@db0tui11 1000 Berlin (West) 10