In the process of deploying out systems, we decided to use the latest FC4. Bad idea, so far, a whole list of apps tha refuse to boot up. (We cant switch to FC3 as it refuses to install on our tyan/dual xeons) I got the following compile error on syslog-ng.1.9.4. Using standard FC4/GCC4. Anyone knows of a fix ? [root@dupre syslog-ng-1.9.4]# make make all-recursive make[1]: Entering directory `/usr/local/src/syslog-ng-1.9.4' Making all in src make[2]: Entering directory `/usr/local/src/syslog-ng-1.9.4/src' if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include/eventlog -D_GNU_SOURCE -g -O2 -Wall -g -MT affile.o -MD -MP -MF ".deps/affile.Tpo" \ -c -o affile.o `test -f 'affile.c' || echo './'`affile.c; \ then mv -f ".deps/affile.Tpo" ".deps/affile.Po"; \ else rm -f ".deps/affile.Tpo"; exit 1; \ fi affile.c: In function affile_dd_reap: affile.c:387: error: invalid storage class for function affile_dd_reap_writers make[2]: *** [affile.o] Error 1 make[2]: Leaving directory `/usr/local/src/syslog-ng-1.9.4/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/syslog-ng-1.9.4' make: *** [all] Error 2 [root@dupre syslog-ng-1.9.4]# I'm having problem accessing syslog-ng website. Anyone have the same problem ? Thanks in advance. Elvin -
On Fri, 2005-06-24 at 23:42 -0700, Alf wrote:
In the process of deploying out systems, we decided to use the latest FC4. Bad idea, so far, a whole list of apps tha refuse to boot up. (We cant switch to FC3 as it refuses to install on our tyan/dual xeons)
I got the following compile error on syslog-ng.1.9.4. Using standard FC4/GCC4. Anyone knows of a fix ?
I'm having problem accessing syslog-ng website. Anyone have the same problem ?
Thanks in advance.
I've just committed the following fix: --- orig/src/affile.c +++ mod/src/affile.c @@ -376,37 +376,38 @@ affile_dd_set_fsync() { } +static time_t reap_now = 0; + +static gboolean +affile_dd_reap_writers(gpointer key, gpointer value, gpointer user_data) +{ + AFFileDestDriver *self = (AFFileDestDriver *) user_data; + AFFileDestWriter *dw = (AFFileDestWriter *) value; + + if ((reap_now - dw->last_msg_stamp) >= self->time_reap) + { + msg_verbose("Destination timed out, reaping", + evt_tag_str("template", self->filename_template->template->str), + evt_tag_str("filename", dw->filename->str), + NULL); + log_pipe_deinit(&dw->super, NULL, NULL); + log_pipe_unref(&dw->super); + + /* remove from hash table */ + return TRUE; + } + return FALSE; +} static gboolean affile_dd_reap(gpointer s) { AFFileDestDriver *self = (AFFileDestDriver *) s; - time_t now = time(NULL); - - static gboolean - affile_dd_reap_writers(gpointer key, gpointer value, gpointer user_data) - { - AFFileDestDriver *dd = (AFFileDestDriver *) user_data; - AFFileDestWriter *dw = (AFFileDestWriter *) value; - - if ((now - dw->last_msg_stamp) >= self->time_reap) - { - msg_verbose("Destination timed out, reaping", - evt_tag_str("template", dd->filename_template->template->str), - evt_tag_str("filename", dw->filename->str), - NULL); - log_pipe_deinit(&dw->super, NULL, NULL); - log_pipe_unref(&dw->super); - - /* remove from hash table */ - return TRUE; - } - return FALSE; - } msg_verbose("Reaping unused destination files", evt_tag_str("template", self->filename_template->template->str), NULL); + reap_now = time(NULL); if (self->writer_hash) g_hash_table_foreach_remove(self->writer_hash, affile_dd_reap_writers, self); return TRUE; -- Bazsi
participants (2)
-
Alf
-
Balazs Scheidler