Build rsyslog from source with maximum debug options enabled in order to aid in testing
sudo apt-get update
sudo apt-get -y install autoconf automake bison build-essential flex git-core libdbi-dev libgcrypt11-dev libgcrypt20-dev libcurl4-gnutls-dev libglib2.0-dev libgnutls-dev libgrok-dev libgrok1 libhiredis-dev libmongo-client-dev libmysqlclient-dev libnet1-dev libpcre3-dev libpq-dev librdkafka-dev libsystemd-dev libtokyocabinet-dev libtool pkg-config postgresql-client python-docutils uuid-dev valgrind zlib1g-dev
sudo yum install -y autoconf automake bison flex git-core gnutls-devel libcurl-devel libgcrypt-devel libtool libuuid-devel pcre-devel pkgconfig python-docutils systemd-devel valgrind zlib-devel
Note: This list is incomplete and will need to be fleshed out further.
Note: An alternate approach here is to checkout to clone the repos to a semi-permament location and then run cd /path/to/repo; git clean -f -x
to clear out old build content
cd /tmp
rm -rf libfastjson libestr liblogging liblognorm librelp rsyslog
cd /tmp
git clone https://github.com/rsyslog/libfastjson
cd libfastjson/
sh autogen.sh CFLAGS="-g"
./configure CFLAGS="-g"
make
sudo make install
cd /tmp
git clone https://github.com/rsyslog/libestr
cd libestr/
autoreconf -vfi
./configure CFLAGS="-g" --enable-debug
make
sudo make install
cd /tmp
git clone https://github.com/rsyslog/liblogging
cd liblogging
autoreconf -vfi
./configure CFLAGS="-g" --disable-man-pages
make
sudo make install
cd /tmp
git clone https://github.com/rsyslog/liblognorm
cd liblognorm
autoreconf -vfi
./configure CFLAGS="-g" --disable-testbench --enable-valgrind --enable-tools --enable-debug --enable-regexp
make
sudo make install
cd /tmp
git clone https://github.com/rsyslog/librelp
cd librelp
autoreconf -vfi
./configure CFLAGS="-g" --enable-debug
make
sudo make install
cd /tmp
git clone https://github.com/rsyslog/rsyslog
cd rsyslog
sh autogen.sh CFLAGS="-g"
./configure CFLAGS="-g" --disable-generate-man-pages --enable-liblogging-stdlog --enable-imfile --enable-imptcp --enable-impstats --enable-pmnormalize --enable-omuxsock --enable-mmjsonparse --enable-mail --enable-mmrm1stspace --enable-relp --enable-usertools --enable-imjournal --enable-valgrind
make
sudo make install
sudo ldconfig
systemctl --no-reload preset rsyslog
systemctl daemon-reload
systemctl restart rsyslog
systemctl status rsyslog
- rsyslog/rsyslog#1920
- http://www.rsyslog.com/doc/build_from_repo.html
- rsyslog/rsyslog#1839 (comment) (reference to CFLAGS build option)
- https://git.centos.org/blob/rpms!rsyslog.git/c7/SPECS!rsyslog.spec
- https://github.com/systemd/systemd/blob/master/src/core/macros.systemd.in
- https://askubuntu.com/questions/27677/cannot-find-install-sh-install-sh-or-shtool-in-ac-aux (help with building librelp)
- https://git-scm.com/docs/git-clean
- https://github.com/rsyslog/liblognorm/blob/master/doc/installation.rst
- https://github.com/rsyslog/libfastjson/blob/master/README.md
- https://github.com/rsyslog/rsyslog-docker/blob/master/dev_env/ubuntu/devel/setup-system.sh
- https://github.com/rsyslog/rsyslog-docker/blob/master/dev_env/centos7dev/Dockerfile
- https://github.com/rsyslog/rsyslog/blob/master/ChangeLog