neocturne / fastd

Fast and Secure Tunnelling Daemon
Other
119 stars 16 forks source link

fastd 22 build issue #19

Closed chenrui333 closed 3 years ago

chenrui333 commented 3 years ago

clang -Isrc/liblibfastd.a.p -Isrc -I../src -I/opt/homebrew/Cellar/libuecc/7/include/libuecc-7 -I/opt/homebrew/Cellar/json-c/0.15/include -I/opt/homebrew/Cellar/json-c/0.15/include/json-c -I/opt/homebrew/Cellar/openssl@1.1/1.1.1k/include -I/opt/homebrew/Cellar/libsodium/1.0.18_1/include -fcolor-diagnostics -Wall -Winvalid-pch -Wextra -std=c99 -O3 -D_GNU_SOURCE -D__APPLE_USE_RFC_3542 -MD -MQ src/liblibfastd.a.p/handshake.c.o -MF src/liblibfastd.a.p/handshake.c.o.d -o src/liblibfastd.a.p/handshake.c.o -c ../src/handshake.c ../src/handshake.c:293:14: error: implicit declaration of function 'htobe16' is invalid in C99 [-Werror,-Wimplicit-function-declaration] .length = htobe16(sizeof(header)), ^ 1 error generated.

relates to

full build log: https://github.com/Homebrew/homebrew-core/runs/2939005147

neocturne commented 3 years ago

Sorry about that, I currently don't have a MacOS host for build tests. Please test the fix in #20.

chenrui333 commented 3 years ago

no worries apply your patch commit in this PR

chenrui333 commented 3 years ago

@NeoRaider the fix works for me (just tested out on my Mojave machine), thanks!