Wind River Support Network

HomeDefectsLIN7-6380
Fixed

LIN7-6380 : host-contamination: squid do_configure fails when host has installed libxml2-dev package

Created: Jun 10, 2016    Updated: Sep 8, 2018
Resolved Date: Jun 21, 2016
Found In Version: 7.0
Fix Version: 7.0.0.17
Severity: Standard
Applicable for: Wind River Linux 7
Component/s: Userspace

Description

This primarily affects CentOS hosts as in LIN8-3431 and LIN7-6234
The problem occurs when the hosts contains libxml2-dev headers in:
/usr/include/libxml, when these are present, the build looks to the host
for these headers. But when they aren't present on the host it falls to using
the yocto-provided libxml2 headers.

In order to see the mention effects you can strike a diff between the attached files (config.log-bad and config.log-good) and see that in config.log-good we get errors when trying to include headers such as:
#include <libxml/parser.h> 
Which normally are provided by libxml2-dev package, but after giving these errors, it will use the yocto-provided headers instead, and thus the do_configure task will not contaminate the package configuration with paths towards the host headers.

$ bitbake -c configure squid

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
Setting up host-cross and links
Setting up packages link
Creating export directory
Creating project properties
ERROR: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities.
Rerun configure task after fixing this. The path was '/buildarea/raid0/xxxx/LIN7-6234-fromscratch/bitbake_build/tmp/work/core2-64-wrs-
linux/squid/3.4.7-r0/build'
ERROR: Function failed: do_qa_configure
ERROR: Logfile of failure stored in: /buildarea/raid0/xxxx/LIN7-6234-fromscratch/bitbake_build/tmp/work/core2-64-wrs-linux/squid/3.4.7
-r0/temp/do_configure/log.do_configure.67486
ERROR: Task 4 (/buildarea/raid0/xxxx/LIN7-6234-fromscratch/layers/meta-networking/recipes-daemons/squid/squid_3.4.7.bb, do_configure) 
failed with exit code '1'
NOTE: Tasks Summary: Attempted 645 tasks of which 640 didn't need to be rerun and 1 failed.

Other Downloads


Live chat
Online