DLZ modules
Evan Hunt
each at isc.org
Sat Jan 22 03:54:49 UTC 2022
On Fri, Jan 21, 2022 at 09:40:25AM +0100, Josef Moellers wrote:
> I'm sorry, but I was unable to find anything wrt building the modules
> Currently we have "--with-dlz-mysql" and "--with-dlz-ldap", so I would,
> at the least, need "dlz_mysql_dynamic.so" and "dlz_ldap_dynamic.so" to
> provide the same functionality as before. I have searched the configure
> script but have found no way to select which dynamic module to build (or
> build ALL modules, which would be fine with me) and the build log does
> not show them to be built and on a test VM, where I run the tests prior
> to releasing new versions, no "dlz_XXX_dynmic.so" file was found after
> make-ing the binaries.
Apply this patch, to put back the lines we accidentally deleted a while
back (thank you again for pointing this out):
-- cut here --
diff --git a/contrib/dlz/modules/include/dlz_pthread.h b/contrib/dlz/modules/include/dlz_pthread.h
index c1b6db637e..4479f836c0 100644
--- a/contrib/dlz/modules/include/dlz_pthread.h
+++ b/contrib/dlz/modules/include/dlz_pthread.h
@@ -19,6 +19,11 @@
#ifndef DLZ_PTHREAD_H
#define DLZ_PTHREAD_H 1
+#ifndef PTHREADS
+#define PTHREADS 1
+#endif /* ifndef PTHREADS */
+
+#ifdef PTHREADS
#include <pthread.h>
#define dlz_mutex_t pthread_mutex_t
#define dlz_mutex_init pthread_mutex_init
-- cut here --
Then:
$ cd contrib/dlz/modules/mysql
$ make
$ cd ../ldap
$ make
... worked for me on ubuntu after installing the libmysqlclient-dev and
libldap2-dev packages; I can't speak for other platforms at the moment.
--
Evan Hunt -- each at isc.org
Internet Systems Consortium, Inc.
More information about the bind-workers
mailing list