Subject: -current build: multiple definition of `heimdal_long_version' etc.
To: None <current-users@netbsd.org>
From: Ben Harris <bjh21@netbsd.org>
List: current-users
Date: 07/15/2000 17:11:13
When trying to build -current ("cvs update" yesterday), I get this when
linking telnetd:

--------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/>