Compile Errors, Apple Silicon (M1), BIND 9.16.13

James Brown jlbrown at bordo.com.au
Wed Mar 24 06:19:03 UTC 2021


Thanks Mark.

Copied HD from current x86 system to Apple Silicon machine.

Config.log:

configure:16164: checking for uv_handle_get_data
configure:16164: gcc -o conftest -g -O2 -pthread -I/usr/local/include    -Wl,-flat_namespace conftest.c  -Wl,-flat_namespace -L/usr/local/lib -luv -lpthread -ldl  >&5
ld: warning: ignoring file /usr/local/lib/libuv.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Undefined symbols for architecture arm64:
  "_uv_handle_get_data", referenced from:
      _main in conftest-f70421.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:16164: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "BIND"

Looks like I need to download and install libuv.

Thanks again.

James.

> On 23 Mar 2021, at 4:20 pm, Mark Andrews <marka at isc.org> wrote:
> 
> configure didn’t find uv_handle_get_data for some reason.  You will need to look at config.log to see why.
> 
>> On 23 Mar 2021, at 15:22, James Brown via bind-users <bind-users at lists.isc.org> wrote:
>> 
>> Can anyone help me get BIND 9.16.13 to work with Apple’s new M1s?
>> 
>> Compiler: gcc
>>    Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
>>    Apple clang version 12.0.0 (clang-1200.0.32.29)
>>    Target: arm64-apple-darwin20.3.0
>>    Thread model: posix
>> 
>> ‘make’ fails with:
>> 
>> In file included from netmgr.c:37:
>> In file included from ./netmgr-int.h:38:
>> ./uv-compat.h:24:1: error: static declaration of 'uv_handle_get_data' follows non-static declaration
>> uv_handle_get_data(const uv_handle_t *handle) {
>> ^
>> /usr/local/include/uv.h:448:17: note: previous declaration is here
>> UV_EXTERN void* uv_handle_get_data(const uv_handle_t* handle);
>>                ^
>> In file included from netmgr.c:37:
>> In file included from ./netmgr-int.h:38:
>> ./uv-compat.h:31:1: error: static declaration of 'uv_handle_set_data' follows non-static declaration
>> uv_handle_set_data(uv_handle_t *handle, void *data) {
>> ^
>> /usr/local/include/uv.h:450:16: note: previous declaration is here
>> UV_EXTERN void uv_handle_set_data(uv_handle_t* handle, void* data);
>>               ^
>> 2 errors generated.
>> make[3]: *** [netmgr.o] Error 1
>> make[2]: *** [subdirs] Error 1
>> make[1]: *** [subdirs] Error 1
>> make: *** [subdirs] Error 1
>> 
>> Any suggestions?
>> 
>> Running Big Sur, 11.2.3
>> 
>> Thanks,
>> 
>> James.
>> _______________________________________________
>> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list
>> 
>> ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.
>> 
>> 
>> bind-users mailing list
>> bind-users at lists.isc.org
>> https://lists.isc.org/mailman/listinfo/bind-users
> 
> -- 
> Mark Andrews, ISC
> 1 Seymour St., Dundas Valley, NSW 2117, Australia
> PHONE: +61 2 9871 4742              INTERNET: marka at isc.org
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20210324/0116b9a4/attachment.htm>


More information about the bind-users mailing list