On 4 dic, 19:43, Mark Andrews <[EMAIL PROTECTED]> wrote: > In message <[EMAIL PROTECTED]>, > > > > pollex writes: > > On 4 dic, 10:59, Mark Andrews <[EMAIL PROTECTED]> wrote: > > > =A0 =A0 =A0 =A0 --enable-threads=3Dyes > > > > In message <[EMAIL PROTECTED] > > com>, > > > > pollex writes: > > > > On 3 dic, 21:08, Mark Andrews <[EMAIL PROTECTED]> wrote: > > > > > In message <[EMAIL PROTECTED] > > ups.=3D > > > > com>, > > > > > > pollex writes: > > > > > > Hi Jinmei I have followed your advice and I have installed and > > > > > > compiled the Bind 9.3.6 with the following command: > > > > > > STD_CDEFINES=3D3D"-ISC_SOCKET_FDSETSIZE=3D3D4096" ./configure --pre= > > fix=3D3D/u=3D > > > > sr/ > > > > > > local/bind9.3.6 --enable-threads > > > > > > But now I have the following issue, I can't start bind with multi > > > > > > threading... > > > > > > I have in the init script the lines: > > > > > > OPTIONS=3D3D"-u bind -n 8 -t /var/lib/named -c /etc/bind/named.conf" > > > > > > and in the start part: > > > > > > mount --bind /proc/ /var/lib/named/proc/ -o ro (This is needed beca= > > use > > > > > > bin runs in jail) > > > > > > > Any idea? (With the previous version this works ok) > > > > > > =3DA0 =3DA0 =3DA0 =3DA0 Log messages would be useful. > > > > > > =3DA0 =3DA0 =3DA0 =3DA0 What does the following report? > > > > > =3DA0 =3DA0 =3DA0 =3DA0 "named -g -u bind -n 8 -t /var/lib/named -c /= > > etc/bind/nam=3D > > > > ed.conf" > > > > > > > Thanks for all > > > > > > > _______________________________________________ > > > > > > bind-users mailing list > > > > > > [EMAIL PROTECTED] > > > > > >https://lists.isc.org/mailman/listinfo/bind-users > > > > > > -- > > > > > Mark Andrews, ISC > > > > > 1 Seymour St., Dundas Valley, NSW 2117, Australia > > > > > PHONE: +61 2 9871 4742 =3DA0 =3DA0 =3DA0 =3DA0 =3DA0 =3DA0 =3DA0 =3DA= > > 0 INTERNET: Mark_And=3D > > > > [EMAIL PROTECTED] > > > > > _______________________________________________ > > > > > bind-users mailing list > > > > > [EMAIL PROTECTED]://lists.isc.org/mailman/listinfo/bind-u= > > sers > > > > > Mark, thanks for the reply > > > > this is the report: > > > > 04-Dec-2008 09:52:54.950 starting BIND 9.3.6 -g -u bind -n 8 -t /var/ > > > > lib/named -c /etc/bind/named.conf > > > > 04-Dec-2008 09:52:54.950 using up to 4096 sockets > > > > 04-Dec-2008 09:52:54.954 loading configuration from '/etc/bind/ > > > > named.conf' > > > > 04-Dec-2008 09:52:54.956 using default UDP/IPv4 port range: [1024, > > > > 65535] > > > > 04-Dec-2008 09:52:54.956 using default UDP/IPv6 port range: [1024, > > > > 65535] > > > > 04-Dec-2008 09:52:54.958 listening on IPv4 interface lo, 127.0.0.1#53 > > > > 04-Dec-2008 09:52:54.958 could not listen on UDP socket: address in > > > > use > > > > 04-Dec-2008 09:52:54.958 creating IPv4 interface lo failed; interface > > > > > ignored > > > > 04-Dec-2008 09:52:54.958 listening on IPv4 interface eth1, > > > > ###.###.#.### #53 > > > > 04-Dec-2008 09:52:54.958 could not listen on UDP socket: address in > > > > use > > > > 04-Dec-2008 09:52:54.958 creating IPv4 interface eth1 failed; > > > > interface ignored > > > > 04-Dec-2008 09:52:54.958 not listening on any interfaces > > > > 04-Dec-2008 09:52:54.959 /etc/bind/named.conf:80: couldn't add command > > > > channel 127.0.0.1#953: address in use > > > > 04-Dec-2008 09:52:54.959 ignoring config file logging statement due to > > > > -g option > > > > 04-Dec-2008 09:52:54.960 additionally listening on IPv4 interface lo, > > > > 127.0.0.1#53 > > > > 04-Dec-2008 09:52:54.960 could not listen on UDP socket: address in > > > > use > > > > 04-Dec-2008 09:52:54.960 creating IPv4 interface lo failed; interface > > > > ignored > > > > 04-Dec-2008 09:52:54.960 additionally listening on IPv4 interface > > > > eth1, ###.###.#.### #53 > > > > 04-Dec-2008 09:52:54.960 could not listen on UDP socket: address in > > > > use > > > > 04-Dec-2008 09:52:54.960 creating IPv4 interface eth1 failed; > > > > interface ignored > > > > 04-Dec-2008 09:52:54.961 zone 0.in-addr.arpa/IN: loaded serial 1 > > > > 04-Dec-2008 09:52:54.961 zone 127.in-addr.arpa/IN: loaded serial 1 > > > > 04-Dec-2008 09:52:54.962 zone 255.in-addr.arpa/IN: loaded serial 1 > > > > 04-Dec-2008 09:52:54.962 /etc/bind/db.bind:5: class 'CH' !=3D3D zone cl= > > ass > > > > 'IN' > > > > 04-Dec-2008 09:52:54.962 zone bind/IN: loading master file /etc/bind/ > > > > db.bind: bad class > > > > 04-Dec-2008 09:52:54.962 zone localhost/IN: loaded serial 1 > > > > 04-Dec-2008 09:52:54.962 running > > > > 04-Dec-2008 09:52:56.244 shutting down > > > > 04-Dec-2008 09:52:56.245 exiting > > > > > In the other version i had a line like this > > > > found X CPUs, using X worker threads > > > > > Thanks again > > > > _______________________________________________ > > > > bind-users mailing list > > > > [EMAIL PROTECTED] > > > >https://lists.isc.org/mailman/listinfo/bind-users > > > > -- > > > Mark Andrews, ISC > > > 1 Seymour St., Dundas Valley, NSW 2117, Australia > > > PHONE: +61 2 9871 4742 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 INTERNET: Mark_And= > > [EMAIL PROTECTED] > > > _______________________________________________ > > > bind-users mailing list > > > [EMAIL PROTECTED]://lists.isc.org/mailman/listinfo/bind-users > > > Ok Mark, I can try that... > > But in the config.log I see the lines: > > checking whether to build with thread support... yes > > checking whether to build with threads... yes > > > So I think putting only --enable-threads is the same. > > Run "grep THREAD config.log" and post what it returns. > > > > > _______________________________________________ > > bind-users mailing list > > [EMAIL PROTECTED] > >https://lists.isc.org/mailman/listinfo/bind-users > > -- > Mark Andrews, ISC > 1 Seymour St., Dundas Valley, NSW 2117, Australia > PHONE: +61 2 9871 4742 INTERNET: [EMAIL PROTECTED] > _______________________________________________ > bind-users mailing list > [EMAIL PROTECTED]://lists.isc.org/mailman/listinfo/bind-users
This is the result for: grep THREAD in config.log | #define HAVE_LIBPTHREAD 1 | #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | #define HAVE_LINUXTHREADS 1 | #define HAVE_LIBPTHREAD 1 | #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | #define HAVE_LINUXTHREADS 1 | #define HAVE_LIBPTHREAD 1 | #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | #define HAVE_LINUXTHREADS 1 | #define HAVE_LIBPTHREAD 1 | #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | #define HAVE_LINUXTHREADS 1 | #define HAVE_LIBPTHREAD 1 | #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | #define HAVE_LINUXTHREADS 1 | #define HAVE_LIBPTHREAD 1 | #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | #define HAVE_LINUXTHREADS 1 | #define HAVE_LIBPTHREAD 1 | #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | #define HAVE_LINUXTHREADS 1 | #define HAVE_LIBPTHREAD 1 | #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | #define HAVE_LINUXTHREADS 1 | #define HAVE_LIBPTHREAD 1 | #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | #define HAVE_LINUXTHREADS 1 | #define HAVE_LIBPTHREAD 1 | #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | #define HAVE_LINUXTHREADS 1 | #define HAVE_LIBPTHREAD 1 | #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | #define HAVE_LINUXTHREADS 1 | #define HAVE_LIBPTHREAD 1 | #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | #define HAVE_LINUXTHREADS 1 | #define HAVE_LIBPTHREAD 1 | #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | #define HAVE_LINUXTHREADS 1 | #define HAVE_LIBPTHREAD 1 | #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | #define HAVE_LINUXTHREADS 1 | #define HAVE_LIBPTHREAD 1 | #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | #define HAVE_LINUXTHREADS 1 | #define HAVE_LIBPTHREAD 1 | #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | #define HAVE_LINUXTHREADS 1 | #define HAVE_LIBPTHREAD 1 | #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | #define HAVE_LINUXTHREADS 1 | #define HAVE_LIBPTHREAD 1 | #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | #define HAVE_LINUXTHREADS 1 ISC_PLATFORM_BRACEPTHREADONCEINIT='#undef ISC_PLATFORM_BRACEPTHREADONCEINIT' ISC_PLATFORM_USETHREADS='#define ISC_PLATFORM_USETHREADS 1' ISC_THREAD_DIR='pthreads' #define HAVE_LIBPTHREAD 1 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 #define HAVE_LINUXTHREADS 1 and grep thread in config.log ./configure --prefix=/usr/local/bind9.3.6 --enable-threads Configured with: ../src/configure -v --enable-languages=c,c+ +,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with- system-zlib --libexecdir=/usr/lib --without-included-gettext --enable- threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable- checking=release x86_64-linux-gnu configure:6498: checking whether to build with thread support configure:7005: checking for pthread_create in -lpthread configure:7040: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lpthread >&5 configure:7476: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lpthread >&5 configure:7716: checking for pthread_attr_getstacksize configure:7772: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lpthread >&5 configure:7805: checking for pthread_attr_setstacksize configure:7861: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lpthread >&5 configure:8175: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lpthread >&5 configure:8258: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lscf -lpthread >&5 configure:8355: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lpthread >&5 configure:8443: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lpthread >&5 configure:8479: checking whether to build with threads configure:8690: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lpthread >&5 configure:8773: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lsocket -lpthread >&5 configure:8844: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lnsl -lpthread >&5 configure:24727: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lnsl -lpthread >&5 configure:24786: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lnsl -lpthread >&5 configure:24988: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lnsl -lpthread >&5 configure:25042: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lnsl -lpthread >&5 configure:25106: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lnsl -lpthread >&5 configure:25173: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lnsl -lpthread >&5 configure:25233: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lnsl -lpthread >&5 configure:25959: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lnsl -lpthread >&5 configure:26046: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lnsl -lpthread >&5 configure:26133: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lnsl -lpthread >&5 configure:26224: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lnsl -lpthread >&5 configure:26408: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - linet6 -L/usr/local/v6/lib -lnsl -lpthread >&5 configure:26614: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lnsl -lpthread >&5 configure:26696: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lnsl -lpthread >&5 configure:26785: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lnsl -lpthread >&5 configure:26880: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lnsl -lpthread >&5 configure:26969: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lnsl -lpthread >&5 configure:27115: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lnsl -lpthread >&5 configure:27211: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lnsl -lpthread >&5 configure:27292: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lnsl -lpthread >&5 configure:27387: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lnsl -lpthread >&5 configure:27627: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lnsl -lpthread >&5 configure:27865: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lnsl -lpthread >&5 configure:28789: gcc -o conftest -g -O2 -D_GNU_SOURCE conftest.c - lnsl -lpthread >&5 config.status:857: creating lib/isc/pthreads/Makefile config.status:857: creating lib/isc/pthreads/include/Makefile config.status:857: creating lib/isc/pthreads/include/isc/Makefile configure:31062: running /bin/sh ./configure '--prefix=/usr/local/ bind9.3.6' '--enable-threads' --cache-file=/dev/null --srcdir=. ac_cv_func_pthread_attr_getstacksize=yes ac_cv_func_pthread_attr_setstacksize=yes ac_cv_lib_pthread_pthread_create=yes BUILD_LIBS='-lnsl -lpthread ' ISC_THREAD_DIR='pthreads' LIBS='-lnsl -lpthread ' I really don't see anything wrong... _______________________________________________ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users