Closed RamonRomeroQro closed 3 years ago
To get it to build, you could try disabling the IPv6 aspects of nu_ipaddr.c (#define IPV6_NUIPADDR 0 in nu_ipaddr.h). Fixing the code properly to work for IPv6 on MacOS would need more changes. OBUSPA was originally designed to compile with glibc. But Bionic and MUSL are happy with the code too. I guess some of the IPv6 fields in the structure are named differently on the MAC.
Yep, getting rid of those dependant lines seems to work ( changing the flag on nu_ipaddr.c did not work, had to do it manually. Maybe related to Clang ? 🤔 )
After that, this error pops:
src/core/nu_macaddr.c:128:23: fatal error: use of undeclared identifier 'SIOCGIFHWADDR'
err = ioctl(sock, SIOCGIFHWADDR, &ifr);
^
1 error generated.
Which seem to be a direct dependency with Linux systems (SO post related)
So, I will follow with the Docker approach.
Thanks!
Hello!
Nice work on this project.
I am having this error building on macOS 11.5.1, any idea on how to solve it or which may be my mistake?