MidgardOS Developer Documentation

A website documenting creating the build root for MidgardOS


Section 5 - Building the Base System Tools

Navigation    
« GNU LibTasn1 32-bit HOME GNU TLS 32-bit »

GNU TLS 64-bit

Name: GNU TLS 64-bit
Summary: The GNU TLS and SSL library
License: GPL v3 or later/LGPL v2.1 or later
Version: 3.8.12
URL: https://www.gnupg.org/ftp/gcrypt/gnutls/v3.8/gnutls-3.8.12.tar.xz

Average Build Time: 0.3 SBU
Used Install Space: 20 MiB

Preparation

Due to changes in the Nettle 4.0 release, certain headers are no longer present or installed. To fix the compilation of GnuTLS, the following patch should be applied using the command that follows:

patch -Np1 -i ../patches/gnutls/gnutls-3.8.12-nettle4_fixes-1.patch

Configuration

To configure GNU TLS 64-bit for install into the build root, run the following command:

./configure --prefix=/usr                               \
            --libdir=/usr/lib64                         \
            --libexecdir=/usr/lib64                     \
            --disable-static                            \
            --disable-rpath                             \
            --enable-shared                             \
            --disable-gcc-warnings                      \
            --enable-fips140-mode                       \
            --with-fips140-module-name="GnuTLS version" \
            --with-fips140-module-version="3.8.12"      \
            --enable-year2038                           \
            --without-p11-kit                           \
            --without-tpm                               \
            --disable-libdane                           \
            --disable-doc                               \
            --enable-manpages                           \
            gl_cv_func_printf_directive_n=yes           \
            gl_cv_func_printf_infinite_long_double=yes

NOTE: The following features are not enabled due to missing dependences:
- PKCS11 support
- TPM and TPM2 support
- KTLS support
- Brotli compression support
- DANE library support
- DNSSEC support
- TeX documentation is not built

The above features will be enabled when being rebuilt as an RPM.

Compilation and Installation

To compile GNU TLS 64-bit, run the following command:

make

Next, run the test suite:

make check

NOTE: Two of the tests fail inside the build root. This is likely due to missing dependencies for DNSSEC and other features.

Finally, to install GNU TLS 64-bit into the build tree, run the following commands:

make install
rm -fv /usr/lib64/libgnutls.la && rm -fv /usr/lib64/libgnutlsxx.la

NOTE: Do not delete the unpacked sources after build.

Contents

Contents  
Installed Programs certtool, gnutls-cli, gnutls-cli-debug, gnutls-serv, ocsptool, and psktool
Installed Libraries libgnutls.so and libgnutlsxx.so
Navigation    
« GNU LibTasn1 32-bit HOME GNU TLS 32-bit »