Wind River Support Network

HomeDefectsLIN6-3302
Not to be fixed

LIN6-3302 : libpcap: pcap-config --libs returns useless RPATH

Created: Aug 20, 2013    Updated: Apr 19, 2018
Resolved Date: Apr 17, 2018
Previous ID: LIN5-7925, LIN6-2770
Found In Version: 6.0
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: Userspace

Description

pcap-config --libs will return with -Wl,rpath,$(libdir) however the RPATH is in /usr/lib* so it is redundant and should not be returned.

Building with multilibs on in Yocto you will not that V_RPATH_OPT="" and so this is not an issue since the -rpath component is not part of the return.

Steps to Reproduce

If you run pcap-config you will note that it returns with -Wl,-rpath,$(libdir)

ie.:
./bitbake_build/tmp/sysroots/intel-xeon-core/usr/bin/crossscripts/pcap-config --libs

Since applications (such as libvirt) use pcap-config to get necessary libs this will cause a redundant RPATH QA warning since the RPATH is in /usr/lib*. This is due to the pcap-config script not being compatible with multilibs.
Live chat
Online