[14651] in Athena Bugs
Re: sun4 8.0I: com_err
daemon@ATHENA.MIT.EDU (Greg Hudson)
Mon Sep 9 16:10:43 1996
Date: Mon, 9 Sep 1996 16:10:40 -0400
From: Greg Hudson <ghudson@MIT.EDU>
To: bdrosen@MIT.EDU
Cc: bugs@MIT.EDU
In-Reply-To: "[14627] in Athena Bugs"
> ld: fatal: symbol `com_err_hook' has differing sizes:
> (file /tmp/cca002I11.o value=0xc; file /usr/athena/lib/libcom_err.a(com_err.o) value=0x4);
> tentative symbol cannot override defined symbol of smaller size
> ld: fatal: File processing errors. No output written to zclient
This is probably a result of com_err declaring a data object
(com_err_hook) in the com_err.h header file. Such poor behavior works
in the normal case (since the linker will collapse multiple objects
with the same name and size), but bgcc is generating a twelve-byte
object instead of a four-byte object and the linker becomes unhappy.
I will fix this problem for the 8.1 release; in the meantime, you can
use a local copy of com_err.h with an "extern" in front of the
com_err_hook declaration, or you can build com_err with
bounds-checking. I don't plan to fix this problem for an 8.0 patch
release because it would result in a library being out of sync with a
huge host of programs compiled against it.