[syslog-ng]Re: syslog-ng dying randomly?

Balazs Scheidler bazsi@balabit.hu
Wed, 5 Jun 2002 10:16:41 +0200


On Tue, Jun 04, 2002 at 03:39:20PM -0400, seth vidal wrote:
> On Tue, 2002-05-28 at 21:26, John Morrissey wrote:
> > On Mon, May 27, 2002 at 05:38:00PM +0200, Balazs Scheidler wrote:
> > % I made two patches, one against syslog-ng the other against libol, please
> > % check if these fixes your problems.
> > [snip]
> > % --- src/afinet.c	26 Apr 2002 09:43:54 -0000	1.17
> > % +++ src/afinet.c	27 May 2002 15:37:19 -0000
> > % @@ -536,7 +536,8 @@
> > %  {
> > %  	CAST(afinet_dest, self, c);
> > %  	if (self->conn_fd) {
> > % -		KILL_RESOURCE(&self->conn_fd->super.super);
> > % +		/* KILL_RESOURCE(&self->conn_fd->super.super); */
> > % +		closekill_fd(self->conn_fd);
> > 
> > When I built this, the compiler complained that closekill_fd() wants two
> > args. I didn't bother checking and just assumed CLOSE_EOF was good enough
> > for the second arg. :-)
> > 
> > These patches seem to do it for me; I can't provoke syslog-ng into dying
> > when the syslog hub goes away. Thanks a bunch for your work!
> > 
> > Now, I hope I'm not asking too much, but should I expect a new release soon
> > with this incorporated? I'll be rebuilding my local RPMs and deploying this
> > to a few dozen machines and I'd like to update them to an "official"
> > release.
> > 
> 
> when I apply the patch to libol 0.2.3 the make then tries to validate
> the code using scsh - I end up getting the following messages:
> 
> Warning: use of macro doesn't match definition
>          (syntax-rules '() ((let-and (expr) clause clauses ...) (and
> expr (let-and clause clauses ...))) ((let-and (name expr) clause clauses
> ...) (let ((name expr)) (and name (let-and clause clauses ...))))
> ((let-and expr) expr))
> 
> Error: attempt to call a non-procedure
>        ('syntax-error '(#{Name let-and} ((pair? expr)) (op-matches
> (match # #)) (arg-matches (match # #)) (append op-matches arg-matches))
> '#{Procedure 2489 (unnamed in make-name-generator in names)}
> '#{Procedure 2486 (unnamed in make-keyword-comparator in names)})
> 
> 
> I'm using scsh 0.6.1
> 
> Is there a way to disable the scsh check in configure or maybe from the
> make?


change line 22 of make_class.in from 

  (syntax-rules '()

to

  (syntax-rules ()

and it should work fine.

I'll release a fixed version from libol 0.2.x and syslog-ng 1.4.x


-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1