cross compiling bind 9.3.1

Imre Gergely gergelyimre at gmail.com
Thu Sep 22 04:53:00 UTC 2005


hi

i want to cross compile bind 9.3.1 with uClibc, and i don't seem to have
any luck. actually i'm using buildroot, i wrote a .mk file for it, and
tried to compile it, but it stops at configure stage with the following:

checking for inet_ntop with IPv6 support... configure: error: cannot run
test program while cross compiling
See `config.log' for more details.
make: ***
[/stuff/src/gimre/src/myLinux/buildroot/build_i386/bind-9.3.1/.configured]
Error 1


the config.log doesn't say much either:

checking whether the C compiler works... yes
checking whether we are cross compiling... yes
| #define HAVE_FCNTL_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_SYSCTL_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define ISC_SOCKADDR_LEN_T socklen_t
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_OPENSSL_DSA 1
| #define PATH_RANDOMDEV "/dev/random"
| #define HAVE_FLOCKFILE 1
| #define HAVE_GETCUNLOCKED 1
| #define HAVE_LIBNSL 1
| /* end confdefs.h.  */
|
| #include <sys/types.h>
| #include <net/if6.h>
|
| int
| main ()
| {
|  struct if_laddrconf a;
|   ;
|   return 0;
| }
configure:23660: result: no
configure:23675: checking for inet_ntop with IPv6 support
configure:23679: error: cannot run test program while cross compiling
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

. . .
. . .

here is what configure options i used:

CFLAGS="-Os -pipe " \
./configure \
--target=i386-linux \
--host=i386-linux \
--build=i386-pc-linux-gnu \
--prefix=/usr \
--sysconfdir=/etc \
--disable-threads \
--with-randomdev=/dev/random \
--without-kame \
--disable-ipv6 \
--disable-linux-caps \
);

i don't want any ipv6 support for bind, i'm not using ipv6. can i
disable this test somehow, with some other parameter, short of changing
the configure script itself?

thanks



More information about the bind-users mailing list