libevent-2.1.13

#### Beyond Linux® From Scratch (systemd Edition) - Version r13.0-1303

### Chapter 17. Networking Libraries

- Prev

  ldns-1.9.2

- Next

  libmnl-1.0.5

- Up
- Home

# libevent-2.1.13

## Introduction to libevent

libevent is an asynchronous event notification software library. The libevent API provides a mechanism to execute a callback function when a specific event occurs on a file descriptor or after a timeout has been reached. Furthermore, libevent also supports callbacks due to signals or regular timeouts.

### Note

This package is known to build and work properly using an LFS 13.1 platform.

### Package Information

- Download (HTTP): https://github.com/libevent/libevent/releases/download/release-2.1.13-stable/libevent-2.1.13-stable.tar.gz

- Download MD5 sum: eaa0bd3472b5d6a52ac6b9e0b7418b03

- Download size: 1.1 MB

- Estimated disk space required: 23 MB (with tests and API docs)

- Estimated build time: 0.3 SBU (add 11 SBU for tests)

### libevent Dependencies

#### Optional

Doxygen-1.18.0 (for API documentation)

## Installation of libevent

First, fix an issue that prevents event_rpcgen.py from working:

    sed -i 's/python/&3/' event_rpcgen.py

Install libevent by running the following commands:

    ./configure --prefix=/usr --disable-static &&
    make

If you have Doxygen-1.18.0 installed and wish to build API documentation, issue :

    doxygen Doxyfile

To test the results, issue: make verify. Seven tests in every suite related to `regress_ssl.c` and `regress_http.c` are known to fail due to incompatibilities with OpenSSL-3. Some tests that are related to `regress_dns.c` are also known to fail intermittently due to insufficient test timeouts.

Now, as the `root` user:

    make install

If you built the API documentation, install it by issuing the following commands as the `root` user:

    install -v -m755 -d /usr/share/doc/libevent-2.1.13/api &&
    cp      -v -R       html/* \
                        /usr/share/doc/libevent-2.1.13/api

## Command Explanations

`--disable-static`: This switch prevents installation of static versions of the libraries.

## Contents

Installed Program: event_rpcgen.py
Installed Libraries: libevent_core.so, libevent_extra.so, libevent_openssl.so, libevent_pthreads.so and libevent.so
Installed Directory: /usr/include/event2 and /usr/share/doc/libevent-2.1.13

- Prev

  ldns-1.9.2

- Next

  libmnl-1.0.5

- Up
- Home