TECHIES WORLD

For Techs.... Techniques.... Technologies....

Linux

Getting error while installing Lighttpd server

make && make install

Error:

network.c: In function ‘network_openssl_load_pemfile’:
network.c:586: error: ‘i’ undeclared (first use in this function)
network.c:586: error: (Each undeclared identifier is reported only once
network.c:586: error: for each function it appears in.)
make[3]: *** [network.o] Error 1
make[3]: Leaving directory `/usr/local/src/lighttpd-1.4.34/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/lighttpd-1.4.34/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/lighttpd-1.4.34'
make: *** [all] Error 2

Solution:

For fix it open network.c file in src and edit on 586

change data_config *dc = (data_config *)srv->config_context->data[i];

to

data_config *dc = (data_config *)srv->config_context->data;

Leave a Reply