Page MenuHome GnuPG

libgpg-error installation not detected while building libgcrypt from source
Closed, InvalidPublic

Description

Tested on ALpine Linux v. 3.20.2 x86_64

Its packages

  • Not installed. libgcrypt v. 1.10.3, gnupg v. 2.4.5
  • Installed. 'libgpg-error' v. 1.49

Description

Hello. I conceived that the component gnupg is not needed pre-installed in order to build libgcrypt from source. Once built, all that should be left to do is install the gnupg component from Alpine.

Steps to reproduce

# apk -U upgrade && apk add build-base libgpg-error
# apk info -e libgpg-error
libgpg-error

_output filtered_

# sh ../libgcrypt-1.11.0/configure
configure: error: libgpg-error is needed.
 See ftp://ftp.gnupg.org/gcrypt/libgpg-error/

Yet, as we can conclude, the component informed as needed is already installed. What could possibly be causing it not to be detected by this script?

Note: the obsolete URL resulting from the discontinued FTP server is out-of-scope here; The need for updates accordingly at GnuPG's was reported.

Details

Version
1.11.0

Event Timeline

Does alpine split the development files of libgpg-error into a separate *-devel (or similar) package like most other distros? If yes, then you need to install this development package.

I wonder how common this practice of splitting development material into a separate file might be? It is in place at Alpine, since the file libgpg-error-dev exists. Once the related component is instaled, these messages/strings are printed:; output filtered:

checking for GPG Error - version >= 1.49... expr: warning: '^x-L': using '^' as the first character of a basic regular expression is not portable; it is ignored  yes (1.49)

configure: WARNING:
*** The config script "/usr/bin/gpgrt-config --libdir=/usr/lib gpg-error" was
*** built for x86_64-alpine-linux-musl and thus may not match the
*** used host x86_64-pc-linux-musl.
*** You may want to use the configure option --with-libgpg-error-prefix
*** to specify a matching config script or use $SYSROOT.

        Libgcrypt v1.11.0 has been configured as follows:
         
        Platform:                  GNU/Linux (x86_64-pc-linux-musl)
        Hardware detection module: libgcrypt_la-hwf-x86
        Enabled cipher algorithms: arcfour blowfish cast5 des aes twofish
                                   serpent rfc2268 seed camellia idea salsa20
                                   gost28147 chacha20 sm4 aria
        Enabled digest algorithms: crc gostr3411-94 md4 md5 rmd160 sha1
                                   sha256 sha512 sha3 tiger whirlpool stribog
                                   blake2 sm3
        Enabled kdf algorithms:    s2k pkdf2 scrypt
        Enabled pubkey algorithms: dsa elgamal rsa ecc
        Random number generator:   default
        Try using jitter entropy:  yes
        Using linux capabilities:  no
        FIPS module version:       
         
        Mismatches between the target platform and the to
        be used libraries have been been detected for:
          libgpg-error

As far as I know the practice to have separate -dev packages is very common among Linux distributions.

The output of configure looks good to me. This is not a support forum. Use the gnupg-users mailing list for further questions.

Closing as invalid since there's no bug.