[syslog-ng] syslog-ng-2.1beta1 on NetBSD 3.0, duplicate suppression docs?

Ed Ravin eravin at panix.com
Wed Jul 2 00:19:31 CEST 2008


I encountered two problems building syslog-ng-2.1beta1 on NetBSD 3.0:

1) I needed to patch loggen.c (stole this patch from a FreeBSD site,
apparently it happens on that OS too)

--- tests/loggen/loggen.c.orig  2008-01-13 00:04:22.000000000 -0800
+++ tests/loggen/loggen.c       2008-03-26 08:27:43.000000000 -0700
@@ -226,7 +226,9 @@
           memset(&hints, 0, sizeof(hints));
           hints.ai_family = AF_UNSPEC;
           hints.ai_socktype = sock_type;
+#ifdef AI_ADDRCONFIG
           hints.ai_flags = AI_ADDRCONFIG;
+#endif
           hints.ai_protocol = 0;
           if (getaddrinfo(argv[optind], argv[optind + 1], &hints, &res) != 0)
             {
-------------------------------------

2) I built syslog-ng with --enable-tcp-wrappers, which needlessly put
"-lwrap" on the LIBS line in the Makefiles for programs that did not
actually use TCP wrappers.  This causes link-time errors, since
libwrap requires you to declare two symbols in your program.  The fix
was to run this in the source directory:

    find tests/ -name Makefile -exec perl -p -i -e 's/-lwrap//' {} ";"

-------------------------------------

I also have a couple of observations/questions:

3) It turns out I really wanted syslog-ng2.1beta2, but although that
was announced as released, only the beta1 tarball is actually on the
source download site.  I had to go to the snapshots.  The above
fixes were also needed for the beta2 sources.

-------------------------------------

4) I'm looking for info on how to use the duplicate suppression
option - it doesn't seem to be in the docs included in the source.
Can someone give me a quick summary?  This was (IMHO) the only
extant flaw in syslog-ng and I'm looking forward to trying it out!


Thanks,

	-- Ed


More information about the syslog-ng mailing list