Ralph Angenendt wrote: > You first have to find some heimdal packages for CentOS and hope, that > those do not conflict with the kerberos packages from CentOS. > > Then see the two smbk5pwd patches under $RPMDIR/SOURCES to see what we > changed from the original sources which are distributed by the openldap > guys. > > Cheers, > > Ralph Ok, I compiled heimdal from source into the /usr/heimdal directory. I enabled the -DDO_KRB5 option in the makefile for smbk5pwd. When I try to build the rpms, it dies when it gets to smbk5pwd. Looking at the output for the module (below), it looks like it is looking for the kerberos libraries at /usr/kerberos/lib insteat of /usr/heimdal/lib. On the spec file, it mentions "change LD_FLAGS to refer to to %{_prefix}/kerberos/%{_lib} instead of /usr/kerberos/lib, which might not be right on some arches", but I cannot find the line it refers to in this log message. How do I tell rpmbuild to use the /usr/heimdal directory instead of /usr/kerberos? Cheers, Scott ---- Output: make[3]: Entering directory `/usr/src/redhat/BUILD/openldap-2.3.27/openldap-2.3.27/build-servers/servers/slapd/overlays' /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/accesslog.c ../../../../build/mkversion -v "2.3.27" back_sql > version.c /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/init.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/accesslog.c -fPIC -DPIC -o .libs/accesslog.o mkdir .libs cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/init.c -fPIC -DPIC -o .libs/init.o /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/config.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/config.c -fPIC -DPIC -o .libs/config.o /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/auditlog.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/auditlog.c -fPIC -DPIC -o .libs/auditlog.o /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/denyop.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/denyop.c -fPIC -DPIC -o .libs/denyop.o /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/search.c /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/dyngroup.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/search.c -fPIC -DPIC -o .libs/search.o cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/dyngroup.c -fPIC -DPIC -o .libs/dyngroup.o /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/dynlist.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/dynlist.c -fPIC -DPIC -o .libs/dynlist.o /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/lastmod.c /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/bind.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/bind.c -fPIC -DPIC -o .libs/bind.o cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/lastmod.c -fPIC -DPIC -o .libs/lastmod.o /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/compare.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/compare.c -fPIC -DPIC -o .libs/compare.o /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/ppolicy.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/ppolicy.c -fPIC -DPIC -o .libs/ppolicy.o /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/operational.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/operational.c -fPIC -DPIC -o .libs/operational.o /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/entry-id.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/entry-id.c -fPIC -DPIC -o .libs/entry-id.o /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/pcache.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/pcache.c -fPIC -DPIC -o .libs/pcache.o /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/schema-map.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/schema-map.c -fPIC -DPIC -o .libs/schema-map.o /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/sql-wrap.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/sql-wrap.c -fPIC -DPIC -o .libs/sql-wrap.o /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/refint.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/refint.c -fPIC -DPIC -o .libs/refint.o /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/modify.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/modify.c -fPIC -DPIC -o .libs/modify.o /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/retcode.c /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/util.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/retcode.c -fPIC -DPIC -o .libs/retcode.o cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/util.c -fPIC -DPIC -o .libs/util.o /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/add.c /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/rwm.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/add.c -fPIC -DPIC -o .libs/add.o cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/rwm.c -fPIC -DPIC -o .libs/rwm.o /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/rwmconf.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/rwmconf.c -fPIC -DPIC -o .libs/rwmconf.o /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/delete.c /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/rwmdn.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/delete.c -fPIC -DPIC -o .libs/delete.o cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/rwmdn.c -fPIC -DPIC -o .libs/rwmdn.o /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/rwmmap.c /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/modrdn.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/rwmmap.c -fPIC -DPIC -o .libs/rwmmap.o cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/modrdn.c -fPIC -DPIC -o .libs/modrdn.o /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/api.c /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/syncprov.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c ../../../../servers/slapd/back-sql/api.c -fPIC -DPIC -o .libs/api.o cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/syncprov.c -fPIC -DPIC -o .libs/syncprov.o /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c version.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/back-sql/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -c version.c -fPIC -DPIC -o .libs/version.o /usr/bin/libtool --tag=disable-static --mode=link cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -L/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/lib64 -L/usr/kerberos/lib64 -release 2.3 -version-info 2:15:2 -rpath /usr/lib64/openldap -module -o back_sql.la init.lo config.lo search.lo bind.lo compare.lo operational.lo entry-id.lo schema-map.lo sql-wrap.lo modify.lo util.lo add.lo delete.lo modrdn.lo api.lo version.lo -lodbc gcc -shared .libs/init.o .libs/config.o .libs/search.o .libs/bind.o .libs/compare.o .libs/operational.o .libs/entry-id.o .libs/schema-map.o .libs/sql-wrap.o .libs/modify.o .libs/util.o .libs/add.o .libs/delete.o .libs/modrdn.o .libs/api.o .libs/version.o -L/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/lib64 -L/usr/kerberos/lib64 -lodbc -Wl,-soname -Wl,back_sql-2.3.so.0 -o .libs/back_sql-2.3.so.0.2.15 (cd .libs && rm -f back_sql-2.3.so.0 && ln -s back_sql-2.3.so.0.2.15 back_sql-2.3.so.0) (cd .libs && rm -f back_sql.so && ln -s back_sql-2.3.so.0.2.15 back_sql.so) creating back_sql.la (cd .libs && rm -f back_sql.la && ln -s ../back_sql.la back_sql.la) make[3]: Leaving directory `/usr/src/redhat/BUILD/openldap-2.3.27/openldap-2.3.27/build-servers/servers/slapd/back-sql' /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/translucent.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/translucent.c -fPIC -DPIC -o .libs/translucent.o /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/unique.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/unique.c -fPIC -DPIC -o .libs/unique.o /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/valsort.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/valsort.c -fPIC -DPIC -o .libs/valsort.o /usr/bin/libtool --tag=disable-static --mode=compile cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/smbk5pwd.c cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -I../../../include -I../../../../include -I.. -I../../../../servers/slapd/overlays/.. -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -DSLAPD_IMPORT -DDO_SAMBA -DDO_KRB5 -c ../../../../servers/slapd/overlays/smbk5pwd.c -fPIC -DPIC -o .libs/smbk5pwd.o /usr/bin/libtool --tag=disable-static --mode=link cc -I/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/include -I/usr/kerberos/include -O2 -g -D_REENTRANT -fPIC -L/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/lib64 -L/usr/kerberos/lib64 -release 2.3 -version-info 2:15:2 -rpath /usr/lib64/openldap -module -o accesslog.la accesslog.lo version.lo ../../../../servers/slapd/overlays/smbk5pwd.c:45:25: error: kadm5/admin.h: No such file or directory ../../../../servers/slapd/overlays/smbk5pwd.c:46:17: error: hdb.h: No such file or directory ../../../../servers/slapd/overlays/smbk5pwd.c:56: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'conf' ../../../../servers/slapd/overlays/smbk5pwd.c:57: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token ../../../../servers/slapd/overlays/smbk5pwd.c: In function 'k5key_chk': ../../../../servers/slapd/overlays/smbk5pwd.c:275: error: 'krb5_salt' undeclared (first use in this function) ../../../../servers/slapd/overlays/smbk5pwd.c:275: error: (Each undeclared identifier is reported only once ../../../../servers/slapd/overlays/smbk5pwd.c:275: error: for each function it appears in.) ../../../../servers/slapd/overlays/smbk5pwd.c:275: error: expected ';' before 'salt' ../../../../servers/slapd/overlays/smbk5pwd.c:276: error: 'hdb_entry' undeclared (first use in this function) ../../../../servers/slapd/overlays/smbk5pwd.c:276: error: expected ';' before 'ent' ../../../../servers/slapd/overlays/smbk5pwd.c:291: error: 'Key' undeclared (first use in this function) ../../../../servers/slapd/overlays/smbk5pwd.c:291: error: expected ';' before 'ekey' ../../../../servers/slapd/overlays/smbk5pwd.c:296: error: 'ent' undeclared (first use in this function) ../../../../servers/slapd/overlays/smbk5pwd.c:299: error: 'salt' undeclared (first use in this function) ../../../../servers/slapd/overlays/smbk5pwd.c:306: error: 'ekey' undeclared (first use in this function) ../../../../servers/slapd/overlays/smbk5pwd.c:309: error: 'db' undeclared (first use in this function) ../../../../servers/slapd/overlays/smbk5pwd.c:317: error: 'krb5_keyblock' has no member named 'keyvalue' ../../../../servers/slapd/overlays/smbk5pwd.c:318: error: 'krb5_keyblock' has no member named 'keyvalue' ../../../../servers/slapd/overlays/smbk5pwd.c: In function 'smbk5pwd_exop_passwd': ../../../../servers/slapd/overlays/smbk5pwd.c:363: error: 'hdb_entry' undeclared (first use in this function) ../../../../servers/slapd/overlays/smbk5pwd.c:363: error: expected ';' before 'ent' ../../../../servers/slapd/overlays/smbk5pwd.c:375: error: 'ent' undeclared (first use in this function) ../../../../servers/slapd/overlays/smbk5pwd.c:396: error: 'db' undeclared (first use in this function) ../../../../servers/slapd/overlays/smbk5pwd.c:405: error: 'Key' undeclared (first use in this function) ../../../../servers/slapd/overlays/smbk5pwd.c: In function 'smbk5pwd_modules_init': ../../../../servers/slapd/overlays/smbk5pwd.c:789: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token ../../../../servers/slapd/overlays/smbk5pwd.c:789: error: expected expression before 'void' ../../../../servers/slapd/overlays/smbk5pwd.c:789: error: invalid type argument of 'unary *' ../../../../servers/slapd/overlays/smbk5pwd.c:828: error: 'KADM5_ADMIN_SERVICE' undeclared (first use in this function) ../../../../servers/slapd/overlays/smbk5pwd.c:831: error: 'conf' undeclared (first use in this function) ../../../../servers/slapd/overlays/smbk5pwd.c:834: warning: assignment makes pointer from integer without a cast ../../../../servers/slapd/overlays/smbk5pwd.c:836: warning: assignment makes pointer from integer without a cast ../../../../servers/slapd/overlays/smbk5pwd.c:847: error: 'db' undeclared (first use in this function) make[3]: *** [smbk5pwd.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... gcc -shared .libs/accesslog.o .libs/version.o -L/usr/src/redhat/BUILD/openldap-2.3.27/db-instroot/lib64 -L/usr/kerberos/lib64 -Wl,-soname -Wl,accesslog-2.3.so.0 -o .libs/accesslog-2.3.so.0.2.15 (cd .libs && rm -f accesslog-2.3.so.0 && ln -s accesslog-2.3.so.0.2.15 accesslog-2.3.so.0) (cd .libs && rm -f accesslog.so && ln -s accesslog-2.3.so.0.2.15 accesslog.so) creating accesslog.la (cd .libs && rm -f accesslog.la && ln -s ../accesslog.la accesslog.la) make[3]: Leaving directory `/usr/src/redhat/BUILD/openldap-2.3.27/openldap-2.3.27/build-servers/servers/slapd/overlays' make[2]: *** [dynamic_overlays] Error 2 make[2]: Leaving directory `/usr/src/redhat/BUILD/openldap-2.3.27/openldap-2.3.27/build-servers/servers/slapd' make[1]: *** [all-common] Error 1 make[1]: Leaving directory `/usr/src/redhat/BUILD/openldap-2.3.27/openldap-2.3.27/build-servers/servers' make: *** [all-common] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.45178 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.45178 (%build)