[OpenAFS] Compile failure

Benjamin Kaduk kaduk@MIT.EDU
Wed, 3 Aug 2016 21:39:56 -0400 (EDT)


On Wed, 3 Aug 2016, Ted Creedon wrote:

> openafs-1.6.18.2
> linux 4.1.27-27
> heimdal-master
>
> --with-krb5=/usr/heimdal
> gcc  -O -I/data1/openafs-1.6.18.2/src/config -I/data1/openafs-1.6.18.2/include -I. -I.  -D_LARGEFILE64_SOURCE   -o ptserver ptserver.o ptutils.o ptprocs.o ptint.ss.o ptint.xdr.o utils.o map.o /data1/openafs-1.6.18.2/lib/libubik.a /data1/openafs-1.6.18.2/lib/libauth.a /data1/openafs-1.6.18.2/lib/librxkad.a /data1/openafs-1.6.18.2/lib/librxstat.a /data1/openafs-1.6.18.2/lib/librx.a /data1/openafs-1.6.18.2/lib/liblwp.a /data1/openafs-1.6.18.2/lib/libdes.a /data1/openafs-1.6.18.2/lib/libcmd.a /data1/openafs-1.6.18.2/lib/libafscom_err.a /data1/openafs-1.6.18.2/lib/libsys.a /data1/openafs-1.6.18.2/lib/libafsutil.a -lresolv   /data1/openafs-1.6.18.2/lib/libaudit.a -Wl,--enable-new-dtags -Wl,-rpath -Wl,/usr/heimdal/lib64 -L/usr/heimdal/lib64 -lkrb5
> /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: /data1/openafs-1.6.18.2/lib/libauth.a(akimpersonate.o): undefined reference to symbol 'encode_EncTicketPart@@HEIMDAL_ASN1_1.0'
> /usr/heimdal/lib64/libasn1.so.8: error adding symbols: DSO missing from command line
> collect2: error: ld returned 1 exit status
> Makefile:99: recipe for target 'ptserver' failed
> make[3]: *** [ptserver] Error 1
> make[3]: Leaving directory '/data1/openafs-1.6.18.2/src/ptserver'
> Makefile:235: recipe for target 'ptserver' failed
> make[2]: *** [ptserver] Error 2
> make[2]: Leaving directory '/data1/openafs-1.6.18.2'
> Makefile:692: recipe for target 'build' failed
> make[1]: *** [build] Error 2
> make[1]: Leaving directory '/data1/openafs-1.6.18.2'
> Makefile:36: recipe for target 'all' failed
> make: *** [all] Error 2

Linking heimdal krb5 should have a longer command line than that.
Is there MIT krb5 also installed on the machine?  Try setting
PATH_KRB5_CONFIG=/usr/heimdal/bin/krb5-config at configure time?

-Ben