Disable thread support in BIND. It appears to reduce performance rather
than increase it, and seems to be the cause of the memory leaks which some users have reported. Requested by: dougb MFC after: 5 days
This commit is contained in:
parent
817761fa0f
commit
96f2eb8f8a
@ -973,14 +973,6 @@ _prebuild_libs+= lib/libcom_err lib/libcrypt lib/libexpat \
|
||||
|
||||
lib/libopie__L lib/libtacplus__L: lib/libmd__L
|
||||
|
||||
.if !defined(NO_BIND)
|
||||
.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64"
|
||||
_prebuild_libs+= lib/libc_r
|
||||
.else
|
||||
_prebuild_libs+= lib/libpthread
|
||||
.endif
|
||||
.endif
|
||||
|
||||
_generic_libs+= lib
|
||||
|
||||
.if !defined(NO_CRYPT)
|
||||
|
@ -46,3 +46,11 @@ extern __inline int __sputaux(int _c, struct __sFILE *_p);
|
||||
#endif
|
||||
/* #undef BROKEN_IN6ADDR_INIT_MACROS */
|
||||
#define HAVE_STRLCAT 1
|
||||
/* Shut up warnings about missing braces */
|
||||
/* #undef SHUTUP_MUTEX_INITIALIZER */
|
||||
#ifdef SHUTUP_MUTEX_INITIALIZER
|
||||
#define LIBBIND_MUTEX_INITIALIZER { PTHREAD_MUTEX_INITIALIZER }
|
||||
#else
|
||||
#define LIBBIND_MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER
|
||||
#endif
|
||||
|
||||
|
@ -36,7 +36,7 @@
|
||||
/* #undef NEED_PTHREAD_INIT */
|
||||
|
||||
/* define if your system has sigwait() */
|
||||
#define HAVE_SIGWAIT 1
|
||||
/* #undef HAVE_SIGWAIT */
|
||||
|
||||
/* define if sigwait() is the UnixWare flavor */
|
||||
/* #undef HAVE_UNIXWARE_SIGWAIT */
|
||||
@ -48,7 +48,7 @@
|
||||
/* #undef HAVE_LINUXTHREADS */
|
||||
|
||||
/* define if sysconf() is available */
|
||||
#define HAVE_SYSCONF 1
|
||||
/* #undef HAVE_SYSCONF */
|
||||
|
||||
/* define if sysctlbyname() is available */
|
||||
#define HAVE_SYSCTLBYNAME 1
|
||||
@ -129,10 +129,10 @@ int sigwait(const unsigned int *set, int *sig);
|
||||
#define PATH_RANDOMDEV "/dev/random"
|
||||
|
||||
/* define if pthread_attr_getstacksize() is available */
|
||||
#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
|
||||
/* #undef HAVE_PTHREAD_ATTR_GETSTACKSIZE */
|
||||
|
||||
/* define if pthread_attr_setstacksize() is available */
|
||||
#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
|
||||
/* #undef HAVE_PTHREAD_ATTR_SETSTACKSIZE */
|
||||
|
||||
/* define if you have strerror in the C library. */
|
||||
#define HAVE_STRERROR 1
|
||||
@ -149,6 +149,9 @@ int sigwait(const unsigned int *set, int *sig);
|
||||
/* Define if threads need PTHREAD_SCOPE_SYSTEM */
|
||||
/* #undef NEED_PTHREAD_SCOPE_SYSTEM */
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
/* #undef HAVE_DLFCN_H */
|
||||
|
||||
/* Define to 1 if you have the <fcntl.h> header file. */
|
||||
#define HAVE_FCNTL_H 1
|
||||
|
||||
@ -165,7 +168,7 @@ int sigwait(const unsigned int *set, int *sig);
|
||||
/* #undef HAVE_LIBNSL */
|
||||
|
||||
/* Define to 1 if you have the `pthread' library (-lpthread). */
|
||||
#define HAVE_LIBPTHREAD 1
|
||||
/* #undef HAVE_LIBPTHREAD */
|
||||
|
||||
/* Define to 1 if you have the `scf' library (-lscf). */
|
||||
/* #undef HAVE_LIBSCF */
|
||||
@ -252,9 +255,11 @@ int sigwait(const unsigned int *set, int *sig);
|
||||
/* Define to empty if `const' does not conform to ANSI C. */
|
||||
/* #undef const */
|
||||
|
||||
/* Define as `__inline' if that's what the C compiler calls it, or to nothing
|
||||
if it is not supported. */
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
/* #undef inline */
|
||||
#endif
|
||||
|
||||
/* Define to `unsigned' if <sys/types.h> does not define. */
|
||||
/* #undef size_t */
|
||||
|
@ -74,7 +74,7 @@ LIBISCCFG= ${LIB_BIND_REL}/isccfg/libisccfg.a
|
||||
CFLAGS+= -I${BIND_DIR}/lib/isccfg/include
|
||||
LIBISC= ${LIB_BIND_REL}/isc/libisc.a
|
||||
CFLAGS+= -I${BIND_DIR}/lib/isc/unix/include \
|
||||
-I${BIND_DIR}/lib/isc/pthreads/include \
|
||||
-I${BIND_DIR}/lib/isc/nothreads/include \
|
||||
-I${BIND_DIR}/lib/isc/include \
|
||||
-I${LIB_BIND_DIR}/isc
|
||||
LIBLWRES= ${LIB_BIND_REL}/lwres/liblwres.a
|
||||
@ -95,17 +95,3 @@ BIND_LDADD= ${BIND_DPADD}
|
||||
CRYPTO_DPADD= ${LIBCRYPTO}
|
||||
CRYPTO_LDADD= -lcrypto
|
||||
.endif
|
||||
|
||||
# Link against POSIX threads library
|
||||
.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64"
|
||||
.if defined(NO_LIBC_R)
|
||||
.error "BIND requires libpthread - define NO_BIND, or undefine NO_LIBC_R"
|
||||
.endif
|
||||
.else
|
||||
.if defined(NO_LIBPTHREAD)
|
||||
.error "BIND requires libpthread - define NO_BIND, or undefine NO_LIBPTHREAD"
|
||||
.endif
|
||||
.endif
|
||||
|
||||
PTHREAD_DPADD= ${LIBPTHREAD}
|
||||
PTHREAD_LDADD= -lpthread
|
||||
|
@ -19,7 +19,7 @@ SRCS+= app.c dir.c entropy.c \
|
||||
.PATH: ${SRCDIR}/nls
|
||||
SRCS+= msgcat.c \
|
||||
|
||||
.PATH: ${SRCDIR}/pthreads
|
||||
.PATH: ${SRCDIR}/nothreads
|
||||
SRCS+= condition.c mutex.c \
|
||||
thread.c
|
||||
|
||||
@ -35,7 +35,7 @@ SRCS+= inet_pton.c \
|
||||
serial.c sha1.c sockaddr.c string.c strtoul.c \
|
||||
symtab.c task.c taskpool.c timer.c version.c
|
||||
|
||||
CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/pthreads/include
|
||||
CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/nothreads/include
|
||||
CFLAGS+= -I${SRCDIR}/include -I${.CURDIR}
|
||||
|
||||
DPADD= ${PTHREAD_DPADD}
|
||||
@ -104,10 +104,10 @@ INCS= ${SRCDIR}/include/isc/app.h \
|
||||
${SRCDIR}/include/isc/types.h \
|
||||
${SRCDIR}/include/isc/util.h \
|
||||
${SRCDIR}/include/isc/version.h \
|
||||
${SRCDIR}/pthreads/include/isc/condition.h \
|
||||
${SRCDIR}/pthreads/include/isc/mutex.h \
|
||||
${SRCDIR}/pthreads/include/isc/once.h \
|
||||
${SRCDIR}/pthreads/include/isc/thread.h \
|
||||
${SRCDIR}/nothreads/include/isc/condition.h \
|
||||
${SRCDIR}/nothreads/include/isc/mutex.h \
|
||||
${SRCDIR}/nothreads/include/isc/once.h \
|
||||
${SRCDIR}/nothreads/include/isc/thread.h \
|
||||
${SRCDIR}/unix/include/isc/dir.h \
|
||||
${SRCDIR}/unix/include/isc/int.h \
|
||||
${SRCDIR}/unix/include/isc/keyboard.h \
|
||||
|
@ -158,7 +158,7 @@
|
||||
/*
|
||||
* Defined if we are using threads.
|
||||
*/
|
||||
#define ISC_PLATFORM_USETHREADS 1
|
||||
#undef ISC_PLATFORM_USETHREADS
|
||||
|
||||
/*
|
||||
* Defined if unistd.h does not cause fd_set to be delared.
|
||||
|
@ -14,7 +14,7 @@ SRCS+= dig.c dighost.c
|
||||
|
||||
CFLAGS+= -I${SRCDIR}/include
|
||||
|
||||
DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD}
|
||||
LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD}
|
||||
DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD}
|
||||
LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD}
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -14,7 +14,7 @@ SRCS+= dighost.c host.c
|
||||
|
||||
CFLAGS+= -I${SRCDIR}/include
|
||||
|
||||
DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD}
|
||||
LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD}
|
||||
DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD}
|
||||
LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD}
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -14,7 +14,7 @@ SRCS+= dighost.c nslookup.c
|
||||
|
||||
CFLAGS+= -I${SRCDIR}/include
|
||||
|
||||
DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD}
|
||||
LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD}
|
||||
DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD}
|
||||
LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD}
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -14,8 +14,8 @@ SRCS+= nsupdate.c
|
||||
|
||||
CFLAGS+= -I${SRCDIR}/include
|
||||
|
||||
DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD}
|
||||
LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD}
|
||||
DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD}
|
||||
LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD}
|
||||
|
||||
MAN= nsupdate.8
|
||||
|
||||
|
@ -14,8 +14,8 @@ SRCS+= dnssec-keygen.c dnssectool.c
|
||||
|
||||
CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/include
|
||||
|
||||
DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD}
|
||||
LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD}
|
||||
DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD}
|
||||
LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD}
|
||||
|
||||
MAN= dnssec-keygen.8
|
||||
|
||||
|
@ -14,8 +14,8 @@ SRCS+= dnssec-signzone.c dnssectool.c
|
||||
|
||||
CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/include
|
||||
|
||||
DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD}
|
||||
LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD}
|
||||
DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD}
|
||||
LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD}
|
||||
|
||||
MAN= dnssec-signzone.8
|
||||
|
||||
|
@ -14,8 +14,8 @@ SRCS+= named-checkconf.c check-tool.c
|
||||
|
||||
CFLAGS+= -I${LIB_BIND_DIR}
|
||||
|
||||
DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD}
|
||||
LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD}
|
||||
DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD}
|
||||
LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD}
|
||||
|
||||
MAN= named-checkconf.8
|
||||
|
||||
|
@ -14,8 +14,8 @@ SRCS+= named-checkzone.c check-tool.c
|
||||
|
||||
CFLAGS+= -I${LIB_BIND_DIR}
|
||||
|
||||
DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD}
|
||||
LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD}
|
||||
DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD}
|
||||
LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD}
|
||||
|
||||
MAN= named-checkzone.8
|
||||
|
||||
|
@ -24,8 +24,8 @@ SRCS+= aclconf.c builtin.c client.c config.c control.c \
|
||||
|
||||
CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/include -I${LIB_BIND_DIR}
|
||||
|
||||
DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD}
|
||||
LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD}
|
||||
DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD}
|
||||
LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD}
|
||||
|
||||
MAN= named.8 lwresd.8 named.conf.5
|
||||
|
||||
|
@ -17,8 +17,8 @@ SRCS+= rndc-confgen.c util.c
|
||||
|
||||
CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/include -I${LIB_BIND_DIR}
|
||||
|
||||
DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD}
|
||||
LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD}
|
||||
DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD}
|
||||
LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD}
|
||||
|
||||
MAN= rndc-confgen.8
|
||||
|
||||
|
@ -17,8 +17,8 @@ SRCS+= rndc.c util.c
|
||||
|
||||
CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/include -I${LIB_BIND_DIR}
|
||||
|
||||
DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD}
|
||||
LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD}
|
||||
DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD}
|
||||
LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD}
|
||||
|
||||
MAN= rndc.8 rndc.conf.5
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user