Where is "_assert"?

Ralph Harnden ralph at rtech.UUCP
Mon Jun 13 20:56:18 AEST 1988


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 at rtech.uucp


-- 
"Had this been a real emergency, you would be vapor by now...."
{amdahl, cbosgd, mtxinu, ptsfa, sun}!rtech!ralph ralph at rtech.uucp



More information about the Unix-pc.general mailing list