Re: Fix bind 9.4.3_p2 cross-compilation
In message 009701c9c255$f4615d00$95dbe...@corp.noxiane.net, corp master write s: Bonjour, Je ne pense pas que nous ayons besoin de faire partie de cette liste. Pourriez-vous nous desinscrire? Merci par avance. Cordialement/Regards, DE The message you responded to was posted to multiple lists. Please use the following page to unsubscribe from the desired list. https://lists.isc.org/mailman/listinfo Mark -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: mark_andr...@isc.org ___ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: Fix bind 9.4.3_p2 cross-compilation
dimanche 19 avril da 10:13:31, « Mark Andrews » a skriv : In message 20090418113920.2acbb...@jojo.scabb, Beber writes: exporting enable_epoll=3D make bind-tools build, but this bypass epoll test running with configure with --enable-epoll doesn't change anything, it still fail on : ./configure --prefix=3D/usr --build=3Dx86_64-pc-linux-gnu --host=3Di586-geo= de-linux-uclibc --mandir=3D/usr/share/man --infodir=3D/usr/share/info --dat= adir=3D/usr/share --sysconfdir=3D/etc --localstatedir=3D/var/lib --enable-i= pv6 --with-iconv --enable-epoll checking for kqueue... no checking epoll support... configure: error: cannot run test program while c= ross compiling See `config.log' for more details. --=20 Beber This is in the next maintenance release, yet to be released. It's also in 9.6.1. Great, thanks for your return. Bertrand -- Beber signature.asc Description: PGP signature ___ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: Fix bind 9.4.3_p2 cross-compilation
Hi, samedi 18 avril da 14:17:03, « Mark Andrews » a skriv : In message c3946463c0a84468271795bf5b076...@localhost, Beber writes: I forgot to include patch for Makefile.in. here is it. Thanks, Bertrand Jacquin Just specify --enable-epoll. The only sensible x-compilation default would be no. Also please read README. I should be able to define env variable enable_epoll=yes even if I'm cross-compilating. And yes, it's also sensible to yes. exporting enable_epoll= make bind-tools build, but this bypass epoll test running with configure with --enable-epoll doesn't change anything, it still fail on : ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=i586-geode-linux-uclibc --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-ipv6 --with-iconv --enable-epoll checking for kqueue... no checking epoll support... configure: error: cannot run test program while cross compiling See `config.log' for more details. -- Beber signature.asc Description: PGP signature ___ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: Fix bind 9.4.3_p2 cross-compilation
In message 20090418113920.2acbb...@jojo.scabb, Beber writes: exporting enable_epoll=3D make bind-tools build, but this bypass epoll test running with configure with --enable-epoll doesn't change anything, it still fail on : ./configure --prefix=3D/usr --build=3Dx86_64-pc-linux-gnu --host=3Di586-geo= de-linux-uclibc --mandir=3D/usr/share/man --infodir=3D/usr/share/info --dat= adir=3D/usr/share --sysconfdir=3D/etc --localstatedir=3D/var/lib --enable-i= pv6 --with-iconv --enable-epoll checking for kqueue... no checking epoll support... configure: error: cannot run test program while c= ross compiling See `config.log' for more details. --=20 Beber This is in the next maintenance release, yet to be released. It's also in 9.6.1. 2521. [bug] Improve epoll cross compilation support. [RT #19047] Index: configure.in === RCS file: /proj/cvs/prod/bind9/configure.in,v retrieving revision 1.355.18.85 retrieving revision 1.355.18.94 diff -u -r1.355.18.85 -r1.355.18.94 --- configure.in21 Oct 2008 02:47:02 - 1.355.18.85 +++ configure.in15 Feb 2009 22:57:42 - 1.355.18.94 @@ -355,10 +355,10 @@ # so we need to try running the code, not just test its existence. # AC_ARG_ENABLE(epoll, - [ --enable-epoll use Linux epoll when available [[default=yes]]], - want_epoll=$enableval, want_epoll=yes) +[ --enable-epoll use Linux epoll when available [[default=auto]]], + want_epoll=$enableval, want_epoll=auto) case $want_epoll in -yes) +auto) AC_MSG_CHECKING(epoll support) AC_TRY_RUN([ #include sys/epoll.h @@ -373,6 +373,9 @@ [AC_MSG_RESULT(no) ISC_PLATFORM_HAVEEPOLL=#undef ISC_PLATFORM_HAVEEPOLL]) ;; +yes) + ISC_PLATFORM_HAVEEPOLL=#define ISC_PLATFORM_HAVEEPOLL 1 + ;; *) ISC_PLATFORM_HAVEEPOLL=#undef ISC_PLATFORM_HAVEEPOLL ;; -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: mark_andr...@isc.org ___ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Fix bind 9.4.3_p2 cross-compilation
Hi, bind-tools default configure is wrong when searching for epoll when cross-compiling. So bind-tools-BJA-epoll-AC_TRY_RUN-cross.diff correct that to not do a non-conditional fail if cross-compiling : checking epoll support... configure: error: cannot run test program while cross compiling See `config.log' for more details. Then gen is compiled for many purposes in build. This binary is build with destination toolchain, do can't be executed on host. bind-tools-BJA-gen-HOSTCC.diff correct that (host is x86_64-pc-linux-gnu, while dest is i586-geode-linux-uclibc) : i586-geode-linux-uclibc-gcc -I/usr/i586-geode-linux-uclibc/tmp/portage/net-dns/bind-tools-9.4.3_p2/work/bind-9.4.3-P2 -I. -I/usr/i586-geode-linux-uclibc/tmp/portage/net-dns/bind-tools-9.4.3_p2/work/bind-9.4.3-P2/lib/dns/include -I../../lib/dns/include -I/usr/i586-geode-linux-uclibc/tmp/portage/net-dns/bind-tools-9.4.3_p2/work/bind-9.4.3-P2/lib/isc/include -I../../lib/isc -I../../lib/isc/include -I../../lib/isc/unix/include -I../../lib/isc/nothreads/include -I../../lib/isc/x86_32/include -I/usr/i586-geode-linux-uclibc/tmp/portage/net-dns/bind-tools-9.4.3_p2/work/bind-9.4.3-P2/lib/isccc/include -I../../lib/isccc/include-D_GNU_SOURCE -Os -pipe -march=k6-2 -fomit-frame-pointer -I/usr/i586-geode-linux-uclibc/usr/include/ -I/usr/i586-geode-linux-uclibc/include/ -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing -c symtab.c i586-geode-linux-uclibc-gcc -I/usr/i586-geode-linux-uclibc/tmp/portage/net-dns/bind-tools-9.4.3_p2/work/bind-9.4.3-P2 -I. -I/usr/i586-geode-linux-uclibc/tmp/portage/net-dns/bind-tools-9.4.3_p2/work/bind-9.4.3-P2/lib/dns/include -I../../lib/dns/include -I/usr/i586-geode-linux-uclibc/tmp/portage/net-dns/bind-tools-9.4.3_p2/work/bind-9.4.3-P2/lib/isc/include -I../../lib/isc -I../../lib/isc/include -I../../lib/isc/unix/include -I../../lib/isc/nothreads/include -I../../lib/isc/x86_32/include -I/usr/i586-geode-linux-uclibc/tmp/portage/net-dns/bind-tools-9.4.3_p2/work/bind-9.4.3-P2/lib/isccc/include -I../../lib/isccc/include-D_GNU_SOURCE -Os -pipe -march=k6-2 -fomit-frame-pointer -I/usr/i586-geode-linux-uclibc/usr/include/ -I/usr/i586-geode-linux-uclibc/include/ -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing \ -DVERSION=\9.4.3-P2\ \ -DLIBINTERFACE=30 \ -DLIBREVISION=1 \ -DLIBAGE=0 \ -c ./version.c /usr/bin/ar cruv libisccc.a alist.o base64.o cc.o ccmsg.o lib.o result.o sexpr.o symtab.o version.o a - alist.o a - base64.o a - cc.o a - ccmsg.o a - lib.o a - result.o a - sexpr.o a - symtab.o a - version.o i586-geode-linux-uclibc-ranlib libisccc.a touch timestamp make[1]: Leaving directory `/usr/i586-geode-linux-uclibc/tmp/portage/net-dns/bind-tools-9.4.3_p2/work/bind-9.4.3-P2/lib/isccc' making all in /usr/i586-geode-linux-uclibc/tmp/portage/net-dns/bind-tools-9.4.3_p2/work/bind-9.4.3-P2/lib/dns make[1]: Entering directory `/usr/i586-geode-linux-uclibc/tmp/portage/net-dns/bind-tools-9.4.3_p2/work/bind-9.4.3-P2/lib/dns' i586-geode-linux-uclibc-gcc -I../../lib/isc/include \ -o gen ./gen.c ./gen -s . -t include/dns/enumtype.h /bin/sh: ./gen: No such file or directory make[1]: *** [include/dns/enumtype.h] Error 127 Thanks Bertrand Jacquin -- Beber--- configure.ori 2009-04-17 19:32:30.0 +0200 +++ configure 2009-04-17 19:35:27.0 +0200 @@ -5415,11 +5415,9 @@ { echo $as_me:$LINENO: checking epoll support 5 echo $ECHO_N checking epoll support... $ECHO_C 6; } if test $cross_compiling = yes; then - { { echo $as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details. 5 -echo $as_me: error: cannot run test program while cross compiling -See \`config.log' for more details. 2;} - { (exit 1); exit 1; }; } + { echo $as_me:$LINENO: result: yes 5 + echo yes 6; } + ISC_PLATFORM_HAVEEPOLL=#define ISC_PLATFORM_HAVEEPOLL 1 else cat conftest.$ac_ext _ACEOF /* confdefs.h. */ --- lib/dns/Makefile.in.ori 2009-04-17 19:46:39.0 +0200 +++ lib/dns/Makefile.in 2006-01-06 01:01:43.0 +0100 @@ -158,7 +158,7 @@ ./gen -s ${srcdir} code.h gen: gen.c - ${BUILD_CC} ${BUILD_CFLAGS} -I${top_srcdir}/lib/isc/include \ + ${HOSTCC} ${BUILD_CFLAGS} -I${top_srcdir}/lib/isc/include \ ${BUILD_CPPFLAGS} ${BUILD_LDFLAGS} -o $@ ${srcdir}/gen.c ${BUILD_LIBS} rbtdb...@o@: rbtdb.c ___ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: Fix bind 9.4.3_p2 cross-compilation
I forgot to include patch for Makefile.in. here is it. Thanks, Bertrand Jacquin On Fri, 17 Apr 2009 22:28:01 +0200, Beber be...@meleeweb.net wrote: Hi, bind-tools default configure is wrong when searching for epoll when cross-compiling. So bind-tools-BJA-epoll-AC_TRY_RUN-cross.diff correct that to not do a non-conditional fail if cross-compiling : checking epoll support... configure: error: cannot run test program while cross compiling See `config.log' for more details. Then gen is compiled for many purposes in build. This binary is build with destination toolchain, do can't be executed on host. bind-tools-BJA-gen-HOSTCC.diff correct that (host is x86_64-pc-linux-gnu, while dest is i586-geode-linux-uclibc) : i586-geode-linux-uclibc-gcc -I/usr/i586-geode-linux-uclibc/tmp/portage/net-dns/bind-tools-9.4.3_p2/work/bind-9.4.3-P2 -I. -I/usr/i586-geode-linux-uclibc/tmp/portage/net-dns/bind-tools-9.4.3_p2/work/bind-9.4.3-P2/lib/dns/include -I../../lib/dns/include -I/usr/i586-geode-linux-uclibc/tmp/portage/net-dns/bind-tools-9.4.3_p2/work/bind-9.4.3-P2/lib/isc/include -I../../lib/isc -I../../lib/isc/include -I../../lib/isc/unix/include -I../../lib/isc/nothreads/include -I../../lib/isc/x86_32/include -I/usr/i586-geode-linux-uclibc/tmp/portage/net-dns/bind-tools-9.4.3_p2/work/bind-9.4.3-P2/lib/isccc/include -I../../lib/isccc/include-D_GNU_SOURCE -Os -pipe -march=k6-2 -fomit-frame-pointer -I/usr/i586-geode-linux-uclibc/usr/include/ -I/usr/i586-geode-linux-uclibc/include/ -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing -c symtab.c i586-geode-linux-uclibc-gcc -I/usr/i586-geode-linux-uclibc/tmp/portage/net-dns/bind-tools-9.4.3_p2/work/bind-9.4.3-P2 -I. -I/usr/i586-geode-linux-uclibc/tmp/portage/net-dns/bind-tools-9.4.3_p2/work/bind-9.4.3-P2/lib/dns/include -I../../lib/dns/include -I/usr/i586-geode-linux-uclibc/tmp/portage/net-dns/bind-tools-9.4.3_p2/work/bind-9.4.3-P2/lib/isc/include -I../../lib/isc -I../../lib/isc/include -I../../lib/isc/unix/include -I../../lib/isc/nothreads/include -I../../lib/isc/x86_32/include -I/usr/i586-geode-linux-uclibc/tmp/portage/net-dns/bind-tools-9.4.3_p2/work/bind-9.4.3-P2/lib/isccc/include -I../../lib/isccc/include-D_GNU_SOURCE -Os -pipe -march=k6-2 -fomit-frame-pointer -I/usr/i586-geode-linux-uclibc/usr/include/ -I/usr/i586-geode-linux-uclibc/include/ -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing \ -DVERSION=\9.4.3-P2\ \ -DLIBINTERFACE=30 \ -DLIBREVISION=1 \ -DLIBAGE=0 \ -c ./version.c /usr/bin/ar cruv libisccc.a alist.o base64.o cc.o ccmsg.o lib.o result.o sexpr.o symtab.o version.o a - alist.o a - base64.o a - cc.o a - ccmsg.o a - lib.o a - result.o a - sexpr.o a - symtab.o a - version.o i586-geode-linux-uclibc-ranlib libisccc.a touch timestamp make[1]: Leaving directory `/usr/i586-geode-linux-uclibc/tmp/portage/net-dns/bind-tools-9.4.3_p2/work/bind-9.4.3-P2/lib/isccc' making all in /usr/i586-geode-linux-uclibc/tmp/portage/net-dns/bind-tools-9.4.3_p2/work/bind-9.4.3-P2/lib/dns make[1]: Entering directory `/usr/i586-geode-linux-uclibc/tmp/portage/net-dns/bind-tools-9.4.3_p2/work/bind-9.4.3-P2/lib/dns' i586-geode-linux-uclibc-gcc -I../../lib/isc/include \ -o gen ./gen.c ./gen -s . -t include/dns/enumtype.h /bin/sh: ./gen: No such file or directory make[1]: *** [include/dns/enumtype.h] Error 127 Thanks Bertrand Jacquin -- Beber--- configure.in.ori 2009-04-17 22:32:40.0 +0200 +++ configure.in 2009-04-17 22:33:08.0 +0200 @@ -371,7 +371,9 @@ [AC_MSG_RESULT(yes) ISC_PLATFORM_HAVEEPOLL=#define ISC_PLATFORM_HAVEEPOLL 1], [AC_MSG_RESULT(no) - ISC_PLATFORM_HAVEEPOLL=#undef ISC_PLATFORM_HAVEEPOLL]) + ISC_PLATFORM_HAVEEPOLL=#undef ISC_PLATFORM_HAVEEPOLL], + [AC_MSG_RESULT(yes) + ISC_PLATFORM_HAVEEPOLL=#define ISC_PLATFORM_HAVEEPOLL 1]) ;; *) ISC_PLATFORM_HAVEEPOLL=#undef ISC_PLATFORM_HAVEEPOLL ___ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users