tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sysutils/rsyslog doesn't compile after last changes



I’m afraid I don’t know how to patch for pthread_mutex_timedlock here, which doesn’t exist on NetBSD. CC’ing the list to see if anybody else can assist.

-F

> 7. 4. 2017 v 17:50, Mustafa Dogan <dogan%tesmer.org.tr@localhost>:
> 
> Hi Filip,
> 
> After updating sysutils/rsyslog to 8.26.0, rsyslog doesn't compile. Error messages are below:
> 
> ...
> 
> Making all in plugins/omtesting
>  CC       omtesting_la-omtesting.lo
> omtesting.c: In function 'parseSelectorAct':
> omtesting.c:272:2: warning: array subscript has type 'char' [-Wchar-subscripts]
>  for(i = 0 ; *p && !isspace((char) *p) && ((unsigned) i < sizeof(szBuf) - 1) ; ++i) {
>  ^
>  CCLD     omtesting.la
> Making all in plugins/mmexternal
>  CC       mmexternal_la-mmexternal.lo
>  CCLD     mmexternal.la
> Making all in tools
>  CC       rsyslogd-syslogd.o
>  CC       rsyslogd-rsyslogd.o
>  CC       rsyslogd-omshell.o
>  CC       rsyslogd-omusrmsg.o
>  CC       rsyslogd-omfwd.o
>  CC       rsyslogd-omfile.o
>  CC       rsyslogd-ompipe.o
>  CC       rsyslogd-omdiscard.o
>  CC       rsyslogd-pmrfc5424.o
>  CC       rsyslogd-pmrfc3164.o
>  CC       rsyslogd-smtradfile.o
>  CC       rsyslogd-smfile.o
>  CC       rsyslogd-smfwd.o
>  CC       rsyslogd-smtradfwd.o
>  CC       rsyslogd-iminternal.o
> iminternal.c: In function 'iminternalAddMsg':
> iminternal.c:102:2: error: implicit declaration of function 'pthread_mutex_timedlock' [-Werror=implicit-function-declaration]
>  r = pthread_mutex_timedlock(&mutList, &to);
>  ^
> iminternal.c:102:2: warning: nested extern declaration of 'pthread_mutex_timedlock' [-Wnested-externs]
> cc1: some warnings being treated as errors
> *** Error code 1
> 
> Stop.
> make[2]: stopped in /usr/tmp/pkgsrc/sysutils/rsyslog/work.teosdb1/rsyslog-8.26.0/tools
> *** Error code 1
> 
> Stop.
> make[1]: stopped in /usr/tmp/pkgsrc/sysutils/rsyslog/work.teosdb1/rsyslog-8.26.0
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/tmp/pkgsrc/sysutils/rsyslog/work.teosdb1/rsyslog-8.26.0
> *** Error code 1
> 
> Stop.
> make[1]: stopped in /usr/pkgsrc/sysutils/rsyslog
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/pkgsrc/sysutils/rsyslog
> 
> Regards,
> 
> Mustafa Dogan
> 


Home | Main Index | Thread Index | Old Index