On FreeBSD 10.4 uname: FreeBSD 10.4-RELEASE-p9 #0: Tue May 8 07:05:01 UTC 2018 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 [307/376] /usr/bin/cc -DFREEBSD -DHAVE_CONFIG_H -D_BSD_SOURCE -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/hiredis -I/usr/ports/mail/rspamd/work/rspamd-1.7.7 -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/src -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libutil -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libserver -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libmime -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libstat -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libcryptobox -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/libucl -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/linenoise -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/uthash -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/http-parser -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/libottery -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/xxhash -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/cdb -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/snowball/include -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/librdns -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/aho-corasick -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/lc-btrie -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/lua-lpeg -Isrc -Isrc/libcryptobox -I/usr/local/include/luajit-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/compat -g -O2 -fstrict-aliasing -O2 -pipe -fstack-protector -fno-strict-aliasing -pthread -fPIC -W -Wall -Wpointer-arith -Wno-unused-parameter -Wno-unused-function -Wunused-variable -Wno-pointer-sign -Wstrict-prototypes -Wnull-dereference -Wno-unused-const-variable -Wno-sign-compare -std=c11 -Wno-implicit-fallthrough -O2 -pipe -fstack-protector -fno-strict-aliasing -MD -MT src/CMakeFiles/rspamd-server.dir/libserver/task.c.o -MF src/CMakeFiles/rspamd-server.dir/libserver/task.c.o.d -o src/CMakeFiles/rspamd-server.dir/libserver/task.c.o -c /usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libserver/task.c [308/376] /usr/bin/cc -DFREEBSD -DHAVE_CONFIG_H -D_BSD_SOURCE -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/hiredis -I/usr/ports/mail/rspamd/work/rspamd-1.7.7 -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/src -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libutil -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libserver -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libmime -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libstat -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libcryptobox -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/libucl -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/linenoise -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/uthash -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/http-parser -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/libottery -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/xxhash -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/cdb -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/snowball/include -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/librdns -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/aho-corasick -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/lc-btrie -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/lua-lpeg -Isrc -Isrc/libcryptobox -I/usr/local/include/luajit-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/compat -g -O2 -fstrict-aliasing -O2 -pipe -fstack-protector -fno-strict-aliasing -pthread -fPIC -W -Wall -Wpointer-arith -Wno-unused-parameter -Wno-unused-function -Wunused-variable -Wno-pointer-sign -Wstrict-prototypes -Wnull-dereference -Wno-unused-const-variable -Wno-sign-compare -std=c11 -Wno-implicit-fallthrough -O2 -pipe -fstack-protector -fno-strict-aliasing -MD -MT src/CMakeFiles/rspamd-server.dir/libserver/worker_util.c.o -MF src/CMakeFiles/rspamd-server.dir/libserver/worker_util.c.o.d -o src/CMakeFiles/rspamd-server.dir/libserver/worker_util.c.o -c /usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libserver/worker_util.c FAILED: src/CMakeFiles/rspamd-server.dir/libserver/worker_util.c.o /usr/bin/cc -DFREEBSD -DHAVE_CONFIG_H -D_BSD_SOURCE -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/hiredis -I/usr/ports/mail/rspamd/work/rspamd-1.7.7 -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/src -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libutil -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libserver -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libmime -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libstat -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libcryptobox -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/libucl -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/linenoise -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/uthash -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/http-parser -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/libottery -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/xxhash -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/cdb -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/snowball/include -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/librdns -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/aho-corasick -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/lc-btrie -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/lua-lpeg -Isrc -Isrc/libcryptobox -I/usr/local/include/luajit-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/compat -g -O2 -fstrict-aliasing -O2 -pipe -fstack-protector -fno-strict-aliasing -pthread -fPIC -W -Wall -Wpointer-arith -Wno-unused-parameter -Wno-unused-function -Wunused-variable -Wno-pointer-sign -Wstrict-prototypes -Wnull-dereference -Wno-unused-const-variable -Wno-sign-compare -std=c11 -Wno-implicit-fallthrough -O2 -pipe -fstack-protector -fno-strict-aliasing -MD -MT src/CMakeFiles/rspamd-server.dir/libserver/worker_util.c.o -MF src/CMakeFiles/rspamd-server.dir/libserver/worker_util.c.o.d -o src/CMakeFiles/rspamd-server.dir/libserver/worker_util.c.o -c /usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libserver/worker_util.c /usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libserver/worker_util.c:998:2: error: use of undeclared identifier 'ucontext_t' ucontext_t *uap = ctx; ^ /usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libserver/worker_util.c:998:14: error: use of undeclared identifier 'uap' ucontext_t *uap = ctx; ^ /usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libserver/worker_util.c:1005:8: error: use of undeclared identifier 'uap' (void)uap; ^ 3 errors generated. [309/376] /usr/bin/cc -DFREEBSD -DHAVE_CONFIG_H -D_BSD_SOURCE -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/hiredis -I/usr/ports/mail/rspamd/work/rspamd-1.7.7 -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/src -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libutil -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libserver -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libmime -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libstat -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libcryptobox -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/libucl -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/linenoise -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/uthash -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/http-parser -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/libottery -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/xxhash -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/cdb -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/snowball/include -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/librdns -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/aho-corasick -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/lc-btrie -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/contrib/lua-lpeg -Isrc -Isrc/libcryptobox -I/usr/local/include/luajit-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/ports/mail/rspamd/work/rspamd-1.7.7/compat -g -O2 -fstrict-aliasing -O2 -pipe -fstack-protector -fno-strict-aliasing -pthread -fPIC -W -Wall -Wpointer-arith -Wno-unused-parameter -Wno-unused-function -Wunused-variable -Wno-pointer-sign -Wstrict-prototypes -Wnull-dereference -Wno-unused-const-variable -Wno-sign-compare -std=c11 -Wno-implicit-fallthrough -O2 -pipe -fstack-protector -fno-strict-aliasing -MD -MT src/CMakeFiles/rspamd-server.dir/libserver/url.c.o -MF src/CMakeFiles/rspamd-server.dir/libserver/url.c.o.d -o src/CMakeFiles/rspamd-server.dir/libserver/url.c.o -c /usr/ports/mail/rspamd/work/rspamd-1.7.7/src/libserver/url.c ninja: build stopped: subcommand failed. ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make[1]: stopped in /usr/ports/mail/rspamd *** Error code 1 Stop.
#include <ucontext.h> ??
Created attachment 195018 [details] svn-diff-rspamd
(In reply to w.schwarzenfeld from comment #2) This patch works for me on freebsd104
I submitted bug #229748 updating mail/rspamd to 1.7.8. I confirmed build of 1.7.8 succeeds with 10.4-RELEASE. So this problem will be fixed when bug #229748 is committed.
Bug #229748 is committed as ports r474575. So this bug report should be closed now.