[8507] in Athena Bugs

home help back first fref pref prev next nref lref last post

rt 7.3P: /usr/lib/libm.a

daemon@ATHENA.MIT.EDU (brlewis@Athena.MIT.EDU)
Wed Oct 30 09:46:11 1991

From: brlewis@Athena.MIT.EDU
Date: Wed, 30 Oct 91 09:46:10 -0500
To: bugs@Athena.MIT.EDU


What I was trying to do:

	cc foo.o -lF77 -lI77 -lm

What's wrong:

_cabs: multiply defined

foo.o needed _hypot and something else needed _cabs.  It found _cabs
defined in libF77, but needed _hypot from libm.  Unfortunately, this
means linking in cabs.o, which includes both _hypot and _cabs.

Workaround:

	cc foo.c -lm -lF77 -lI77

Bug fix:

	Split /source/bsd-4.3/rt/usr.lib/libm/IEEE/cabs.c into two
source files.

home help back first fref pref prev next nref lref last post