Hi!

As far as I remember, syslog-ng 3.2 was not yet modular, so it's very strange that you have a 3.2 binary which searches for modules.
Can you please post the output of syslog-ng --version and syslog-ng --module-registry?

By the way, syslog-ng 3.2 is about 4-5 years old, so it is heavily outdated. The most recent stable version is 3.5.5.

BR,
Viktor


On Wed, Jul 23, 2014 at 5:30 PM, Jean Faye <ismael.faye@yahoo.fr> wrote:
confirm a6d843f7ad7d1dbf1fefb6f12432e54941a680a9

I first configure and compile eventlog (eventlog-0.2.13) and then configure and compile syslog-ng (syslog-ng-3.2.5).

I configure syslog-ng with following parameters:
  --with-libnet=${STAGING_BINDIR_CROSS} \
  --enable-dynamic-linking \
  ${noipv6} \
  --enable-ssl \
  --disable-sub-streams \
  --disable-pacct \
  --disable-linux-caps \
  --disable-pcre \
  --disable-sql \
  --enable-systemd \
  --with-systemdsystemunitdir=${systemd_unitdir}/system \

And I install it using:
        mv ${D}/${sysconfdir}/modules.conf ${D}/${sysconfdir}/scl-modules.conf
        sed -i "s#@include 'modules.conf'#@include 'scl-modules.conf'#g" ${D}/${sysconfdir}/scl.conf
        install -d ${D}/${sysconfdir}/${PN}
        install ${WORKDIR}/syslog-ng.conf ${D}${sysconfdir}/${PN}.conf
        install -d ${D}/${sysconfdir}/init.d
        install -m 755 ${WORKDIR}/initscript ${D}/${sysconfdir}/init.d/syslog.${PN}

with
${sysconfdir = /etc
${PN}=syslog-ng

I used this syslog-ng.inc file:

DESCRIPTION = "Alternative system logger daemon"
DEPENDS = "libol flex eventlog glib-2.0"
LICENSE = "GPL LGPL"
LIC_FILES_CHKSUM = "file://COPYING;md5=7ec1bcc46f28b11f4722e20d9b7dd4d5"

# syslog initscript is handled explicitly because order of
# update-rc.d and update-alternatives is important
RDEPENDS_${PN} += " ${@base_conditional("ONLINE_PACKAGE_MANAGEMENT", "none", "", "update-rc.d", d)}"

INC_PR = "r7"

inherit autotools systemd

SRC_URI = "http://www.balabit.com/downloads/files/syslog-ng/sources/${PV}/source/${PN}_${PV}.tar.gz"

noipv6 = "${@base_contains('DISTRO_FEATURES', 'ipv6', '', '--disable-ipv6', d)}"

EXTRA_OECONF = " \
  --with-libnet=${STAGING_BINDIR_CROSS} \
  --enable-dynamic-linking \
  ${noipv6} \
  --enable-ssl \
  --disable-sub-streams \
  --disable-pacct \
  --disable-linux-caps \
  --disable-pcre \
  --disable-sql \
  --enable-systemd \
  --with-systemdsystemunitdir=${systemd_unitdir}/system \
"

do_configure_prepend() {
        eval "${@base_contains('DISTRO_FEATURES', 'largefile', '', 'sed -i -e "s/-D_LARGEFILE_SOURCE//" -e "s/-D_FILE_OFFSET_BITS=64//" ${S}/configure.in', d)}"
}

# rename modules.conf because it breaks update-modules
# see http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-October/035537.html
do_install_append() {
        mv ${D}/${sysconfdir}/modules.conf ${D}/${sysconfdir}/scl-modules.conf
        sed -i "s#@include 'modules.conf'#@include 'scl-modules.conf'#g" ${D}/${sysconfdir}/scl.conf
        install -d ${D}/${sysconfdir}/${PN}
        install ${WORKDIR}/syslog-ng.conf ${D}${sysconfdir}/${PN}.conf
        install -d ${D}/${sysconfdir}/init.d
        install -m 755 ${WORKDIR}/initscript ${D}/${sysconfdir}/init.d/syslog.${PN}
}

SYSTEMD_PACKAGES = "${PN}-systemd"
SYSTEMD_SERVICE = "${PN}.service"

FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS} \
            ${sysconfdir} ${sharedstatedir} ${localstatedir} \
            ${base_bindir}/* ${base_sbindir}/* \
            ${base_libdir}/*${SOLIBS} \
            ${datadir}/${BPN} ${libdir}/${BPN}/*${SOLIBS} \
            ${datadir}/include/scl/ ${datadir}/xsd"
FILES_${PN}-dev += "${libdir}/${BPN}/lib*.la ${libdir}/${BPN}/*${SOLIBSDEV}"
CONFFILES_${PN} = "${sysconfdir}/${PN}.conf ${sysconfdir}/scl.conf ${sysconfdir}/scl-modules.conf"

pkg_postinst_${PN} () {
        /etc/init.d/syslog stop
        update-alternatives --install ${sysconfdir}/init.d/syslog syslog-init syslog.${PN} 200

        if test "x$D" != "x"; then
                OPT="-r $D"
        else
                OPT="-s"
        fi
        # remove all rc.d-links potentially created from alternative
        # syslog packages before creating new ones
        update-rc.d $OPT -f syslog remove
        update-rc.d $OPT syslog start 20 2 3 4 5 . stop 90 0 1 6 .
}

pkg_prerm_${PN} () {
        if test "x$D" = "x"; then
                if test "$1" = "upgrade" -o "$1" = "remove"; then
                        /etc/init.d/syslog stop
                fi
        fi

        update-alternatives --remove syslog-init syslog.${PN}
}

pkg_postrm_${PN} () {
        if test "x$D" != "x"; then
                OPT="-r $D"
        else
                OPT=""
        fi
        if test "$1" = "remove" -o "$1" = "purge"; then
                if ! test -e "/etc/init.d/syslog"; then
                        update-rc.d $OPT syslog remove
                fi
        fi
}


Le Mercredi 23 juillet 2014 17h00, Gergely Nagy <algernon@balabit.hu> a écrit :


Jean Faye <ismael.faye@yahoo.fr> writes:

> There is no syslog-ng directory in /usr/lib/ on my platform. It's strange.

Then your installation is incomplete. How did you install syslog-ng?


--
|8]
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq




______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq