Maintained by: NLnet Labs

unbound binaries execution issue

SIMON BABY
Tue Mar 6 06:54:53 CET 2018


Hello Paul,

Thank for looking into my issue. Yes, Am  cross compiling for the target.
Below is my configuration logs.  I am implementing the client resolver
application with the library. So if I cannot run the binary in my host
machine, how can I generate the trust-anchor key and pass to the
application. May be I can execute unbound-anchor on the target  and
generate the key, and then put back to the application on the host machine?



+
/home/sbaby/workspace/wqar/tmp/work/mips-mv-linux/libunbound-1.6.8-r0/libunbound/unbound-1.6.8/configure
--build=i686-linux --host=mips64-mv-linux --target=mips64-mv-linux
--prefix=/usr --exec_prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--libexecdir=/usr/libexec --datadir=/usr/share --sysconfdir=/etc
--sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib32
--includedir=/usr/include --oldincludedir=/usr/include
--infodir=/usr/share/info --mandir=/usr/share/man --build=i686-linux
--host=mips64-mv-linux --target=mips64-mv-linux
checking for mips64-mv-linux-gcc... mips-montavista-linux-gnu-gcc
-march=octeon  -msoft-float   -mabi=n32
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mips-montavista-linux-gnu-gcc -march=octeon  -msoft-float
 -mabi=n32 accepts -g... yes
checking for mips-montavista-linux-gnu-gcc -march=octeon  -msoft-float
 -mabi=n32 option to accept ISO C89... none needed
checking how to run the C preprocessor... mips-montavista-linux-gnu-gcc -E
checking for grep that handles long lines and -e...
/home/sbaby/workspace/wqar/tmp/staging/i686-linux/usr/bin/grep
checking for egrep...
/home/sbaby/workspace/wqar/tmp/staging/i686-linux/usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for an ANSI C-conforming const... yes
checking for mips64-mv-linux-gcc... (cached) mips-montavista-linux-gnu-gcc
-march=octeon  -msoft-float   -mabi=n32
checking whether we are using the GNU C compiler... (cached) yes
checking whether mips-montavista-linux-gnu-gcc -march=octeon  -msoft-float
 -mabi=n32 accepts -g... (cached) yes
checking for mips-montavista-linux-gnu-gcc -march=octeon  -msoft-float
 -mabi=n32 option to accept ISO C89... (cached) none needed
checking mips-montavista-linux-gnu-gcc -march=octeon  -msoft-float
 -mabi=n32 dependency flag... -MM
checking whether mips-montavista-linux-gnu-gcc -march=octeon  -msoft-float
 -mabi=n32 supports -Werror... yes
checking whether mips-montavista-linux-gnu-gcc -march=octeon  -msoft-float
 -mabi=n32 supports -Wall... yes
checking whether mips-montavista-linux-gnu-gcc -march=octeon  -msoft-float
 -mabi=n32 supports -std=c99... yes
checking whether mips-montavista-linux-gnu-gcc -march=octeon  -msoft-float
 -mabi=n32 supports -xc99... no
checking for getopt.h... yes
checking for time.h... yes
checking whether we need -std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE
-D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
-D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for
mips-montavista-linux-gnu-gcc -march=octeon  -msoft-float   -mabi=n32... no
checking whether we need -std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE
-D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
-D_ALL_SOURCE as a flag for mips-montavista-linux-gnu-gcc -march=octeon
-msoft-float   -mabi=n32... no
checking whether we need -std=c99 as a flag for
mips-montavista-linux-gnu-gcc -march=octeon  -msoft-float   -mabi=n32... no
checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for
mips-montavista-linux-gnu-gcc -march=octeon  -msoft-float   -mabi=n32... no
checking whether we need -D_GNU_SOURCE as a flag for
mips-montavista-linux-gnu-gcc -march=octeon  -msoft-float   -mabi=n32... yes
checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for
mips-montavista-linux-gnu-gcc -march=octeon  -msoft-float   -mabi=n32... no
checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for
mips-montavista-linux-gnu-gcc -march=octeon  -msoft-float   -mabi=n32... no
checking whether we need -D__EXTENSIONS__ as a flag for
mips-montavista-linux-gnu-gcc -march=octeon  -msoft-float   -mabi=n32... no
checking if mips-montavista-linux-gnu-gcc -march=octeon  -msoft-float
 -mabi=n32 supports -flto... no
checking for inline... inline
checking whether the C compiler (mips-montavista-linux-gnu-gcc
-march=octeon  -msoft-float   -mabi=n32) accepts the "format" attribute...
yes
checking whether the C compiler (mips-montavista-linux-gnu-gcc
-march=octeon  -msoft-float   -mabi=n32) accepts the "unused" attribute...
yes
checking whether the C compiler (mips-montavista-linux-gnu-gcc
-march=octeon  -msoft-float   -mabi=n32) accepts the "weak" attribute... yes
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for yylex_destroy... yes
checking for bison... bison -y
checking for doxygen... no
checking for mips64-mv-linux-strip... mips-montavista-linux-gnu-strip
checking build system type... i686-pc-linux-gnu
checking host system type... mips64-mv-linux-gnu
checking for mips64-mv-linux-ar... no
checking for ar... /usr/bin/ar
configure: WARNING: using cross tools not prefixed with host triplet
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep...
/home/sbaby/workspace/wqar/tmp/staging/i686-linux/usr/bin/grep -F
checking for ld used by mips-montavista-linux-gnu-gcc -march=octeon
-msoft-float   -mabi=n32... mips-montavista-linux-gnu-ld
checking if the linker (mips-montavista-linux-gnu-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)...
mips-montavista-linux-gnu-nm
checking the name lister (mips-montavista-linux-gnu-nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert i686-pc-linux-gnu file names to mips64-mv-linux-gnu
format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format...
func_convert_file_noop
checking for mips-montavista-linux-gnu-ld option to reload object files...
-r
checking for mips64-mv-linux-objdump... mips-montavista-linux-gnu-objdump
checking how to recognize dependent libraries... pass_all
checking for mips64-mv-linux-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for mips64-mv-linux-ar... /usr/bin/ar
checking for archiver @FILE support... @
checking for mips64-mv-linux-strip... (cached)
mips-montavista-linux-gnu-strip
checking for mips64-mv-linux-ranlib... mips-montavista-linux-gnu-ranlib
checking for gawk... gawk
checking command to parse mips-montavista-linux-gnu-nm output from
mips-montavista-linux-gnu-gcc -march=octeon  -msoft-float   -mabi=n32
object... ok
checking for sysroot... no
checking for a working dd...
/home/sbaby/workspace/wqar/tmp/staging/i686-linux/usr/bin/dd
checking how to truncate binary pipes...
/home/sbaby/workspace/wqar/tmp/staging/i686-linux/usr/bin/dd bs=4096 count=1
checking for mips64-mv-linux-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if mips-montavista-linux-gnu-gcc -march=octeon  -msoft-float
 -mabi=n32 supports -fno-rtti -fno-exceptions... no
checking for mips-montavista-linux-gnu-gcc -march=octeon  -msoft-float
 -mabi=n32 option to produce PIC... -fPIC -DPIC
checking if mips-montavista-linux-gnu-gcc -march=octeon  -msoft-float
 -mabi=n32 PIC flag -fPIC -DPIC works... yes
checking if mips-montavista-linux-gnu-gcc -march=octeon  -msoft-float
 -mabi=n32 static flag -static works... yes
checking if mips-montavista-linux-gnu-gcc -march=octeon  -msoft-float
 -mabi=n32 supports -c -o file.o... yes
checking if mips-montavista-linux-gnu-gcc -march=octeon  -msoft-float
 -mabi=n32 supports -c -o file.o... (cached) yes
checking whether the mips-montavista-linux-gnu-gcc -march=octeon
-msoft-float   -mabi=n32 linker (mips-montavista-linux-gnu-ld -m
elf32btsmipn32) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for stdarg.h... yes
checking for stdbool.h... yes
checking for netinet/in.h... yes
checking for netinet/tcp.h... yes
checking for sys/param.h... yes
checking for sys/socket.h... yes
checking for sys/un.h... yes
checking for sys/uio.h... yes
checking for sys/resource.h... yes
checking for arpa/inet.h... yes
checking for syslog.h... yes
checking for netdb.h... yes
checking for sys/wait.h... yes
checking for pwd.h... yes
checking for glob.h... yes
checking for grp.h... yes
checking for login_cap.h... no
checking for winsock2.h... no
checking for ws2tcpip.h... no
checking for endian.h... yes
checking for sys/ipc.h... yes
checking for sys/shm.h... yes
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uid_t in sys/types.h... yes
checking for pid_t... yes
checking for off_t... yes
checking for u_char... yes
checking for rlim_t... yes
checking for socklen_t... yes
checking for in_addr_t... yes
checking for in_port_t... yes
checking if memcmp compares unsigned... cross-compile no
checking size of time_t... 4
checking for library containing inet_pton... none required
checking for library containing socket... none required
checking for unistd.h... (cached) yes
checking for working chown... no
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... cross
configure: WARNING: result yes guessed because of cross compilation
checking for working vfork... (cached) yes
checking return type of signal handlers... void
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for
mips-montavista-linux-gnu-gcc -march=octeon  -msoft-float   -mabi=n32... no
checking if nonblocking sockets work... crosscompile(yes)
checking whether mkdir has one arg... no
checking for strptime... yes
checking whether strptime works... maybe
checking for GNU libc compatible malloc... no (crosscompile)
checking if compiler needs -Werror to reject unknown flags... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking for pthread_spinlock_t... yes
checking for pthread_rwlock_t... yes
checking if -pthread unused during linking... no
checking for SSL... found in /usr/local/ssl
checking for HMAC_Update in -lcrypto... yes
checking for openssl/ssl.h... yes
checking for openssl/err.h... yes
checking for openssl/rand.h... yes
checking if libssl needs libdl... no



                                                      119,1         25%


Rgds
Simon




On Monday, March 5, 2018, Paul Wouters <paul at nohats.ca> wrote:

> On Mon, 5 Mar 2018, SIMON BABY via Unbound-users wrote:
>
>  I get the below error while trying to launch unbound-host  or
>> unbound-anchor or any unbound executable in my build env. Can someone help
>> to solve this issue?
>>
>> sbaby at ubuntu:~/workspace/wqar/tmp/work/mips-mv-linux/libunbo
>> und-1.6.8-r0/libunbound/unbound-1.6.8$ ./unbound-host
>>
>
> is "sbaby" a mips machines too? It looks like you are perhaps
> cross-compiling, so in that case the binary cannot be tested
> on the build host.
>
> Or maybe your "mips-mv-linux" is a cross compile using a different
> set of libraries (like a different c library) ?
>
> Paul
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://unbound.nlnetlabs.nl/pipermail/unbound-users/attachments/20180305/e4fba18a/attachment-0001.html>