Yocto: build syslog-ng with Python support

Christian Hollermann <[email protected]>
Newsgroups gmane.comp.syslog-ng
Message-ID <[email protected]>
Hi,
in our project we use a Yocto based build system (branch dunfell, Linux Kernel 5.10) for a while. At the next step, we plan to capture log messages from different sources with the help of syslog-ng (3.24.1). For some sources we will use a Python script that implements an interface to another system. Our problem is now, that we cannot build syslog-ng with a working Python support. Our build completes successfully, but the newly generated library 'libmod-python.so' seems to be broken as we get an error message when we use the following command to verify the installation.

syslog-ng --module-registry | grep python
Error opening plugin module; module='mod-python', error='/usr/lib/syslog-ng/libmod-python.so: undefined symbol: PyExc_ValueError'
Module: mod-python
Status: Unable to dlopen shared object, probably not a syslog-ng module


Below you can see our current syslog recipe.


syslog-ng_%.bbappend:

FILESEXTRAPATHS_append := ":${THISDIR}/${PN}"

DEPENDS += " python3 "

# Override of default config file
SRC_URI += "file://syslog-ng.conf.systemd"

# Just to be sure
EXTRA_OECONF_remove = "--disable-python"

# Enable Python Support
EXTRA_OECONF += "--enable-python --with-python=3"


Can you give us hint, how to to fix this behavior?

Thanks and Regards,
Christian

______________________________________________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.