Bug 3562 - ghostscript-native: do_compile failed if host does not install libjpeg
Summary: ghostscript-native: do_compile failed if host does not install libjpeg
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.4 M2
Assignee: Hongxu Jia
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-12-11 01:04 UTC by Hongxu Jia
Modified: 2012-12-21 08:44 UTC (History)
10 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hongxu Jia 2012-12-11 01:04:36 UTC
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
>>error log<<
libjpeg.so.8, needed by libtiff.so, not found
libtiff.so: undefined reference to `jpeg_set_defaults@LIBJPEG_8.0'
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'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'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 "bitbake ghostscript" is
failed.

*resolution
Modify the configure of ghostscript-native, explicity
disable libtiff.
Comment 2 liang li 2012-12-21 08:44:01 UTC
change "/usr/lib64/libjpeg.so.62.0.0" to "/usr/lib64/libjpeg.so.62.0.0.bak" on fedora17 x86_64 host,then run "bitbake tiff-native;bitbake ghostscript-native",no error found with git master branch:90c0eb29f0b41e4ac2d3d17ebad7295c2ebdc02a