Created attachment 174959 [details] Fix configure.ac to detect pthread_setschedparam() correctly configure wasn't finding pthread_setschedparam() because its AC_CHECK_FUNCS compile test didn't link against -lpthread. Change from AC_CHECK_FUNCS to AC_SEARCH_LIBS and tell it to try linking libpthread so it will work out correctly if pthread_setschedparam() really is available. The consequence of not finding pthread_setschedparam() is that rsyslog apparently runs fine for at least a short while after starting, but it ends up not writing anything to the logs after a fairly short time -- the rsyslogd process is running and using up CPU cycles at about the normal rate, but there's nothing going into the log files. Also, there's a warning about 'pthread_setschedparam() not available' printed at startup. The attached patch (generated by 'make makepatch' which has regenerated all the other patches) fixes the problem. This is a candidate for reporting upstream, but the patch may not be appropriate for some other OSes.
A commit references this bug: Author: matthew Date: Mon Sep 19 13:52:35 UTC 2016 New revision: 422442 URL: https://svnweb.freebsd.org/changeset/ports/422442 Log: Fix autoconf detection of pthread_setschedparam() -- the test program needs to be linked against -lpthread. Regenerate patches by 'make makepatch' Take maintainership PR: 212823 Approved by: brd Changes: head/sysutils/rsyslog8/Makefile head/sysutils/rsyslog8/files/patch-configure.ac head/sysutils/rsyslog8/files/patch-grammar_rainerscript.c head/sysutils/rsyslog8/files/patch-plugins_impstats_impstats.c head/sysutils/rsyslog8/files/patch-runtime_nsd__ptcp.c
Committed, thanks!