Lighttpd: network.c:483: error: ‘EC_KEY’ undeclared (first use in this function) Error and Solution

The error “network.c:483: error: ‘EC_KEY’ undeclared (first use in this function)” when compiling the lighttpd web server usually indicates that the OpenSSL library on your system is missing the elliptic curve cryptography (ECC) support that lighttpd requires. To resolve this issue, you can try the following steps:

  1. Check the version of OpenSSL installed on your system. You can do this by running the following command:
openssl version
  1. If the version of OpenSSL installed on your system does not support ECC, you will need to install a version of OpenSSL that does. You can do this by either compiling the latest version of OpenSSL from source or by installing it through your system’s package manager (e.g., apt-get, yum, etc.).
  2. Once you have installed a version of OpenSSL that supports ECC, you will need to reconfigure and recompile lighttpd to use the new version of OpenSSL. To do this, you can run the following commands:
./configure --with-openssl
make
sudo make install

Note that these commands assume that you have already unpacked the lighttpd source code and are in the directory where the lighttpd source code is located.

By following these steps, you should be able to resolve the “network.c:483: error: ‘EC_KEY’ undeclared (first use in this function)” error and successfully compile and install lighttpd on your system.

Leave a Comment