Compile bluez5.51 "realtime clock support is required"

Dear:

I am trying to compile bluez 5.51,but the following error appears.

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for aarch64-openwrt-linux-strip... aarch64-openwrt-linux-gnu-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking pkg-config is at least version 0.9.0... yes
checking whether make supports the include directive... yes (GNU style)
checking for aarch64-openwrt-linux-gcc... aarch64-openwrt-linux-gnu-gcc
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 aarch64-openwrt-linux-gnu-gcc accepts -g... yes
checking for aarch64-openwrt-linux-gnu-gcc option to accept ISO C89... none needed
checking whether aarch64-openwrt-linux-gnu-gcc understands -c and -o together... yes
checking dependency style of aarch64-openwrt-linux-gnu-gcc... gcc3
checking for C/C++ restrict keyword... __restrict
checking for aarch64-openwrt-linux-gcc... (cached) aarch64-openwrt-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether aarch64-openwrt-linux-gnu-gcc accepts -g... (cached) yes
checking for aarch64-openwrt-linux-gnu-gcc option to accept ISO C89... (cached) none needed
checking whether aarch64-openwrt-linux-gnu-gcc understands -c and -o together... (cached) yes
checking dependency style of aarch64-openwrt-linux-gnu-gcc... (cached) gcc3
checking whether aarch64-openwrt-linux-gnu-gcc accepts -fPIE... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... aarch64-openwrt-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /home/liumingyuan/workspace/tina/out/host/bin/sed
checking for grep that handles long lines and -e... /home/liumingyuan/workspace/tina/out/host/bin/grep
checking for egrep... /home/liumingyuan/workspace/tina/out/host/bin/grep -E
checking for fgrep... /home/liumingyuan/workspace/tina/out/host/bin/grep -F
checking for ld used by aarch64-openwrt-linux-gnu-gcc... aarch64-openwrt-linux-gnu-ld
checking if the linker (aarch64-openwrt-linux-gnu-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... aarch64-openwrt-linux-gnu-nm
checking the name lister (aarch64-openwrt-linux-gnu-nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 32768
checking how to convert x86_64-pc-linux-gnu file names to aarch64-openwrt-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for aarch64-openwrt-linux-gnu-ld option to reload object files... -r
checking for aarch64-openwrt-linux-objdump... aarch64-openwrt-linux-gnu-objdump
checking how to recognize dependent libraries... pass_all
checking for aarch64-openwrt-linux-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for aarch64-openwrt-linux-ar... aarch64-openwrt-linux-gnu-ar
checking for archiver @FILE support... @
checking for aarch64-openwrt-linux-strip... (cached) aarch64-openwrt-linux-gnu-strip
checking for aarch64-openwrt-linux-ranlib... aarch64-openwrt-linux-gnu-ranlib
checking command to parse aarch64-openwrt-linux-gnu-nm output from aarch64-openwrt-linux-gnu-gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for aarch64-openwrt-linux-mt... no
checking for mt... mt
configure: WARNING: using cross tools not prefixed with host triplet
checking if mt is a manifest tool... no
checking how to run the C preprocessor... aarch64-openwrt-linux-gnu-gcc -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 for dlfcn.h... yes
checking for objdir... .libs
checking if aarch64-openwrt-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for aarch64-openwrt-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if aarch64-openwrt-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if aarch64-openwrt-linux-gnu-gcc static flag -static works... no
checking if aarch64-openwrt-linux-gnu-gcc supports -c -o file.o... yes
checking if aarch64-openwrt-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the aarch64-openwrt-linux-gnu-gcc linker (aarch64-openwrt-linux-gnu-ld) 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 whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for explicit_bzero... no
checking for signalfd... yes
checking for clock_gettime in -lrt... no
configure: error: realtime clock support is required

Has anyone encountered such a problem?

thank you.

I have solved this problem, need to add "-lpthread".

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.