Subject: weak references, libc, linker
To: None <current-users@netbsd.org>
From: Frank van der Linden <vdlinden@fwi.uva.nl>
List: current-users
Date: 12/17/1994 12:35:49
Well, to avoid earlier reported problems with libc, I installed the freshly
compile libc as version 13.0, and went on to compile some things. A couple
of compile went by without problems, but with rcs this happened:

===> lib
===> ci
cc   -o ci ci.o /usr/src/gnu/usr.bin/rcs/lib/obj/librcs.a -lgnumalloc
ld: ci.o: RRS text relocation at 0x20c5 for "__warn"
ld: ci.o: RRS text relocation at 0x209f for "__warn"
ld: ci.o: RRS text relocation at 0x2079 for "__warn"
ld: ci.o: RRS text relocation at 0x1eba for "__warn"
ld: ci.o: RRS text relocation at 0x1c4a for "__warn"
ld: /usr/src/gnu/usr.bin/rcs/lib/obj/librcs.a(rcsedit.o): RRS text relocation at 0x5d2d for "__warn"
ld: /usr/src/gnu/usr.bin/rcs/lib/obj/librcs.a(rcsutil.o): RRS text relocation at 0x74b5 for "___sys_siglist"
ld: /usr/src/gnu/usr.bin/rcs/lib/obj/librcs.a(rcsfnms.o): RRS text relocation at 0xc990 for "__warn"
ld: internal error: number of symbols exceeds alloc'd 223
*** Error code 1

Stop.
*** Error code 1

Stop.

I think something like this was reported before, and Paul Kranenburg said
that it should not happen anymore with a -current linker. However,
my linker (and ld.so) is the result of a 'make cleandir all install' from
yesterday night (before I did the libc compile).

- Frank

P.S. Hey, the version numbers of libraries don't need to be bumped.. just
     have all binaries to boot the system, and compile & install programs
     around as static binaries, and recompile every other program in
     sight as soon as the library changes 8-)