gnupg-2.2.16 build fail on RHEL 7.6 due to missing gpgsm links

oliver at duckasylum.com oliver at duckasylum.com
Wed Jun 26 14:16:19 CEST 2019


Hello 

My build of gnupg-2.2.16 on RHEL Server 7.6 (Maipo) fails with the
following error: 

> make[3]: Entering directory `/usr/local/src/gnupg-2.2.16/tests'
> gcc -DHAVE_CONFIG_H -I. -I.. -I/opt/readline//include -Wall -Wno-pointer-sign -Wpointer-arith -I/opt/readline/include/readline/ -I/opt/libiconv/include/ -I/opt/libgcrypt/include/ -MT asschk.o -MD -MP -MF .deps/asschk.Tpo -c -o asschk.o asschk.c
> mv -f .deps/asschk.Tpo .deps/asschk.Po
> gcc -Wall -Wno-pointer-sign -Wpointer-arith -I/opt/readline/include/readline/ -I/opt/libiconv/include/ -I/opt/libgcrypt/include/ -L/opt/readline/lib/ -L/opt/libiconv/lib/ -L/opt/libgcrypt/lib/ -L/opt/readline//lib -o asschk asschk.o
> srcdir=. GNUPGHOME=`/bin/pwd` GPG_AGENT_INFO= LC_ALL=C GPGSM=../sm/gpgsm ./runtest ./inittests
> ../sm/gpgsm: error while loading shared libraries: libgcrypt.so.20: cannot open shared object file: No such file or directory
> ../sm/gpgsm: error while loading shared libraries: libgcrypt.so.20: cannot open shared object file: No such file or directory
> ../sm/gpgsm: error while loading shared libraries: libgcrypt.so.20: cannot open shared object file: No such file or directory
> echo timestamp >./inittests.stamp
> make[3]: Leaving directory `/usr/local/src/gnupg-2.2.16/tests'
> make[2]: Leaving directory `/usr/local/src/gnupg-2.2.16/tests'
> make[2]: Entering directory `/usr/local/src/gnupg-2.2.16'
> make[2]: Leaving directory `/usr/local/src/gnupg-2.2.16'
> make[1]: Leaving directory `/usr/local/src/gnupg-2.2.16'

Indeed the ldd output is troublesome: 

> [user at hostname dirname]$ ldd sm/gpgsm
> sm/gpgsm: /lib64/libgpg-error.so.0: no version information available (required by sm/gpgsm)
> linux-vdso.so.1 => (0x00007ffe8e99e000)
> libgcrypt.so.20 => not found
> libgpg-error.so.0 => /lib64/libgpg-error.so.0 (0x00007f7934861000)
> libksba.so.8 => not found
> libassuan.so.0 => /lib64/libassuan.so.0 (0x00007f7934650000)
> libiconv.so.2 => /opt/libiconv/lib/libiconv.so.2 (0x00007f793436b000)
> libc.so.6 => /lib64/libc.so.6 (0x00007f7933f9e000)
> /lib64/ld-linux-x86-64.so.2 (0x00007f7934a66000)

How can I satisfy the library dependencies other than putting the
missing library paths into /etc/ld.so.conf and running ldconfig (I want
to pass the dependencies during configure or make. Putting the paths to
/etc/ld.so.conf actually made the build success)? 

Also the configure script is not picking up readline: 

> checking whether readline via "-lreadline" is present and sane... no
> checking whether readline via "-lreadline -ltermcap" is present and sane... no
> checking whether readline via "-lreadline -lcurses" is present and sane... no
> checking whether readline via "-lreadline -lncurses" is present and sane... no
> ...
> Readline support: no

Why isn't the --with-readline parameter honored? 

My configure parameters are the following: 

> ./configure --prefix=/opt/gnupg-2.2.16 \ 
> CFLAGS="-I/opt/readline/include/readline/ -I/opt/libiconv/include/ -I/opt/libgcrypt/include/" \ 
> LDFLAGS="-L/opt/readline/lib/ -L/opt/libiconv/lib/ -L/opt/libgcrypt/lib/" \ 
> --with-libgcrypt-prefix=/opt/libgcrypt/ \ 
> --with-libassuan-prefix=/opt/libassuan/ \ 
> --with-ksba-prefix=/opt/libksba/ \ 
> --with-npth-prefix=/opt/npth/ \ 
> --with-libgpg-error-prefix=/opt/libgpg-error/ \ 
> --with-ntbtls-prefix=/opt/ntbtls \ 
> --with-libiconv-prefix=/opt/libiconv/ \ 
> --with-readline=/opt/readline/ \ 
> --with-libintl-prefix=/opt/gettext/ \ 
> --disable-gnutls 
> 
> Thank You all in advance, 
> 
> Oliver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20190626/e2a1a31e/attachment.html>


More information about the Gnupg-users mailing list