Subject: Re: broken ramdiskbin build (multiple symbol definition breaks ELF -static)
To: None <current-users@netbsd.org>
From: Feico Dillema <dillema@acm.org>
List: current-users
Date: 09/19/1999 23:24:00
On Sun, Sep 19, 1999 at 10:38:05PM +0200, Sean Doran wrote:
> 
> producing this error:
> 
> /usr/lib/libc.a(yplib.o): In function `_yp_dobind':
> yplib.o(.text+0x0): multiple definition of `_yp_dobind'
> libhack.o(.text+0x13d0): first defined here
> /usr/bin/ld: Warning: size of symbol `_yp_dobind' changed from 10 to 1429 
> in yplib.o
> /usr/lib/libc.a(yplib.o): In function `_yp_check':
> yplib.o(.text+0x5c4): multiple definition of `_yp_check'
> libhack.o(.text+0x1538): first defined here
> /usr/bin/ld: Warning: size of symbol `_yp_check' changed from 74 to 115 in 
> yplib.o
> collect2: ld returned 1 exit status
> 
> How do I work around this?

I just noticed the same thing and simply worked around it by compiling
libhack.a without yplib.c (in src/distrib/utils/libhack/). Don't know
whether that's bad, but it seems to work ;-}. I guess that yplib.c
got out of sync with the one in libc. 

Feico.