Building BIND 9.16.4 encounters build error for mips type
Summary
This may not be a bug, but I don't know where else to go to get help.
I am attempting to build BIND 9.16.4 for two target types, linux_x86-64 and linux_mips. Compilation of the source takes place on linux_x86 machine such that no cross-compiling is needed for the linux_x86-64 target, but it is needed for the linux_mips target.
For the build system type of x86_64-unknown-linux-gnu, and host system type of x86_64-unknown-linux-gnu the build is successful.
But for the build system of type i686-pc-linux-gnu and host system type of mips-wrs-linux-gnu, the build fails:
uv-compat.h:24: error: static declaration of 'uv_handle_get_data' follows non-static declaration /home_nbu/wcl/970762/obj/linux_mips/sde/tpp/STOW/linux_mips/LU3Plibuv/opt/LU3P/include/uv.h:448: error: previous declaration of 'uv_handle_get_data' was here
The libuv version I am using is 1.34.0.
In addition to the compilation error, I ran into another problem with the linking phase of the build. I edited the libuv file ev.h from as an experiment:
'UV_EXTERN void* uv_handle_get_data(const uv_handle_t* handle);to:
UV_EXTERN static void* uv_handle_get_data(const uv_handle_t* handle);`
The result:
libuv.so: undefined reference to epoll_create1' ../dns/.libs/libdns.so: undefined reference to
__sync_fetch_and_add_1'
./dns/.libs/libdns.so: undefined reference to `__sync_val_compare_and_swap_1'
Again, the build for the linux_x86-64 type was successful.
BIND version used
9.16.4
Steps to reproduce
Cross compile with target = mips on build machine linux_x86 using BIND 9.16.4 with libuv 1.34.0
What is the current bug behavior?
Build Failure as reported in the summary.
What is the expected correct behavior?
Build to be successful just as it is for linux_x86-64 target.
Relevant configuration files
Not sure what I can provide here. Please advise and I will supply the information requested.
Relevant logs and/or screenshots
Not sure what I can provide here. Please advise and I will supply the information requested.