Bug 212823 - sysutils/rsyslog8 -- fix breakage due to pthread_setschedparam() not deing detected by autoconf
Summary: sysutils/rsyslog8 -- fix breakage due to pthread_setschedparam() not deing de...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Brad Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-19 11:47 UTC by Matthew Seaman
Modified: 2016-09-19 14:07 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (brd)


Attachments
Fix configure.ac to detect pthread_setschedparam() correctly (2.55 KB, patch)
2016-09-19 12:02 UTC, Matthew Seaman
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Seaman freebsd_committer freebsd_triage 2016-09-19 11:47:47 UTC

    
Comment 1 Matthew Seaman freebsd_committer freebsd_triage 2016-09-19 12:02:21 UTC
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.
Comment 2 commit-hook freebsd_committer freebsd_triage 2016-09-19 13:53:17 UTC
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
Comment 3 Matthew Seaman freebsd_committer freebsd_triage 2016-09-19 14:07:48 UTC
Committed, thanks!