Wind River Support Network


LIN6-2583 : WRL5: Syslog-ng package has faulty hard dependency to LIBNET, causing broken cross-compilation on some Hosts.

Created: Oct 30, 2013    Updated: Dec 3, 2018
Resolved Date: Dec 19, 2013
Previous ID: LIN5-5234
Found In Version: 6.0
Fix Version:
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: Kernel


The problem is with the syslog-ng package itself. Looking at the we can see:

 744 if test "x$with_libnet" = "x"; then
 745         LIBNET_CONFIG="`which libnet-config`"
 746 else
 747         LIBNET_CONFIG="$with_libnet/libnet-config"
 748 fi

This is obivously broken for cross-compilation if we have libnet-config installed on our host machine.

libnet isn't a hard requirement to build syslog-ng, thus there shouldn't be one in the recipe. 

Steps to Reproduce

Use a SUSE 11.2 host.

Configure  --enable-kernel=standard --enable-rootfs=glibc_core --enable-board=intel_xeon_core --enable-parallel-pkgbuilds=3 --enable-jobs=3 --enable-reconfig --with-rcpl-version=0003  or 0008
make -C build syslog-ng.addpkg
make -C build syslog-ng

This will fail with a missing dependency to LIBNET.
OR a  broken cross-compilation if libnet-config are installed on the host machine.

Other Downloads

Live chat