[krbdev.mit.edu #6914] krb5-1.9.1 static compile error +preliminary patch (fwd)
Rainer Laatsch via RT
rt-comment at krbdev.mit.edu
Mon May 23 11:07:35 EDT 2011
./configure --prefix=/opt/krb5 --enable-static --disable-shared --disable-rpath
configure: creating cache ./config.cache
checking for gcc... gcc
...
config.status: executing PRNG_ALG commands
make 2>&1 | tee -a err
(cd include && make autoconf.h osconf.h)
make[1]: Entering directory `/Data/krb5-1.9.1/src/include'
...
gcc -L../lib -g -O2 -o krb5kdc kdc5_err.o dispatch.o do_as_req.o do_tgs_req.o fast_util.o kdc_util.o kdc_preauth.o main.o policy.o extern.o replay.o kdc_authdata.o -lapputils -lkadm5srv_mit -lkdb5 -lkrb5_db2 -lgssrpc -lgssapi_krb5 -lgssrpc -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkrb5support -lkeyutils -lresolv -ldl
../lib/libkrb5_db2.a(hash.o): In function `hdestroy':
/Data/krb5-1.9.1/src/plugins/kdb/db2/libdb2/hash/hash.c:549: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
../lib/libkdb5.a(kdb_default.o): In function `krb5_def_store_mkey_list':
/Data/krb5-1.9.1/src/lib/kdb/kdb_default.c:189: warning: the use of `mktemp' is dangerous, better use `mkstemp'
../lib/libkrb5_db2.a(lockout.o): In function `lookup_lockout_policy':
/Data/krb5-1.9.1/src/plugins/kdb/db2/lockout.c:69: undefined reference to `xdr_osa_princ_ent_rec'
/Data/krb5-1.9.1/src/plugins/kdb/db2/lockout.c:89: undefined reference to `xdr_osa_princ_ent_rec'
collect2: ld returned 1 exit status
make[1]: *** [krb5kdc] Error 1
make[1]: Leaving directory `/Data/krb5-1.9.1/src/kdc'
make: *** [all-recurse] Error 1
for f in ../../krb5*/*/*patch ; do cat $f >> err ; done
-------------------------------------------------------------------------
*** Makefile Sat Dec 25 05:38:39 2010
--- Makefile Sat Dec 25 05:14:09 2010
***************
*** 601,607 ****
plugins/kdb/db2 \
plugins/preauth/pkinit \
plugins/preauth/encrypted_challenge \
! kdc kadmin slave clients appl tests \
config-files gen-manpages
WINSUBDIRS=include util lib ccapi windows clients appl
BUILDTOP=$(REL).
--- 601,607 ----
plugins/kdb/db2 \
plugins/preauth/pkinit \
plugins/preauth/encrypted_challenge \
! kdc kadmin slave clients appl \
config-files gen-manpages
WINSUBDIRS=include util lib ccapi windows clients appl
BUILDTOP=$(REL).
*** kdc/Makefile Sat Dec 25 05:38:47 2010
--- kdc/Makefile Sat Dec 25 05:34:50 2010
***************
*** 594,600 ****
PROG_RPATH=$(KRB5_LIBDIR)
DEFS=-DLIBDIR=\"$(KRB5_LIBDIR)\"
! all:: krb5kdc rtest
# DEFINES = -DBACKWARD_COMPAT $(KRB4DEF)
--- 594,600 ----
PROG_RPATH=$(KRB5_LIBDIR)
DEFS=-DLIBDIR=\"$(KRB5_LIBDIR)\"
! all:: krb5kdc #rtest
# DEFINES = -DBACKWARD_COMPAT $(KRB4DEF)
***************
*** 641,647 ****
kdc5_err.o: kdc5_err.h
krb5kdc: $(OBJS) $(KADMSRV_DEPLIBS) $(KRB5_BASE_DEPLIBS) $(APPUTILS_DEPLIB)
! $(CC_LINK) -o krb5kdc $(OBJS) $(APPUTILS_LIB) $(KADMSRV_LIBS) $(KRB5_BASE_LIBS)
rtest: $(RT_OBJS) $(KDB5_DEPLIBS) $(KADM_COMM_DEPLIBS) $(KRB5_BASE_DEPLIBS)
$(CC_LINK) -o rtest $(RT_OBJS) $(KDB5_LIBS) $(KADM_COMM_LIBS) $(KRB5_BASE_LIBS)
--- 641,647 ----
kdc5_err.o: kdc5_err.h
krb5kdc: $(OBJS) $(KADMSRV_DEPLIBS) $(KRB5_BASE_DEPLIBS) $(APPUTILS_DEPLIB)
! $(CC_LINK) -o krb5kdc $(OBJS) $(APPUTILS_LIB) $(KADMSRV_LIBS) $(KRB5_BASE_LIBS) ../lib/kadm5/srv/libkadm5srv_mit.a ../lib/gssapi/libgssapi_krb5.a
rtest: $(RT_OBJS) $(KDB5_DEPLIBS) $(KADM_COMM_DEPLIBS) $(KRB5_BASE_DEPLIBS)
$(CC_LINK) -o rtest $(RT_OBJS) $(KDB5_LIBS) $(KADM_COMM_LIBS) $(KRB5_BASE_LIBS)
*** slave/Makefile Sat Dec 25 05:38:47 2010
--- slave/Makefile Sat Dec 25 05:24:04 2010
***************
*** 609,618 ****
$(CC_LINK) -o kprop $(CLIENTOBJS) $(KRB5_BASE_LIBS) -lutil
kpropd: $(SERVEROBJS) $(KDB5_DEPLIB) $(KADMCLNT_DEPLIBS) $(KRB5_BASE_DEPLIBS) $(APPUTILS_DEPLIB)
! $(CC_LINK) -o kpropd $(SERVEROBJS) $(KDB5_LIB) $(KADMCLNT_LIBS) $(KRB5_BASE_LIBS) $(APPUTILS_LIB) -lutil
kproplog: $(LOGOBJS)
! $(CC_LINK) -o kproplog $(LOGOBJS) $(KADMSRV_LIBS) $(KRB5_BASE_LIBS)
install::
for f in kprop kpropd kproplog; do \
--- 609,618 ----
$(CC_LINK) -o kprop $(CLIENTOBJS) $(KRB5_BASE_LIBS) -lutil
kpropd: $(SERVEROBJS) $(KDB5_DEPLIB) $(KADMCLNT_DEPLIBS) $(KRB5_BASE_DEPLIBS) $(APPUTILS_DEPLIB)
! $(CC_LINK) -o kpropd $(SERVEROBJS) $(KDB5_LIB) $(KADMCLNT_LIBS) $(KRB5_BASE_LIBS) $(APPUTILS_LIB) ../lib/kadm5/srv/libkadm5srv_mit.a ../lib/gssapi/libgssapi_krb5.a -lutil
kproplog: $(LOGOBJS)
! $(CC_LINK) -o kproplog $(LOGOBJS) $(KADMSRV_LIBS) $(KRB5_BASE_LIBS) ../lib/kadm5/srv/libkadm5srv_mit.a ../lib/gssapi/libgssapi_krb5.a -lkrb5 -lk5crypto -lutil
install::
for f in kprop kpropd kproplog; do \
-------------------------------------------------------------------------
patching file Makefile
patching file kdc/Makefile
patching file slave/Makefile
make 2>&1 | tee -a err
(cd include && make autoconf.h osconf.h)
make[1]: Entering directory `/Data/krb5-1.9.1/src/include'
...
making all in gen-manpages...
make[1]: Entering directory `/Data/krb5-1.9.1/src/gen-manpages'
make[1]: Leaving directory `/Data/krb5-1.9.1/src/gen-manpages'
make install DESTDIR=`pwd`/DESTDIR 2>&1 |tee -a err
mkdir /Data/krb5-1.9.1/src/DESTDIR
...
/usr/bin/install -c krb5-config \
/Data/krb5-1.9.1/src/DESTDIR/opt/krb5/bin/krb5-config
/usr/bin/install -c -m 644 ./krb5-config.M /Data/krb5-1.9.1/src/DESTDIR/opt/krb5/man/man1/krb5-config.1
rm -rf /Data/krb5-1.9.1/src/DESTDIR/opt/krb5/var/krb5kdc
## my krb5kdc lives here:
ln -s /var/security/krb5kdc /Data/krb5-1.9.1/src/DESTDIR/opt/krb5/var/krb5kdc
More information about the krb5-bugs
mailing list