Wind River Support Network

HomeDefectsLIN5-5225
Fixed

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

Created: Oct 30, 2013    Updated: Dec 19, 2017
Resolved Date: Dec 2, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.10
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: Kernel

Description

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

 743 AC_MSG_CHECKING(for LIBNET)
 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
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
Online