[krbdev.mit.edu #8326] hostrealm code won't compile in debug mode using Solaris Studio C

Will Fiveash via RT rt-comment at krbdev.mit.edu
Thu Dec 10 20:19:35 EST 2015


When I compile MIT v1.13.2 code using debug compile options and the
solaris studio v12.4 C compiler I see:

+ /opt/SUNWspro/solarisstudio12.4/bin/cc -m32 -g '-xchip=pentium'
'-xregs=no%frameptr' -mt -D_LARGEFILE_SOURCE '-D_FILE_OFFSET_BITS=64'
-KPIC -DPIC -dy -G -z text -h hostrealm_test.so.0 -o hostrealm_test.so
main.so -R/usr/lib -L../../../lib -lkrb5 -lc -z defs
Undefined                       first referenced
 symbol                             in file
krb5int_zap                         main.so  (symbol belongs to implicit
dependency ../../../lib/libkrb5support.so.0)
ld: fatal: symbol referencing errors

Modifying the krb5-1.13.2/src/plugins/hostrealm/test/Makefile.in file so
this:

SHLIB_EXPDEPS= $(KRB5_DEPLIB)
SHLIB_EXPLIBS= $(KRB5_LIB)

becomes:
SHLIB_EXPDEPS= $(KRB5_DEPLIB) $(SUPPORT_DEPLIB)
SHLIB_EXPLIBS= $(KRB5_LIB) $(SUPPORT_LIB)

fixes the undefined krb5int_zap symbol issue.


More information about the krb5-bugs mailing list