From c84d74c258d54713cadf8dfbeff10fcb4d91624f Mon Sep 17 00:00:00 2001
From: Michael Biebl
Date: Tue, 10 Feb 2009 01:52:22 +0100
Subject: Imported Upstream version 3.20.4
---
ChangeLog | 10 +++
Makefile.in | 2 -
configure | 68 +++++++-------
configure.ac | 6 +-
doc/Makefile.am | 3 +-
doc/Makefile.in | 5 +-
doc/manual.html | 2 +-
doc/ommysql.html | 46 ++++++++++
doc/omrelp.html | 4 +-
doc/status.html | 55 ------------
doc/syslog_parsing.html | 196 +++++++++++++++++++++++++++++++++++++++++
plugins/im3195/Makefile.in | 2 -
plugins/imfile/Makefile.in | 2 -
plugins/imgssapi/Makefile.in | 2 -
plugins/imklog/Makefile.in | 2 -
plugins/immark/Makefile.in | 2 -
plugins/imrelp/Makefile.in | 2 -
plugins/imtcp/Makefile.in | 2 -
plugins/imtemplate/Makefile.in | 2 -
plugins/imudp/Makefile.in | 2 -
plugins/imuxsock/Makefile.in | 2 -
plugins/omgssapi/Makefile.in | 2 -
plugins/omlibdbi/Makefile.in | 2 -
plugins/ommail/Makefile.in | 2 -
plugins/ommysql/Makefile.in | 2 -
plugins/ompgsql/Makefile.in | 2 -
plugins/omrelp/Makefile.in | 2 -
plugins/omsnmp/Makefile.in | 2 -
plugins/omtesting/Makefile.in | 2 -
runtime/Makefile.in | 2 -
runtime/msg.c | 26 +++---
runtime/msg.h | 1 +
tests/Makefile.in | 2 -
tools/Makefile.in | 2 -
tools/syslogd.c | 2 +-
35 files changed, 309 insertions(+), 159 deletions(-)
create mode 100644 doc/ommysql.html
delete mode 100644 doc/status.html
create mode 100644 doc/syslog_parsing.html
diff --git a/ChangeLog b/ChangeLog
index bccb1f8..880f3c7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,14 @@
---------------------------------------------------------------------------
+Version 3.20.4 [v3-stable] (rgerhards), 2009-02-09
+- bugfix: inconsistent use of mutex/atomic operations could cause segfault
+ details are too many, for full analysis see blog post at:
+ http://blog.gerhards.net/2009/01/rsyslog-data-race-analysis.html
+- bugfix: invalid ./configure settings for RFC3195
+ thanks to Michael Biebl for the patch
+- bugfix: invalid mutex access in msg.c
+- doc bugfix: dist tarball missed 2 files, had one extra file that no
+ longer belongs into it. Thanks to Michael Biebl for pointing this out.
+---------------------------------------------------------------------------
Version 3.20.3 [v3-stable] (rgerhards), 2009-01-19
- doc bugfix: v3-compatiblity document had typo in config directive
thanks to Andrej for reporting this
diff --git a/Makefile.in b/Makefile.in
index 10a7cff..60b8eb2 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -211,8 +211,6 @@ PKG_CONFIG = @PKG_CONFIG@
RANLIB = @RANLIB@
RELP_CFLAGS = @RELP_CFLAGS@
RELP_LIBS = @RELP_LIBS@
-RFC3195_CFLAGS = @RFC3195_CFLAGS@
-RFC3195_LIBS = @RFC3195_LIBS@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
diff --git a/configure b/configure
index ba72056..187c682 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.63 for rsyslog 3.20.3.
+# Generated by GNU Autoconf 2.63 for rsyslog 3.20.4.
#
# Report bugs to .
#
@@ -750,8 +750,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
# Identity of this package.
PACKAGE_NAME='rsyslog'
PACKAGE_TARNAME='rsyslog'
-PACKAGE_VERSION='3.20.3'
-PACKAGE_STRING='rsyslog 3.20.3'
+PACKAGE_VERSION='3.20.4'
+PACKAGE_STRING='rsyslog 3.20.4'
PACKAGE_BUGREPORT='rsyslog@lists.adiscon.com'
ac_unique_file="ChangeLog"
@@ -796,8 +796,6 @@ ENABLE_IMTEMPLATE_FALSE
ENABLE_IMTEMPLATE_TRUE
ENABLE_IMFILE_FALSE
ENABLE_IMFILE_TRUE
-RFC3195_LIBS
-RFC3195_CFLAGS
ENABLE_RFC3195_FALSE
ENABLE_RFC3195_TRUE
LIBLOGGING_LIBS
@@ -1570,7 +1568,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures rsyslog 3.20.3 to adapt to many kinds of systems.
+\`configure' configures rsyslog 3.20.4 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1640,7 +1638,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of rsyslog 3.20.3:";;
+ short | recursive ) echo "Configuration of rsyslog 3.20.4:";;
esac
cat <<\_ACEOF
@@ -1776,7 +1774,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-rsyslog configure 3.20.3
+rsyslog configure 3.20.4
generated by GNU Autoconf 2.63
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1790,7 +1788,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by rsyslog $as_me 3.20.3, which was
+It was created by rsyslog $as_me 3.20.4, which was
generated by GNU Autoconf 2.63. Invocation command line was
$ $0 $@
@@ -2506,7 +2504,7 @@ fi
# Define the identity of the package.
PACKAGE='rsyslog'
- VERSION='3.20.3'
+ VERSION='3.20.4'
cat >>confdefs.h <<_ACEOF
@@ -6185,7 +6183,7 @@ ia64-*-hpux*)
;;
*-*-irix6*)
# Find out which ABI we are using.
- echo '#line 6188 "configure"' > conftest.$ac_ext
+ echo '#line 6186 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
@@ -8783,11 +8781,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:8786: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:8784: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:8790: \$? = $ac_status" >&5
+ echo "$as_me:8788: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -9073,11 +9071,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:9076: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:9074: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:9080: \$? = $ac_status" >&5
+ echo "$as_me:9078: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -9177,11 +9175,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:9180: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:9178: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:9184: \$? = $ac_status" >&5
+ echo "$as_me:9182: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -11579,7 +11577,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext < conftest.$ac_ext <&5)
+ (eval echo "\"\$as_me:14089: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:14095: \$? = $ac_status" >&5
+ echo "$as_me:14093: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -14192,11 +14190,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:14195: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:14193: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:14199: \$? = $ac_status" >&5
+ echo "$as_me:14197: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -15777,11 +15775,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:15780: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:15778: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:15784: \$? = $ac_status" >&5
+ echo "$as_me:15782: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -15881,11 +15879,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:15884: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:15882: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:15888: \$? = $ac_status" >&5
+ echo "$as_me:15886: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -18098,11 +18096,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:18101: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:18099: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:18105: \$? = $ac_status" >&5
+ echo "$as_me:18103: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -18388,11 +18386,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:18391: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:18389: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:18395: \$? = $ac_status" >&5
+ echo "$as_me:18393: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -18492,11 +18490,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:18495: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:18493: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:18499: \$? = $ac_status" >&5
+ echo "$as_me:18497: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -29021,7 +29019,7 @@ exec 6>&1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by rsyslog $as_me 3.20.3, which was
+This file was extended by rsyslog $as_me 3.20.4, which was
generated by GNU Autoconf 2.63. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -29084,7 +29082,7 @@ Report bugs to ."
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_version="\\
-rsyslog config.status 3.20.3
+rsyslog config.status 3.20.4
configured by $0, generated by GNU Autoconf 2.63,
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
diff --git a/configure.ac b/configure.ac
index 7af05e4..c5bcaec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
-AC_INIT([rsyslog],[3.20.3],[rsyslog@lists.adiscon.com])
+AC_INIT([rsyslog],[3.20.4],[rsyslog@lists.adiscon.com])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([ChangeLog])
AC_CONFIG_HEADERS([config.h])
@@ -581,8 +581,8 @@ if test "x$enable_rfc3195" = "xyes"; then
PKG_CHECK_MODULES(LIBLOGGING, liblogging >= 0.7.1)
fi
AM_CONDITIONAL(ENABLE_RFC3195, test x$enable_rfc3195 = xyes)
-AC_SUBST(RFC3195_CFLAGS)
-AC_SUBST(RFC3195_LIBS)
+AC_SUBST(LIBLOGGING_CFLAGS)
+AC_SUBST(LIBLOGGING_LIBS)
# settings for the template input module; copy and modify this code
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 4f4aae1..e7ce18c 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -31,6 +31,7 @@ html_files = \
contributors.html \
dev_queue.html \
omsnmp.html \
+ ommysql.html \
omlibdbi.html \
imfile.html \
imtcp.html \
@@ -96,7 +97,7 @@ html_files = \
licensing.html \
ommail.html \
omrelp.html \
- status.html \
+ syslog_parsing.html \
troubleshoot.html \
src/classes.dia
diff --git a/doc/Makefile.in b/doc/Makefile.in
index 86dc3d6..d24e9ff 100644
--- a/doc/Makefile.in
+++ b/doc/Makefile.in
@@ -103,8 +103,6 @@ PKG_CONFIG = @PKG_CONFIG@
RANLIB = @RANLIB@
RELP_CFLAGS = @RELP_CFLAGS@
RELP_LIBS = @RELP_LIBS@
-RFC3195_CFLAGS = @RFC3195_CFLAGS@
-RFC3195_LIBS = @RFC3195_LIBS@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
@@ -213,6 +211,7 @@ html_files = \
contributors.html \
dev_queue.html \
omsnmp.html \
+ ommysql.html \
omlibdbi.html \
imfile.html \
imtcp.html \
@@ -278,7 +277,7 @@ html_files = \
licensing.html \
ommail.html \
omrelp.html \
- status.html \
+ syslog_parsing.html \
troubleshoot.html \
src/classes.dia
diff --git a/doc/manual.html b/doc/manual.html
index 1d6f795..aa0fdb3 100644
--- a/doc/manual.html
+++ b/doc/manual.html
@@ -16,7 +16,7 @@ relay chains while at the same time being very easy to setup for the
novice user. And as we know what enterprise users really need, there is
also professional
rsyslog support available directly from the source!
-This documentation is for version 3.20.3 (v3-stable branch) of rsyslog.
+
This documentation is for version 3.20.4 (v3-stable branch) of rsyslog.
Visit the rsyslog status page to obtain current
version information and project status.
If you like rsyslog, you might
diff --git a/doc/ommysql.html b/doc/ommysql.html
new file mode 100644
index 0000000..79d913e
--- /dev/null
+++ b/doc/ommysql.html
@@ -0,0 +1,46 @@
+
+
+
+MySQL Database Output Module
+
+
+
+MySQL Database Output Module
+
Module Name: ommysql
+Author: Michael Meckelein (Initial Author) / Rainer Gerhards
+<rgerhards@adiscon.com>
+Description:
+This module provides native support for logging to MySQL databases. It offers
+superior performance over the more generic omlibdbi module.
+
+Configuration Directives:
+ommysql mostly uses the "old style" configuration, with almost everything on the
+action line itself. A few newer features are being migrated to the new style-config
+directive configuration system.
+
+- $ActionOmmysqlServerPort <port>
Permits to select
+a non-standard port for the MySQL server. The default is 0, which means the
+system default port is used. There is no need to specify this directive unless
+you know the server is running on a non-standard listen port.
+ - Action parameters:
+
:ommysql:database-server,database-name,database-userid,database-password
+
All parameters should be filled in for a successful connect.
+
+Sample:
+The following sample writes all syslog messages to the
+database "syslog_db" on mysqlsever.example.com. The server is
+being accessed under the account of "user" with password "pwd".
+
+
+[rsyslog.conf overview]
+[manual index] [rsyslog site]
+This documentation is part of the
+rsyslog
+project.
+Copyright © 2008 by Rainer Gerhards and
+Adiscon.
+Released under the GNU GPL version 3 or higher.
+
diff --git a/doc/omrelp.html b/doc/omrelp.html
index 0952cc7..d5437a7 100644
--- a/doc/omrelp.html
+++ b/doc/omrelp.html
@@ -4,7 +4,7 @@
-RELP Output Module (omlibdbi)
+RELP Output Module (omrelp)
Module Name: omrelp
Author: Rainer Gerhards
<rgerhards@adiscon.com>
@@ -51,4 +51,4 @@ Copyright
Gerhards and
Adiscon.
Released under the GNU GPL version 3 or higher.
-