jech / babeld

The Babel routing daemon
http://www.irif.fr/~jch/software/babel/
MIT License
385 stars 92 forks source link

babeld 1.12.1 build failure #94

Closed chenrui333 closed 2 years ago

chenrui333 commented 2 years ago

👋 trying to build the latest release, but run into some build issue. The error log is as below:

build error ``` message.c:503:16: error: member reference base type 'const unsigned char' is not a structure or union if(IN6_IS_ADDR_MULTICAST(to)) ^~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/netinet6/in6.h:301:45: note: expanded from macro 'IN6_IS_ADDR_MULTICAST' #define IN6_IS_ADDR_MULTICAST(a) ((a)->s6_addr[0] == 0xff) ~~~^ ~~~~~~~ message.c:569:16: error: member reference base type 'const unsigned char' is not a structure or union if(IN6_IS_ADDR_MULTICAST(to)) ^~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/netinet6/in6.h:301:45: note: expanded from macro 'IN6_IS_ADDR_MULTICAST' #define IN6_IS_ADDR_MULTICAST(a) ((a)->s6_addr[0] == 0xff) ~~~^ ~~~~~~~ 2 errors generated. ```

full build log, https://github.com/Homebrew/homebrew-core/actions/runs/3256497315/jobs/5347104359 relates to Homebrew/homebrew-core#102969 relates to Homebrew/homebrew-core#113206

jech commented 2 years ago

Thanks for the report. Could you please check that branch fix-multicast-check works for you?

https://github.com/jech/babeld/tree/fix-multicast-check

Just do the following:

git remote update
git checkout fix-multicast-check
make
jech commented 2 years ago

Applied to master. Please let me know if you test the branch and require a stable branch release.

chenrui333 commented 1 year ago

sorry for the delay, let me give this another try.

chenrui333 commented 1 year ago

Works for me, thanks for the fix!