<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>2740</bug_id>
          
          <creation_ts>2012-07-12 02:13:24 +0000</creation_ts>
          <short_desc>sysstat 10.0.3:do_compile sysstat build failed when add lm-sensors to the rootfs</short_desc>
          <delta_ts>2012-11-07 15:33:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>1.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>P2</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Song.Li">Song.Li</reporter>
          <assigned_to name="Song.Li">Song.Li</assigned_to>
          <cc>alexandrux.palalau</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>Song.Li</cc>
    
    <cc>song.liu</cc>
    
    <cc>zhenfeng.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>23017</commentid>
    <comment_count>0</comment_count>
    <who name="Song.Li">Song.Li</who>
    <bug_when>2012-07-12 02:13:24 +0000</bug_when>
    <thetext>Problem Description 
====================== 
sysstat build failed when add lm-sensors to the rootfs



Expected Behavior 
====================== 
 sysstat should build successfully!


Observed Behavior 
====================== 
| a - common.o
| a - ioconf.o
| i686-wrs-linux-gnu-gcc   -m64 -Wl,-O1 -Wl,--hash-style=gnu
--sysroot=/buildarea2/fli/intel-xeon-core/bitbake_build/tmp/sysroots/intel-xeon-core -o sadc -O2 -pipe -g -feliminate-unused-debug-types -Wall -Wstrict-prototypes -pipe -O2 sadc.o act_sadc.o sa_wrap.o sa_common.o librdstats.a librdsensors.a libsyscom.a
| sadc.o: In function `main&apos;:
| /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/sysstat-10.0.3/sadc.c:987: undefined reference to `sensors_init&apos;
| /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/sysstat-10.0.3/sadc.c:1143: undefined reference to `sensors_cleanup&apos;
| /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/sysstat-10.0.3/sadc.c:989: undefined reference to `sensors_strerror&apos;
| librdsensors.a(rd_sensors.o): In function `read_fan&apos;:
| /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/sysstat-10.0.3/rd_sensors.c:66: undefined reference to `sensors_get_detected_chips&apos;
| /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/sysstat-10.0.3/rd_sensors.c:68: undefined reference to `sensors_get_features&apos;
| /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/sysstat-10.0.3/rd_sensors.c:72: undefined reference to `sensors_snprintf_chip_name&apos;
| /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/sysstat-10.0.3/rd_sensors.c:74: undefined reference to `sensors_get_all_subfeatures&apos;
| /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/sysstat-10.0.3/rd_sensors.c:82: undefined reference to `sensors_get_value&apos;
| /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/sysstat-10.0.3/rd_sensors.c:77: undefined reference to `sensors_get_value&apos;
| librdsensors.a(rd_sensors.o): In function `read_temp&apos;:
| /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/sysstat-10.0.3/rd_sensors.c:120: undefined reference to `sensors_get_detected_chips&apos;
| /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/sysstat-10.0.3/rd_sensors.c:122: undefined reference to `sensors_get_features&apos;
| /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/sysstat-10.0.3/rd_sensors.c:126: undefined reference to `sensors_snprintf_chip_name&apos;
| /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/sysstat-10.0.3/rd_sensors.c:128: undefined reference to `sensors_get_all_subfeatures&apos;
| /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/sysstat-10.0.3/rd_sensors.c:141: undefined reference to `sensors_get_value&apos;
| /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/sysstat-10.0.3/rd_sensors.c:131: undefined reference to `sensors_get_value&apos;
| /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/sysstat-10.0.3/rd_sensors.c:136: undefined reference to `sensors_get_value&apos;
| librdsensors.a(rd_sensors.o): In function `read_in&apos;:
| /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/sysstat-10.0.3/rd_sensors.c:179: undefined reference to `sensors_get_detected_chips&apos;
| /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/sysstat-10.0.3/rd_sensors.c:181: undefined reference to `sensors_get_features&apos;
| /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/sysstat-10.0.3/rd_sensors.c:185: undefined reference to `sensors_snprintf_chip_name&apos;
| /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/sysstat-10.0.3/rd_sensors.c:187: undefined reference to `sensors_get_all_subfeatures&apos;
| /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/sysstat-10.0.3/rd_sensors.c:190: undefined reference to `sensors_get_value&apos;
| /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/sysstat-10.0.3/rd_sensors.c:200: undefined reference to `sensors_get_value&apos;
| /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/sysstat-10.0.3/rd_sensors.c:195: undefined reference to `sensors_get_value&apos;
| librdsensors.a(rd_sensors.o): In function `get_sensors_nr&apos;:
| /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/sysstat-10.0.3/rd_sensors.c:231: undefined reference to `sensors_get_detected_chips&apos;
| /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/sysstat-10.0.3/rd_sensors.c:233: undefined reference to `sensors_get_features&apos;
| collect2: ld returned 1 exit status
| make: *** [sadc] Error 1
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile
(see /buildarea2/fli/intel-xeon-core/bitbake_build/tmp/work/x86_64-wrs-linux/sysstat-10.0.3-r1/temp/do_compile/log.do_compile.19161 for further information)
NOTE: package sysstat-10.0.3-r1: task do_compile: Failed
ERROR: Task 4
(/buildarea2/fli/intel-xeon-core/layers/oe-core/meta/recipes-extended/sysstat/sysstat_10.0.3.bb, do_compile) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 181 tasks of which 176 didn&apos;t need to
be rerun and 1 failed.

Summary: 1 task failed:
  /buildarea2/fli/intel-xeon-core/layers/oe-core/meta/recipes-extended/sysstat/sysstat_10.0.3.bb, do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit
code.
make: *** [sysstat.compile] Error 1
make: Leaving directory `/buildarea2/fli/intel-xeon-core/build&apos;


Misc Info 
====================== 
when added the lm-sensors to the rootfs, sysstat will detect the
sensors existing, and would compile sadc
with sensors lib, but in the sysstat.inc file, it set 
EXTRA_OEMAKE += &apos;LFLAGS=&quot;&quot;&apos;
this empty LFLAGS will pass to sysstat Makefile and rm the sensors
lib, so that this cause errors


Steps to Reproduce 
======================
configure
--enable-board=intel-xeon-core --enable-rootfs=glibc_std
--enable-kernel=standard --with-layer=&lt;wrll-runtime-testing&gt;/userspace
 --with-template=feature/userspace-base

make -C build lm-sensors.addpkg
make -C build sysstat</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27169</commentid>
    <comment_count>1</comment_count>
    <who name="Song.Li">Song.Li</who>
    <bug_when>2012-11-02 02:30:08 +0000</bug_when>
    <thetext>sysstat has been upated to version 10.1.1 now.
In new stsstat recipe, there is EXTRA_OECONF += &quot;--disable-sensors&quot; line, this will ignore the lm-sensors lib.so the defect has been fixed by this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27296</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Palalau">alexandrux.palalau</who>
    <bug_when>2012-11-07 15:33:45 +0000</bug_when>
    <thetext>Verified on meta-intel master branch, commit ID:fa655a783bc1e41109f408ff49b785d664f64106</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>