Subject: Re: -current build: multiple definition of `heimdal_long_version' etc.
To: Ben Harris <bjh21@netbsd.org>
From: Jason R Thorpe <thorpej@zembu.com>
List: current-users
Date: 07/15/2000 09:36:15
On Sat, Jul 15, 2000 at 05:11:13PM +0100, Ben Harris wrote:

 > When trying to build -current ("cvs update" yesterday), I get this when
 > linking telnetd:

I'm working on this problem...

 > 
 > --------8<--------
 > /opt/pkg/cross/armv2-netbsd/bin/cc   -o telnetd -nostdlib -Wl,-rpath-link,/usr/src/dest/usr/lib /usr/src/dest/usr/lib/crt0.o /usr/src/dest/usr/lib/crtbegin.o authenc.o global.o slc.o state.o sys_term.o telnetd.o termstat.o utility.o -lutil -ltermcap -ltelnet -lkrb5 -lkrb -lcrypto -lasn1 -lcom_err -lroken -L/usr/src/dest/usr/lib -lgcc -lc -lgcc /usr/src/dest/usr/lib/crtend.o
 > /usr/src/dest/usr/lib/libasn1.a(der_get.o)(.data+0x0): multiple definition of `heimdal_long_version'
 > /usr/src/dest/usr/lib/libkrb.a(rw.o)(.data+0x0): first defined here
 > /usr/src/dest/usr/lib/libasn1.a(der_get.o)(.data+0x4): multiple definition of `heimdal_version'
 > /usr/src/dest/usr/lib/libkrb.a(rw.o)(.data+0x4): first defined here
 > /usr/src/dest/usr/lib/libasn1.a(der_get.o)(.data+0x8): multiple definition of `krb4_long_version'
 > /usr/src/dest/usr/lib/libkrb.a(rw.o)(.data+0x8): first defined here
 > /usr/src/dest/usr/lib/libasn1.a(der_get.o)(.data+0xc): multiple definition of `krb4_version'
 > /usr/src/dest/usr/lib/libkrb.a(rw.o)(.data+0xc): first defined here
 > authenc.o: In function `net_encrypt':
 > authenc.o(.text+0xc4): undefined reference to `nclearto'
 > telnetd.o: In function `main':
 > telnetd.o(.text+0x5fc): undefined reference to `nclearto'
 > utility.o: In function `netclear':
 > utility.o(.text+0x808): undefined reference to `nclearto'
 > utility.o: In function `netflush':
 > utility.o(.text+0xa2c): undefined reference to `nclearto'
 > collect2: ld returned 1 exit status
 > -------->8--------
 > 
 > What am I doing wrong?
 > 
 > -- 
 > Ben Harris                                                   <bjh21@netbsd.org>
 > Portmaster, NetBSD/arm26               <URL:http://www.netbsd.org/Ports/arm26/>
 > 
 > 

-- 
        -- Jason R. Thorpe <thorpej@zembu.com>