build error when linking with heimdal-dev (Re: [OpenAFS] bosserver -noauth& changes cell to localcell)

Michael Meffie mmeffie@sinenomine.net
Thu, 13 Apr 2017 15:31:39 -0400


On Thu, 13 Apr 2017 16:58:57 +0000
Ted Creedon <tcreedon@easystreet.net> wrote:

> Looks like the compile failure is described in:
> https://lists.openafs.org/pipermail/openafs-info/2016-August/041890.html
> 
> trying to figure that  out now.

Hello Ted,

I can reproduce your build error when trying to build 1.6.x against heimdal-dev
(on ubuntu). Looks like we are not setting the link flags correctly by default
in this case. I'll take a closer look.

$ make
<snip>
make[3]: Entering directory './openafs/src/ptserver'
gcc  -O -I./openafs/src/config -I./openafs/include -I. -I.  -D_LARGEFILE64_SOURCE   -o ptserver ptserver
.o ptutils.o ptprocs.o ptint.ss.o ptint.xdr.o utils.o map.o ./openafs/lib/libubik.a ./openafs/lib/libaut
h.a ./openafs/lib/librxkad.a ./openafs/lib/librxstat.a ./openafs/lib/librx.a ./o
penafs/lib/liblwp.a ./openafs/lib/libdes.a ./openafs/lib/libcmd.a ./openafs/lib/libafscom_er
r.a ./openafs/lib/libsys.a ./openafs/lib/libafsutil.a -lresolv   ./openafs/lib/libaudit.a -L
/usr/lib/x86_64-linux-gnu/heimdal -lkrb5
/usr/bin/ld: ./openafs/lib/libauth.a(akimpersonate.o): undefined reference to symbol 'encode_EncTicketPart@@HEIMDAL$ASN1_1.0'
//usr/lib/x86_64-linux-gnu/libasn1.so.8: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status


$  krb5-config --libs krb5
-L/usr/lib/x86_64-linux-gnu/heimdal -lkrb5



-- 
Michael Meffie <mmeffie@sinenomine.net>