problem with building libgcrypt-1.10.2 from source

Matthias Apitz guru at
Mon Sep 25 10:27:42 CEST 2023

I'm building the full GnuPG suite from source (to get a version for
debugging a scdaemon problem). To not break the installed version in the
OS I'm building with a prefix directory below my HOME. After downloading
the sources from and unpacking them, I started with:

cd libgpg-error-1.47
./configure --prefix=/home/sisis/scdaemon/usr-local
make install

This went fine and produced esp. the following results:

ls -l /home/sisis/scdaemon/usr-local/bin
insgesamt 188
-rwxr-xr-x 1 sisis sisis 82768 25. Sep 09:58 gpg-error
-rwxr-xr-x 1 sisis sisis 16426 25. Sep 09:58 gpgrt-config
-rwxr-xr-x 1 sisis sisis 85488 25. Sep 09:58 yat2m

ls -l /home/sisis/scdaemon/usr-local/lib64
insgesamt 656
-rwxr-xr-x 1 sisis sisis    978 25. Sep 09:58
lrwxrwxrwx 1 sisis sisis     22 25. Sep 09:58 ->
lrwxrwxrwx 1 sisis sisis     22 25. Sep 09:58 ->
-rwxr-xr-x 1 sisis sisis 658688 25. Sep 09:58
drwxr-xr-x 1 sisis sisis     24 25. Sep 09:58 pkgconfig

But the configure step for libcrypt failes:

cd libgcrypt-1.10.2
./configure --prefix=/home/guru/scdaemon/usr-local --with-libgpg-error-prefix=/home/guru/scdaemon/usr-local
checking for gpg-error-config... /home/guru/scdaemon/usr-local/bin/gpg-error-config
checking for gpgrt-config... no
./configure: line 15527: /home/guru/scdaemon/usr-local/bin/gpg-error-config: No such file or directory
./configure: line 15542: test: : integer expression expected
./configure: line 15545: test: : integer expression expected
checking for GPG Error - version >= 1.27... no
configure: error: libgpg-error is needed.
                See .

I looked into the source tree of libgpg-error-1.47 to see why
/home/guru/scdaemon/usr-local/bin/gpg-error-config is missing:

find libgpg-error-1.47 -name 'gpg-error-confi*'

i.e. libgpg-error-1.47/src/gpg-error-config was built but not installed:

s -l libgpg-error-1.47/src/gpg-error-config
-rwxr-xr-x 1 sisis sisis 2115 25. Sep 09:57 libgpg-error-1.47/src/gpg-error-config
sisis at srap51dxr1:~/scdaemon> ls -l usr-local/bin/gpg-error*
-rwxr-xr-x 1 sisis sisis 82768 25. Sep 09:58 usr-local/bin/gpg-error

I run the make of libgpg-error-1.47 again with

cd libgpg-error-1.47
make clean
nohup make
nohup make install

grep gpg-error-config nohup.out
cd .. && /bin/sh ./config.status src/gpg-error-config-old
config.status: creating src/gpg-error-config-old
cd .. && /bin/sh ./config.status src/
config.status: creating src/
Confirm gpg-error-config works... good
cp gpg-error-config-old gpg-error-config

i.e. gpg-error-config is built fine but not installed.

What did I wrong? Thanks


Matthias Apitz, ✉ guru at, +49-176-38902045
Public GnuPG key:

More information about the Gnupg-users mailing list