--- ./src/configure.orig	2021-02-09 04:29:06 +0000
+++ ./src/configure	2021-02-09 04:33:27 +0000
@@ -5264,7 +5264,7 @@
   # libdb gets sucked into libkdb
   KDB5_DB_LIB=
   # needed for a couple of things that need libdb for its own sake
-  DB_LIB=-ldb
+  DB_LIB=-ldb5
 fi
 
 
@@ -13211,7 +13211,7 @@
 # it is linked again later.
 case $krb5_cv_host in
 *-*-aix*)
-	DB_EXTRA_LIBS=-ldb
+	DB_EXTRA_LIBS=-ldb5
 	;;
 *)
 	DB_EXTRA_LIBS=
