[syslog-ng] logwriter.c:241: error: LogWriterWatch has no member named - Red Hat 5.x 32BIT

Balazs Scheidler bazsi at balabit.hu
Thu Nov 20 09:24:27 CET 2008

On Wed, 2008-11-19 at 12:24 -0800, Saunders, Shawn wrote:
> Can someone shed some light here?  I am hoping to get to try the
> “parser” options, but need to successfully compile first.  It appears
> to be dying at something in the eventlog

this was fixed in the meanwhile. here's the patch:

Author: Balazs Scheidler <bazsi at balabit.hu>  2008-11-18 14:43:01
Committer: Balazs Scheidler <bazsi at balabit.hu>  2008-11-18 14:43:01
Parent: af3885097c3e65c708bf3d69e62ca26550aee3b4 (when TLS support is not enabled and no openssl libraries are present)
Child:  02a9e580135dfae55bdbcbdf0fd2c509ed3d88ac (fixed compilation error in tlscontext.c if SSL is disabled)
Branches: master, remotes/balabit/master, remotes/origin/master
Follows: v2.1.1

    fixed compilation error because of a bogus forward-port of the last HP-UX fix
    /home/bazsi/zwa/work/syslog-ng-ose-3.0/syslog-ng-ose/src/logwriter.c: In function ‘log_writer_fd_dispatch’:
    /home/bazsi/zwa/work/syslog-ng-ose-3.0/syslog-ng-ose/src/logwriter.c:241: error: ‘LogWriterWatch’ has no member named ‘fd’

------------------------------- src/logwriter.c -------------------------------
index e12b0d5..bb01148 100644
@@ -236,13 +236,13 @@ log_writer_fd_dispatch(GSource *source,
       log_writer_broken(self->writer, NC_CLOSE);
       return FALSE;
   else if (self->pollfd.revents & (G_IO_ERR))
       msg_error("POLLERR occurred while idle",
-                evt_tag_int("fd", self->fd->fd),
+                evt_tag_int("fd", log_proto_get_fd(self->proto)),
       log_writer_broken(self->writer, NC_WRITE_ERROR);
   else if (num_elements)
       if (!log_writer_flush_log(self->writer, self->proto))


More information about the syslog-ng mailing list