Fixed
Created: Jul 2, 2018
Updated: Dec 3, 2018
Resolved Date: Jul 10, 2018
Found In Version: 10.17.41.1
Fix Version: 10.17.41.9
Severity: Standard
Applicable for: Wind River Linux LTS 17
Component/s: Build & Config
When building apache2 (non-native) on Ubuntu 16.04 without zlib1g-dev installed, mod_deflate is not being built.
The client found that adding it as an explicit dependency and providing a path for zlib fixes the issue.
Note: The tests were ran on Ubuntu 16.04
1. Remove zlib1g-dev
apache2-zlib-dependency-issue-for-mod_deflate.patch
2. Build project:
$ ./wrlinux-9/setup.sh --machines intel-x86-64
3. Edit local.conf:
BB_NO_NETWORK ?= '1' -> BB_NO_NETWORK ?= '0'
IMAGE_INSTALL_append = " apache2"
4. Check non-native configure log:
$ egrep "(zlib|deflate)" tmp/work/corei7-64-wrs-linux/apache2/2.4.23-r0/temp/log.do_configure
DEBUG: Considering setscene task: ['zlib-native', 'do_populate_sysroot']
DEBUG: considering dependency: ['zlib-native', 'do_populate_sysroot']
DEBUG: Considering setscene task: ['zlib', 'do_populate_sysroot']
DEBUG: considering dependency: ['zlib-native', 'do_populate_sysroot']
DEBUG: considering dependency: ['zlib', 'do_populate_sysroot']
checking whether to enable mod_deflate... checking dependencies
checking for zlib location... not found
checking whether to enable mod_deflate... no (disabled)
5. Install zlib1g-dev, rebuild and check again:
$ sudo apt-get install zlib1g-dev
$ bitbake -c cleanall apache2 && bitbake apache2
$ egrep "(zlib|deflate)" tmp/work/corei7-64-wrs-linux/apache2/2.4.23-r0/temp/log.do_configure
DEBUG: Considering setscene task: ['zlib', 'do_populate_sysroot']
DEBUG: Considering setscene task: ['zlib-native', 'do_populate_sysroot']
DEBUG: considering dependency: ['zlib', 'do_populate_sysroot']
DEBUG: considering dependency: ['zlib', 'do_populate_sysroot']
DEBUG: considering dependency: ['zlib-native', 'do_populate_sysroot']
checking whether to enable mod_deflate... checking dependencies
checking for zlib location... /usr
checking for zlib library... found
checking whether to enable mod_deflate... shared (most)