<?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>3562</bug_id>
          
          <creation_ts>2012-12-11 01:04:36 +0000</creation_ts>
          <short_desc>ghostscript-native: do_compile failed if host does not install libjpeg</short_desc>
          <delta_ts>2012-12-21 08:44:01 +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.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hongxu Jia">hongxu.jia</reporter>
          <assigned_to name="Hongxu Jia">hongxu.jia</assigned_to>
          <cc>hongxu.jia</cc>
    
    <cc>kai.kang</cc>
    
    <cc>liang.li2</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>Qi.Chen</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</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>28141</commentid>
    <comment_count>0</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2012-12-11 01:04:36 +0000</bug_when>
    <thetext>tree/branch: poky/master
commit 381c4b69c7e8b452f4d3de2f8214e6e5f6a9abe7
Test Env:
Fedora release 17 (Beefy Miracle)
Linux version 3.6.6-1.fc17.x86_64 (mockbuild@) 
(gcc version 4.7.2 20120921(Red Hat 4.7.2-2) (GCC) ) 
#1 SMP Mon Nov 5 21:59:35 UTC 2012

*problem
running bitbake as the following sequence:
$bitbake tiff-native
$bitbake ghostscript-native
&gt;&gt;error log&lt;&lt;
libjpeg.so.8, needed by libtiff.so, not found
libtiff.so: undefined reference to `jpeg_set_defaults@LIBJPEG_8.0&apos;
collect2: error: ld returned 1 exit status
...

*analysis
1. Running bitbake tiff-native, the libtiff and
libjpeg are populated to the staging native
directories.

2. If the host doesn&apos;t install libjpeg, 
the configure of ghostscript-native tests the
existance of libtiff which is located at staging
directory but libjpeg is not found by configure.

3. Even though we could modify configure to let
ghostscript-native link to libjpeg which is only
located at the staging native directories, but it
still can&apos;t load the lib when you run the mkromfs
which is created by ghostscript-native. The 
mkromfs needs libtiff and libjpeg to compile
ghostscript. That means &quot;bitbake ghostscript&quot; is
failed.

*resolution
Modify the configure of ghostscript-native, explicity
disable libtiff.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28385</commentid>
    <comment_count>1</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2012-12-20 00:32:52 +0000</bug_when>
    <thetext>Merged into master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=ea2a7ae8c62f52f55419e169cc8fd24e823a61c8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28417</commentid>
    <comment_count>2</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-12-21 08:44:01 +0000</bug_when>
    <thetext>change &quot;/usr/lib64/libjpeg.so.62.0.0&quot; to &quot;/usr/lib64/libjpeg.so.62.0.0.bak&quot; on fedora17 x86_64 host,then run &quot;bitbake tiff-native;bitbake ghostscript-native&quot;,no error found with git master branch:90c0eb29f0b41e4ac2d3d17ebad7295c2ebdc02a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>