Build error with 0.1.12
Sp1l opened this issue · comments
Bernard Spil commented
Since 0.1.12 main.c
fails to compile
FreeBSD 11.0-p2
FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0)
gmake[2]: Entering directory '/usr/ports/security/acme-client/work/acme-client-portable-0.1.12'
cc -O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -g -W -Wall -DHAVE_CONFIG_H -I/usr/local/include -c -o acctproc.o acctproc.c
cc -O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -g -W -Wall -DHAVE_CONFIG_H -I/usr/local/include -c -o base64.o base64.c
cc -O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -g -W -Wall -DHAVE_CONFIG_H -I/usr/local/include -c -o certproc.o certproc.c
cc -O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -g -W -Wall -DHAVE_CONFIG_H -I/usr/local/include -c -o chngproc.o chngproc.c
cc -O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -g -W -Wall -DHAVE_CONFIG_H -I/usr/local/include -c -o dbg.o dbg.c
cc -O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -g -W -Wall -DHAVE_CONFIG_H -I/usr/local/include -c -o dnsproc.o dnsproc.c
cc -O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -g -W -Wall -DHAVE_CONFIG_H -I/usr/local/include -c -o fileproc.o fileproc.c
cc -O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -g -W -Wall -DHAVE_CONFIG_H -I/usr/local/include -c -o http.o http.c
cc -O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -g -W -Wall -DHAVE_CONFIG_H -I/usr/local/include -c -o jsmn.o jsmn.c
cc -O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -g -W -Wall -DHAVE_CONFIG_H -I/usr/local/include -c -o json.o json.c
cc -O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -g -W -Wall -DHAVE_CONFIG_H -I/usr/local/include -c -o keyproc.o keyproc.c
cc -O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -g -W -Wall -DHAVE_CONFIG_H -I/usr/local/include -c -o main.o main.c
cc -O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -g -W -Wall -DHAVE_CONFIG_H -I/usr/local/include -c -o netproc.o netproc.c
main.c:123:8: error: unknown type name '__dead'
static __dead void
^
main.c:123:15: error: expected identifier or '('
static __dead void
^
main.c:490:3: warning: implicit declaration of function 'xrun' is invalid in C99 [-Wimplicit-function-declaration]
xrun(COMP_NET, newargs);
^
1 warning and 2 errors generated.
gmake[2]: *** [<builtin>: main.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[2]: Leaving directory '/usr/ports/security/acme-client/work/acme-client-portable-0.1.12'
Kristaps Dz commented
Oof, portability snafu. I pushed out a new release to fix just this. Thanks for reporting!
Bernard Spil commented
Dang! You beat me to it. Cycled around to fix the bug but a solution's already provided!
Thanks for the quick fix!
Kristaps Dz commented
No problem! I'm still thinking about the private-key issue you've raised---just need to consider how to retool some bits here and there. (Bigger priority was fork+exec.)