logwriter.c:241: error: LogWriterWatch has no member named - Red Hat 5.x 32BIT
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 On Red Hat - 2.6.18-92.1.18.el5 #1 SMP Wed Nov 5 09:00:13 EST 2008 i686 athlon i386 GNU/Linux I have eventlog installed: eventlog-0.2.9+20081116.tar.gz ./configure --enable-ssl=no --enable-dynamic-linking --enable-linux-caps syslog-ng Open Source Edition 3.0+20081116 configured Compiler options: compiler : gcc compiler options : -g -O2 -Wall -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include/eventlog -I/usr/kerberos/include -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 linker flags : prefix : /usr/local Features: Sun STREAMS support : no Sun Door support : no Debug symbols : no GCC profiling : no Memtrace : no IPV6 support : yes spoof-source support : no tcp-wrapper support : yes SSL support : no SQL support : no Linux capability support : yes PCRE support : yes Env wrapper support : no A make gets me here: logwriter.c: In function ‘log_writer_fd_dispatch’: logwriter.c:241: error: ‘LogWriterWatch’ has no member named ‘fd’ make[2]: *** [logwriter.o] Error 1 make[2]: Leaving directory `/usr/local/src/syslog-ng-3.0+20081116/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/syslog-ng-3.0+20081116' make: *** [all] Error 2 snippet of logwriter.c lines 239-245 239 else if (self->pollfd.revents & (G_IO_ERR)) 240 { 241 msg_error("POLLERR occurred while idle", 242 evt_tag_int("fd", self->fd->fd), 243 NULL); 244 log_writer_broken(self->writer, NC_WRITE_ERROR); 245 } Thank you, Shawn Saunders UNIX Systems Administrator 818.953.2649 WMG, Digital Properties "UNIX is user-friendly ... it's just selective about who its friends are!!"
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@balabit.hu> 2008-11-18 14:43:01 Committer: Balazs Scheidler <bazsi@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 Precedes: 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)), NULL); log_writer_broken(self->writer, NC_WRITE_ERROR); } else if (num_elements) { if (!log_writer_flush_log(self->writer, self->proto))
-- Bazsi
Hello again, Environment: Red Hat Enterprise Linux Server release 5.2 (Tikanga) 2.6.18-92.1.18.el5 #1 SMP Wed Nov 5 09:00:13 EST 2008 i686 athlon i386 GNU/Linux Retrieved the most recent and now a different compile error: eventlog-0.2.9+20081120.tar.gz compiles and installs fine. syslog-ng-3.0+20081120.tar.gz ./configure --enable-ssl=no --enable-dynamic-linking --enable-linux-caps syslog-ng Open Source Edition 3.0+20081120 configured Compiler options: compiler : gcc compiler options : -g -O2 -Wall -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include/eventlog -I/usr/kerberos/include -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 linker flags : prefix : /usr/local Features: Sun STREAMS support : no Sun Door support : no Debug symbols : no GCC profiling : no Memtrace : no IPV6 support : yes spoof-source support : no tcp-wrapper support : yes SSL support : no SQL support : no Linux capability support : yes PCRE support : yes Env wrapper support : no Do a make and receive: gprocess.h:23: error: expected ‘)’ before ‘r’ affile.c: In function ‘affile_open_file’: affile.c:47: error: ‘cap_t’ undeclared (first use in this function) affile.c:47: error: (Each undeclared identifier is reported only once affile.c:47: error: for each function it appears in.) affile.c:47: error: expected ‘;’ before ‘saved_caps’ affile.c:62: error: ‘saved_caps’ undeclared (first use in this function) affile.c:62: warning: implicit declaration of function ‘g_process_cap_save’ affile.c:63: error: ‘CAP_DAC_READ_SEARCH’ undeclared (first use in this function) affile.c:64: error: ‘CAP_SYS_ADMIN’ undeclared (first use in this function) affile.c:72: error: ‘CAP_DAC_OVERRIDE’ undeclared (first use in this function) affile.c:82: warning: implicit declaration of function ‘g_process_cap_restore’ make[2]: *** [affile.o] Error 1 make[2]: Leaving directory `/usr/local/src/syslog-ng-3.0+20081120/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/syslog-ng-3.0+20081120' make: *** [all] Error 2 Thank you, Shawn Saunders UNIX Systems Administrator 818.953.2649 WMG, Digital Properties "Who's General Failure and why's he reading my disk?" -----Original Message----- From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] On Behalf Of Balazs Scheidler Sent: Thursday, November 20, 2008 12:24 AM To: Syslog-ng users' and developers' mailing list Subject: Re: [syslog-ng] logwriter.c:241: error: LogWriterWatch hasno member named - Red Hat 5.x 32BIT 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@balabit.hu> 2008-11-18 14:43:01 Committer: Balazs Scheidler <bazsi@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 Precedes: 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)), NULL); log_writer_broken(self->writer, NC_WRITE_ERROR); } else if (num_elements) { if (!log_writer_flush_log(self->writer, self->proto))
-- Bazsi ______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html
Hi, You explicitly enabled linux capability support, but you don't have the necessary libraries installed. the configure script autodetects libcap and uses it if available. I tested compilation on Debian though, so RHEL might be different. Do you have a <sys/capability.h> file? On Thu, 2008-11-20 at 06:30 -0800, Saunders, Shawn wrote:
Hello again, Environment: Red Hat Enterprise Linux Server release 5.2 (Tikanga) 2.6.18-92.1.18.el5 #1 SMP Wed Nov 5 09:00:13 EST 2008 i686 athlon i386 GNU/Linux
Retrieved the most recent and now a different compile error:
eventlog-0.2.9+20081120.tar.gz compiles and installs fine.
syslog-ng-3.0+20081120.tar.gz ./configure --enable-ssl=no --enable-dynamic-linking --enable-linux-caps
syslog-ng Open Source Edition 3.0+20081120 configured Compiler options: compiler : gcc compiler options : -g -O2 -Wall -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include/eventlog -I/usr/kerberos/include -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 linker flags : prefix : /usr/local Features: Sun STREAMS support : no Sun Door support : no Debug symbols : no GCC profiling : no Memtrace : no IPV6 support : yes spoof-source support : no tcp-wrapper support : yes SSL support : no SQL support : no Linux capability support : yes PCRE support : yes Env wrapper support : no
Do a make and receive: gprocess.h:23: error: expected ‘)’ before ‘r’ affile.c: In function ‘affile_open_file’: affile.c:47: error: ‘cap_t’ undeclared (first use in this function) affile.c:47: error: (Each undeclared identifier is reported only once affile.c:47: error: for each function it appears in.) affile.c:47: error: expected ‘;’ before ‘saved_caps’ affile.c:62: error: ‘saved_caps’ undeclared (first use in this function) affile.c:62: warning: implicit declaration of function ‘g_process_cap_save’ affile.c:63: error: ‘CAP_DAC_READ_SEARCH’ undeclared (first use in this function) affile.c:64: error: ‘CAP_SYS_ADMIN’ undeclared (first use in this function) affile.c:72: error: ‘CAP_DAC_OVERRIDE’ undeclared (first use in this function) affile.c:82: warning: implicit declaration of function ‘g_process_cap_restore’ make[2]: *** [affile.o] Error 1 make[2]: Leaving directory `/usr/local/src/syslog-ng-3.0+20081120/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/syslog-ng-3.0+20081120' make: *** [all] Error 2
Thank you,
Shawn Saunders UNIX Systems Administrator 818.953.2649 WMG, Digital Properties "Who's General Failure and why's he reading my disk?"
-----Original Message----- From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] On Behalf Of Balazs Scheidler Sent: Thursday, November 20, 2008 12:24 AM To: Syslog-ng users' and developers' mailing list Subject: Re: [syslog-ng] logwriter.c:241: error: LogWriterWatch hasno member named - Red Hat 5.x 32BIT
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@balabit.hu> 2008-11-18 14:43:01 Committer: Balazs Scheidler <bazsi@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 Precedes:
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)), NULL); log_writer_broken(self->writer, NC_WRITE_ERROR); } else if (num_elements) { if (!log_writer_flush_log(self->writer, self->proto))
-- Bazsi
participants (2)
-
Balazs Scheidler
-
Saunders, Shawn