[syslog-ng] testing fix for file source ownership and permissionso

Jim Segrave jes at j-e-s.net
Thu Nov 30 15:47:42 UTC 2017


> hi,

 > I've just posted a pull request that I didn't have time to test: can you pls test if this fixes the issue for you?

>  https://github.com/balabit/syslog-ng/pull/1782 <https://github.com/balabit/syslog-ng/pull/1782>

While my original patch worked on 3.6.5, we actually need some of the features in 3.12.

I have problems with autogen/automake being unhappy with the versions of the autotool chain I have:

running autogen.sh:

Running autogen in 'lib/ivykis'...
libtoolize: You should add the contents of the following files to 'aclocal.m4':
libtoolize:   '/usr/local/share/aclocal/libtool.m4'
libtoolize:   '/usr/local/share/aclocal/ltoptions.m4'
libtoolize:   '/usr/local/share/aclocal/ltversion.m4'
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.

(catting the suggested files onto aclocal.m4 does not remove these warnings)

However configure does finish, but make bombs out with:


/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -D_GNU_SOURCE -I../src/include -I../src/include   -I /usr/local/src/syslog-ng -Wall -pthread -Wno-error -MT iv_avl.lo -MD 
-MP -MF .deps/iv_avl.Tpo -c -o iv_avl.lo iv_avl.c
libtool: Version mismatch error.  This is libtool 2.4.5, but the
libtool: definition of this LT_INIT comes from libtool 2.4.2.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4.5
libtool: and run autoconf again.
make[5]: *** [iv_avl.lo] Error 63
make[4]: *** [all-recursive] Error 1
make[3]: *** [all] Error 2
make[2]: *** [lib/ivykis/src/libivykis.la] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I was able to get a working version from the 3.6.5 sources. When I get the 3.12.1 sources from the Centos rpm, I can run configure without running autogen, which does complete and make completes 
without errors. However, the resulting executable fails to start with this error message:

Error parsing config, Error compiling template (Unknown template function "format-json32:
included
included

template-function "format-cim" "$(format-json --pair @timestamp='${R_ISODATE}' --pair .=_ --key *.*)\n";
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I know next to nothing about the automake and friends (or m4 for that matter), so I don't really know how to address this.

-- 

-- 
Jim Segrave
jes at j-e-s.net



More information about the syslog-ng mailing list