Wind River Support Network

HomeDefectsLIN9-7002
Fixed

LIN9-7002 : apache2 mod_deflate not building when zlib1g-dev is missing from host

Created: Jun 25, 2018    Updated: Mar 27, 2019
Resolved Date: Jul 5, 2018
Found In Version: 9.0.0.16
Fix Version: 9.0.0.17
Severity: Standard
Applicable for: Wind River Linux 9
Component/s: Build & Config

Description

apache2 mod_deflate not building when zlib1g-dev is missing from host

Workaround

Apply the attached patch.

Steps to Reproduce

Note: The tests were ran on Ubuntu 16.04

1. Remove zlib1g-dev

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)

Other Downloads


Live chat
Online