Wind River Support Network

HomeDefectsLIN6-8518
Fixed

LIN6-8518 : lighttpd does not build with openssl option

Created: Oct 10, 2014    Updated: Dec 3, 2018
Resolved Date: Oct 16, 2014
Found In Version: 6.0.0.11
Fix Version: 6.0.0.13
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace

Description

When trying the to build lighttpd with openssl enabled it fails with various errors:
| powerpc-wrs-linux-gcc  -m32 -mhard-float -mcpu=e6500 --sysroot=/build/b4860_wrl6/bitbake_build/tmp/sysroots/fsl-b4xxx -DHAVE_CONFIG_H -DHAVE_VERSION_H -DLIBRARY_DIR="\"/usr/lib\"" -DSBIN_DIR="\"/usr/sbin\"" -I. -I..   -D_REENTRANT -D__EXTENSIONS__ -DOPENSSL_NO_KRB5  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES  -O2 -pipe -g -feliminate-unused-debug-types -Wall -W -Wshadow -pedantic -std=gnu99 -c log.c
| network.c: In function 'network_init':
| network.c:731:44: error: 'specific_config' has no member named 'ssl_enabled'
|    if (buffer_is_empty(s->ssl_pemfile) || !s->ssl_enabled) continue;
|                                             ^
| network.c:971:20: warning: declaration of 's' shadows a previous local [-Wshadow]
|    specific_config *s = srv->config_storage[i];
|                     ^
| network.c:692:20: warning: shadowed declaration is here [-Wshadow]
|    specific_config *s = srv->config_storage[i];
|                     ^
| network.c:994:1: warning: ISO C forbids nested functions [-Wpedantic]
|  int network_register_fdevents(server *srv) {
|  ^
| network.c:994:5: warning: declaration of 'network_register_fdevents' shadows a global declaration [-Wshadow]
|  int network_register_fdevents(server *srv) {
|      ^
| In file included from network.c:1:0:
| network.h:11:5: warning: shadowed declaration is here [-Wshadow]
|  int network_register_fdevents(server *srv);
|      ^
| network.c: In function 'network_register_fdevents':
| network.c:994:39: warning: declaration of 'srv' shadows a parameter [-Wshadow]
|  int network_register_fdevents(server *srv) {
|                                        ^
| network.c:612:26: warning: shadowed declaration is here [-Wshadow]
|  int network_init(server *srv) {
|                           ^
| network.c:995:9: warning: declaration of 'i' shadows a previous local [-Wshadow]
|   size_t i;
|          ^
| network.c:614:9: warning: shadowed declaration is here [-Wshadow]
|   size_t i, j;
|          ^
| network.c: In function 'network_init':
| network.c:1011:1: warning: ISO C forbids nested functions [-Wpedantic]
|  int network_write_chunkqueue(server *srv, connection *con, chunkqueue *cq, off_t max_bytes) {
|  ^
| network.c:1011:5: warning: declaration of 'network_write_chunkqueue' shadows a global declaration [-Wshadow]
|  int network_write_chunkqueue(server *srv, connection *con, chunkqueue *cq, off_t max_bytes) {
|      ^
| In file included from network.c:1:0:
| network.h:6:5: warning: shadowed declaration is here [-Wshadow]
|  int network_write_chunkqueue(server *srv, connection *con, chunkqueue *c, off_t max_bytes);
|      ^
| network.c: In function 'network_write_chunkqueue':
| network.c:1011:38: warning: declaration of 'srv' shadows a parameter [-Wshadow]
|  int network_write_chunkqueue(server *srv, connection *con, chunkqueue *cq, off_t max_bytes) {
|                                       ^
| network.c:612:26: warning: shadowed declaration is here [-Wshadow]
|  int network_init(server *srv) {
|                           ^
| network.c: In function 'network_init':
| network.c:1086:1: error: expected declaration or statement at end of input
|  }
|  ^
| network.c: At top level:
| network.c:582:12: warning: 'network_openssl_load_pemfile' defined but not used [-Wunused-function]
|  static int network_openssl_load_pemfile(server *srv, size_t ndx) {

...

Steps to Reproduce

1.
/wrlinux-6/wrlinux/configure --enable-board=fsl-b4xxx --enable-kernel=preempt-rt --enable-rootfs=glibc_small --enable-jobs=4 --enable-checkout-all-layers --with-layer=meta-selinux,wr-security,cgp --with-rcpl-version=0012

2.
modify lighttpd_1.4.32.bb like this
10c10
< DEPENDS = "zlib libpcre"
---
> DEPENDS = "zlib libpcre openssl"
43c43
<              --without-openssl \
---
>              --with-openssl \

3. make -C build lighttpd.build

build log attached

Other Downloads


Live chat
Online