<div dir="ltr">OpenLdap will not build from source.  I've had to massage it since Ubuntu 14.04.  Looks like changes were made back in 2014 that are causing the problems.<div><br></div><div>It's been a real PITA for the last ~3 years.<br><div><br></div><div>I don't know what upstream was trying to accomplish but it APPEARS to be somone wanted to support put gssapi stuff in for SAMBA.  </div><div><br></div><div><a href="http://configure.in">configure.in</a> is buggered.</div><div>debian/rules is buggered. </div><div><br></div><div>I have to comment out stuff.... and add new VARS to <a href="http://configure.in">configure.in</a> just to get it this far.  I usually just delete all the 'crap' out.</div><div><br></div><div>Regardless, compiling from source is worthless.</div><div><br></div><div>Try it yourself from a 'fresh' install of 1404 or 1604 or Debian 8.  Makes no difference.  Results are the same.</div><div><br></div><div>grep these compile-time VAR culprits and search the version control logs.  Looks like the suspect changes were made 2009.</div><div><br></div><div>VERSION_OPTIONS</div><div>GSSAPI_LIBS</div><div><br></div><div>... SAMPLE CRAP...  from debian/rules...</div><div><div>override_dh_auto_clean:</div><div>        dh_auto_clean</div><div>        # Update translation templates for debconf</div><div>        debconf-updatepo</div><div>ifeq ($(filter stage1,$(DEB_BUILD_PROFILES)),)</div><div>        # Remove our stripped schema from the upstream source area.</div><div>        if [ -z "$(DFSG_NONFREE)" ]; then \</div><div>            set -e; for s in debian/schema/*.schema debian/schema/*.ldif; do \</div><div>                rm -f servers/slapd/schema/`basename $$s`; \</div><div>            done; \</div><div>        fi</div><div><br></div><div>        rm -f contrib/slapd-modules/nssov/nss-pam-ldapd/config.sub contrib/slapd-modules/nssov/nss-pam-ldapd/config.guess</div><div><br></div><div>        # Clean the contrib directory</div><div>        rm -rf contrib/slapd-modules/smbk5pwd/.libs \</div><div>                contrib/slapd-modules/smbk5pwd/smbk5pwd.lo \</div><div>                contrib/slapd-modules/smbk5pwd/<a href="http://smbk5pwd.la">smbk5pwd.la</a> \</div><div>                contrib/slapd-modules/smbk5pwd/smbk5pwd.o</div><div>        rm -rf contrib/slapd-modules/autogroup/.libs \</div><div>                contrib/slapd-modules/autogroup/autogroup.lo \</div><div>                contrib/slapd-modules/autogroup/<a href="http://autogroup.la">autogroup.la</a> \</div><div>                contrib/slapd-modules/autogroup/autogroup.o</div><div>        rm -rf contrib/slapd-modules/lastbind/.libs \</div><div>                contrib/slapd-modules/lastbind/lastbind.lo \</div><div>                contrib/slapd-modules/lastbind/<a href="http://lastbind.la">lastbind.la</a> \</div><div>                contrib/slapd-modules/lastbind/lastbind.o</div><div>        rm -rf contrib/slapd-modules/passwd/sha2/.libs \</div><div>                contrib/slapd-modules/passwd/sha2/pw-sha2.lo \</div><div>                contrib/slapd-modules/passwd/sha2/<a href="http://pw-sha2.la">pw-sha2.la</a> \</div><div>                contrib/slapd-modules/passwd/sha2/pw-sha2.o</div><div>endif</div><div>~           </div></div><div><br></div><div><br><div><br></div><div>ONE OF MANY SAMPLES OF PROBLEMS...</div><div><div><span class="" style="white-space:pre">              </span>-e 's%DATADIR%/usr/share/ldap%' \</div><div><span class="" style="white-space:pre">          </span>-e 's%SBINDIR%/usr/sbin%' \</div><div><span class="" style="white-space:pre">                </span>-e 's%BINDIR%/usr/bin%' \</div><div><span class="" style="white-space:pre">          </span>-e 's%LIBDIR%/usr/lib/x86_64-linux-gnu%' \</div><div><span class="" style="white-space:pre">         </span>-e 's%LIBEXECDIR%/usr/lib%' \</div><div><span class="" style="white-space:pre">              </span>-e 's%MODULEDIR%/usr/lib/ldap%' \</div><div><span class="" style="white-space:pre">          </span>-e 's%RELEASEDATE%2015/08/14%' \</div><div><span class="" style="white-space:pre">                   </span>./$page \</div><div><span class="" style="white-space:pre">          </span>| (cd .; soelim -) > $page.tmp; \</div><div>done</div><div>make[4]: Leaving directory '/home/starnet/tmp/openldap-2.4.42+dfsg/doc/man/man8'</div><div> </div><div>make[3]: Leaving directory '/home/starnet/tmp/openldap-2.4.42+dfsg/doc/man'</div><div> </div><div>make[2]: Leaving directory '/home/starnet/tmp/openldap-2.4.42+dfsg/doc'</div><div> </div><div>make[1]: Leaving directory '/home/starnet/tmp/openldap-2.4.42+dfsg'</div><div>/usr/bin/make -C contrib/slapd-modules/smbk5pwd</div><div>make[1]: Entering directory '/home/starnet/tmp/openldap-2.4.42+dfsg/contrib/slapd-modules/smbk5pwd'</div><div>../../../debian/build/libtool --mode=compile gcc -g -O2 -Wall -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DDO_KRB5 -DDO_SAMBA -DDO_SHADOW -I../../../debian/build/include -I../../../debian/build/servers/slapd -I../../../include -I../../../include -I../../../servers/slapd -I/usr/include/heimdal  -c smbk5pwd.c</div><div>make[1]: ../../../debian/build/libtool: Command not found</div><div>Makefile:54: recipe for target 'smbk5pwd.lo' failed</div><div>make[1]: *** [smbk5pwd.lo] Error 127</div><div>make[1]: Leaving directory '/home/starnet/tmp/openldap-2.4.42+dfsg/contrib/slapd-modules/smbk5pwd'</div><div>debian/rules:81: recipe for target 'override_dh_auto_build' failed</div><div>make: *** [override_dh_auto_build] Error 2</div><div>root@u1604svr:/home/starnet/tmp/openldap-2.4.42+dfsg# !vi</div></div><div><br></div></div></div></div>