ralph@rtech.UUCP (Ralph Harnden) (06/13/88)
While make-ing Larry Wall's patch package (thanks, Larry!) on my 3B1, ld complained that _assert.o was missing. Sure enough, <assert.h> references _assert, but _assert.o is not in /lib/libc.a (assert.o is in there). Nor is _assert referenced in /lib/shlib.ifile. I worked around by extracting assert.o (ar -x /lib/libc.a assert.o), renaming it to _assert.o, and updating the Makefile to link it into patch. I also added _assert.o to the archive (using ar -q) in case other routines might want to use assert, but I haven't decided what to do about the shared libraries yet. Somebody please tell me what I'm missing here!??! BTW, I'm running 3.5.1.4. "Had this been a real emergency, you would be vapor by now...." {amdahl, cbosgd, mtxinu, ptsfa, sun}!rtech!ralph ralph@rtech.uucp -- "Had this been a real emergency, you would be vapor by now...." {amdahl, cbosgd, mtxinu, ptsfa, sun}!rtech!ralph ralph@rtech.uucp
erict@flatline.UUCP (j eric townsend) (06/14/88)
In article <2162@rtech.UUCP>, ralph@rtech.UUCP (Ralph Harnden) writes: > While make-ing Larry Wall's patch package (thanks, Larry!) on my 3B1, > ld complained that _assert.o was missing. Sure enough, <assert.h> > references _assert, but _assert.o is not in /lib/libc.a (assert.o > is in there). Nor is _assert referenced in /lib/shlib.ifile. > Somebody please tell me what I'm missing here!??! Ok, I got a file called 7300make, or something like that with mine. Here's what I did to it and the Makefile: SRC = patch.c pch.c inp.c version.c util.c OBJ = patch.o pch.o inp.o version.o util.o assert.o ^^^^^^^^ Tacked this on here. all of the following was commented out. I uncommented the dependencies. # assert.o is now in the shared library, yeah! assert.o: ar x /lib/libc.a assert.o Whammo! The whole thing worked. -- Skate UNIX or go home, boogie boy... Spelling errors are directly related to how little time I have... J. Eric Townsend ->uunet!nuchat!flatline!erict smail:511Parker#2,Hstn,Tx,77007 ..!bellcore!tness1!/
slocum@hi-csc.UUCP (Brett Slocum) (06/15/88)
[... no _assert.o when compiling lwall's patch program.] That's strange. I just compiled patch this morning on my 3b1, and I didn't have any trouble. What patchlevel are you at?? (I'm at level 4, though I'm getting the patches up to 11 soon). -- Brett Slocum UUCP: ...{uunet,ihnp4!umn-cs}!hi-csc!slocum Arpa: hi-csc!slocum@umn-cs.arpa "My name is Inigo Montoya. You killed my father. Prepare to die."