[syslog-ng] Bugreport: Ver 1.9.5 problems with facility/level filtering

Roberto Nibali ratz at drugphish.ch
Mon Oct 3 20:14:40 CEST 2005


> I tried the latest snapshot of syslog-ng, but it fails to compile the
> initial module.  I get:
> misc.c: In function `get_local_timezone_ofs':
> misc.c:83: error: structure has no member named `tm_gmtoff'

Hmm, this is a BSD extension, and IIRC you are using a BSD system, 
aren't you?

I don't have access to a BSD system right now, but could you check your 
/usr/include/time.h to see if the struct tm provides this member? Also 
maybe if you have nothing else to do, could you try following (might not 
help anything at all) patch?:

--- syslog-ng-1.9.5+20051003/src/misc.c 2005-10-03 00:11:46.000000000 +0200
+++ syslog-ng-1.9.5+20051003-ratz/src/misc.c    2005-10-03 
20:11:24.979218306 +0200
@@ -34,6 +34,9 @@
  #include <pwd.h>
  #include <grp.h>
  #include <stdlib.h>
+#ifndef _BSD_SOURCE
+#define _BSD_SOURCE
+#endif
  #include <time.h>

  GString *

> Bottom line... I'm unable to test the facility/level fix because I can't
> get a clean compilation on the latest version.  Sorry.

Regards,
Roberto Nibali, ratz
-- 
echo 
'[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq' | dc


More information about the syslog-ng mailing list