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

Michael Meffie
Thu, 13 Apr 2017 15:31:39 -0400

On Thu, 13 Apr 2017 16:58:57 +0000
Ted Creedon <> wrote:

> Looks like the compile failure is described in:
> 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
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.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/ 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 <>