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

Balazs Scheidler bazsi at balabit.hu
Wed Jul 2 13:04:35 CEST 2008


On Tue, 2008-07-01 at 18:19 -0400, Ed Ravin wrote:
> 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)
>              {

Thanks. I've committed a fix for this issue.

> -------------------------------------
> 
> 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//' {} ";"

Hmm, all test programs link against ../../src/libsyslog-ng.a which
define these two symbols. I guess those symbols are not resolved from
the .a file, presumably because it is at an earlier position in the link
command line.

> 
> -------------------------------------
> 
> 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.

You are right. I've prepared the binary release (for those who have
binary subscription) and then forgot to actually do the source release.

I did that now. Sorry for the confusion.

> 
> -------------------------------------
> 
> 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!

You already got that from Chris, the original author of the feature.

-- 
Bazsi



More information about the syslog-ng mailing list