Skip Menu |
 

Date: Sun, 22 May 2011 17:00:05 +0200 (CEST)
From: Rainer Laatsch <Laatsch@uni-koeln.de>
To: krb5-bugs@mit.edu
Subject: krb5-1.9.1 static compile error +preliminary patch (fwd)
CC: "R. Laatsch" <a0049@uni-koeln.de>
Download (untitled) / with headers
text/plain 5.3KiB

./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
Date: Mon, 23 May 2011 08:18:26 -0700 (PDT)
From: will.fiveash@oracle.com
To: rt-comment@krbdev.mit.edu
Subject: Auto Reply: [krbdev.mit.edu #6914] krb5-1.9.1 static compile error +preliminary patch (fwd)
RT-Send-Cc:
Hi,

I'm away on vacation through June 6, 2011. I'll
be checking my e-mail sporadically and respond when I can.
Date: Mon, 23 May 2011 08:27:19 -0700 (PDT)
From: will.fiveash@oracle.com
To: rt-comment@krbdev.mit.edu
Subject: Auto Reply: Auto Reply: [krbdev.mit.edu #6914] krb5-1.9.1 static compile error +preliminary patch (fwd)
RT-Send-Cc:
Hi,

I'm away on vacation through June 6, 2011. I'll
be checking my e-mail sporadically and respond when I can.
From: ghudson@mit.edu
Subject: SVN Commit
Download (untitled) / with headers
text/plain 1.1KiB

Get static linking working again, mostly.

Static linking (#6510) broke when lockout support was added because
the DB2 plugin became dependent on libkadm5srv_mit for XDR functions.
Also, static linking was extensively broken in combination with LDAP
support. Fix these problems.

Afer these fixes, the test suite fails in the FAST tests because
there's no static build support for dynamic preauth plugins, which
means there's no encrypted challenge. (And unlike the pkinit tests,
the test suite doesn't conditionalize on the presence of the encrypted
challenge plugin, because we always build it.) This will fix itself
if and when encrypted challenge becomes linked into the consumers, or
static build support is added for preauth plugins.

https://github.com/krb5/krb5/commit/bc359880c203d769e230e3285af2512d22fc62aa
Commit By: ghudson
Revision: 24996
Changed Files:
U trunk/src/Makefile.in
U trunk/src/aclocal.m4
U trunk/src/config/pre.in
U trunk/src/configure.in
U trunk/src/lib/crypto/crypto_tests/Makefile.in
U trunk/src/lib/kdb/kdb5.c
U trunk/src/plugins/kdb/ldap/Makefile.in
U trunk/src/plugins/kdb/ldap/libkdb_ldap/Makefile.in