Subject: Linker problem: wrong number of global symbols
To: None <current-users@netbsd.org>
From: Dave Huang <khym@bga.com>
List: current-users
Date: 09/03/1998 02:38:04
Is this supposed to work yet? I'm trying to do a "make build" with the
latest toolchain on my NetBSD/i386 system, and I'm getting:

building shared krb library (version 2.0)
ld -x -shared  -o libkrb.so.2.0    --whole-archive libkrb_pic.a --no-whole-archive -lcom_err -lcrypt
ld: internal error: wrong number (100) of global symbols written into output file, should be 101

I've rebuilt ld, and if it matters, libbfd, libgnumalloc, and binutils.
The "make build" also installed a new libc and the other libs in
/usr/src/gnu/lib. My gcc is:
gcc version egcs-2.91.55 19980824 (gcc2 ss-980609 experimental)

I tried to recompile egcs, but it gives me the same sort of error trying
to make libcc1.so:
ld -x -shared  -o libcc1.so.1.1    --whole-archive libcc1_pic.a --no-whole-archive -lgnumalloc  
ld: internal error: wrong number (2122) of global symbols written into output file, should be 2123

I believe someone mentioned that they got things to work by adding the
"-t" option, but that didn't help me.
-- 
Name: Dave Huang     |   Mammal, mammal / their names are called /
INet: khym@bga.com   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 22 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++