<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Hello</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">My build of gnupg-2.2.16 on RHEL Server 7.6 (Maipo) fails with the following error:</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">make[3]: Entering directory `/usr/local/src/gnupg-2.2.16/tests'<br />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<br />mv -f .deps/asschk.Tpo .deps/asschk.Po<br />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<br />srcdir=. GNUPGHOME=`/bin/pwd` GPG_AGENT_INFO= LC_ALL=C GPGSM=../sm/gpgsm ./runtest ./inittests<br />../sm/gpgsm: error while loading shared libraries: libgcrypt.so.20: cannot open shared object file: No such file or directory<br />../sm/gpgsm: error while loading shared libraries: libgcrypt.so.20: cannot open shared object file: No such file or directory<br />../sm/gpgsm: error while loading shared libraries: libgcrypt.so.20: cannot open shared object file: No such file or directory<br />echo timestamp >./inittests.stamp<br />make[3]: Leaving directory `/usr/local/src/gnupg-2.2.16/tests'<br />make[2]: Leaving directory `/usr/local/src/gnupg-2.2.16/tests'<br />make[2]: Entering directory `/usr/local/src/gnupg-2.2.16'<br />make[2]: Leaving directory `/usr/local/src/gnupg-2.2.16'<br />make[1]: Leaving directory `/usr/local/src/gnupg-2.2.16'</div>
</blockquote>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Indeed the ldd output is troublesome:</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">[user@hostname dirname]$ ldd sm/gpgsm<br />sm/gpgsm: /lib64/libgpg-error.so.0: no version information available (required by sm/gpgsm)<br /> linux-vdso.so.1 => (0x00007ffe8e99e000)<br /> libgcrypt.so.20 => not found<br /> libgpg-error.so.0 => /lib64/libgpg-error.so.0 (0x00007f7934861000)<br /> libksba.so.8 => not found<br /> libassuan.so.0 => /lib64/libassuan.so.0 (0x00007f7934650000)<br /> libiconv.so.2 => /opt/libiconv/lib/libiconv.so.2 (0x00007f793436b000)<br /> libc.so.6 => /lib64/libc.so.6 (0x00007f7933f9e000)<br /> /lib64/ld-linux-x86-64.so.2 (0x00007f7934a66000)</div>
</blockquote>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">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)?</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Also the configure script is not picking up readline:</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">checking whether readline via "-lreadline" is present and sane... no<br />checking whether readline via "-lreadline -ltermcap" is present and sane... no<br />checking whether readline via "-lreadline -lcurses" is present and sane... no<br />checking whether readline via "-lreadline -lncurses" is present and sane... no<br />...<br />Readline support: no</div>
</blockquote>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Why isn't the --with-readline parameter honored?</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">My configure parameters are the following:</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">./configure --prefix=/opt/gnupg-2.2.16 \ <br /> CFLAGS="-I/opt/readline/include/readline/ -I/opt/libiconv/include/ -I/opt/libgcrypt/include/" \ <br />LDFLAGS="-L/opt/readline/lib/ -L/opt/libiconv/lib/ -L/opt/libgcrypt/lib/" \ <br />--with-libgcrypt-prefix=/opt/libgcrypt/ \ <br />--with-libassuan-prefix=/opt/libassuan/ \ <br />--with-ksba-prefix=/opt/libksba/ \ <br />--with-npth-prefix=/opt/npth/ \ <br />--with-libgpg-error-prefix=/opt/libgpg-error/ \ <br />--with-ntbtls-prefix=/opt/ntbtls \ <br />--with-libiconv-prefix=/opt/libiconv/ \ <br />--with-readline=/opt/readline/ \ <br />--with-libintl-prefix=/opt/gettext/ \ <br />--disable-gnutls</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Thank You all in advance,</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Oliver</div>
</blockquote>
</body></html>