Fix bind 9.4.3_p2 cross-compilation

Beber beber at meleeweb.net
Fri Apr 17 20:28:01 UTC 2009


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bind-tools-BJA-epoll-AC_TRY_RUN-cross.diff
Type: text/x-diff
Size: 753 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/bind-workers/attachments/20090417/371b97b7/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bind-tools-BJA-gen-HOSTCC.diff
Type: text/x-diff
Size: 410 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/bind-workers/attachments/20090417/371b97b7/attachment-0001.bin>


More information about the bind-workers mailing list