Gnupg library issues on Solaris 11


 
Thread Tools Search this Thread
Operating Systems Solaris Gnupg library issues on Solaris 11
# 1  
Old 08-06-2013
Gnupg library issues on Solaris 11

I have installed gnupg from the official Solaris 11 repository, but am experiencing library issues. This is the error I am getting:
Code:
ld.so.1: gpg2: fatal: relocation error: file /usr/lib/libreadline.so.5: symbol tgetent: referenced symbol not found

See more information here:
Code:
bash-4.1$ gpg2 --list-secret-keys
Warning: using insecure memory!
/www/shared/.gnupg/secring.gpg
------------------------------
sec 1024D/E6A51C54 2010-11-25
uid John Doe (jdoe) <john@doe.com>
ssb 2048g/2BE06126 2010-11-25

bash-4.1$ gpg2 --edit-key john@doe.com
gpg (GnuPG) 2.0.17; Copyright (C) 2011 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Warning: using insecure memory!
Secret key is available.

pub 1024D/E6A51C54 created: 2010-11-25 expires: never usage: SC
trust: unknown validity: unknown
sub 2048g/2BE06126 created: 2010-11-25 expires: never usage: E
[ unknown] (1). John Doe (jdoe) <john@doe.com>

ld.so.1: gpg2: fatal: relocation error: file /usr/lib/libreadline.so.5: symbol tgetent: referenced symbol not found
Killed
bash-4.1$ pkg list |grep readl
library/readline 5.2-0.175.0.0.0.2.537 i--
bash-4.1$ pkg list |grep gnup
crypto/gnupg 2.0.17-0.175.0.0.0.2.537 i--
bash-4.1$ ls -al /usr/lib/libreadline.so.5
-r-xr-xr-x 1 root bin 412864 Jun 20 2012 /usr/lib/libreadline.so.5
bash-4.1$ which gpg2
/usr/bin/gpg2
bash-4.1$ ldd /usr/bin/gpg2
        libc.so.1 =>     /lib/libc.so.1
        libz.so.1 =>     /lib/libz.so.1
        libbz2.so.1 =>   /usr/lib/libbz2.so.1
        libresolv.so.2 =>        /lib/libresolv.so.2
        libreadline.so.5 =>      /usr/lib/libreadline.so.5
        libgcrypt.so.11 =>       /usr/lib/libgcrypt.so.11
        libgpg-error.so.0 =>     /usr/lib/libgpg-error.so.0
        libassuan.so.0 =>        /usr/lib/libassuan.so.0
        libsocket.so.1 =>        /lib/libsocket.so.1
        libnsl.so.1 =>   /lib/libnsl.so.1
        libmd.so.1 =>    /lib/libmd.so.1
        libmp.so.2 =>    /lib/libmp.so.2
        libm.so.2 =>     /lib/libm.so.2

Please let me know if I have to provide more information!
# 2  
Old 08-06-2013
Try

Code:
ldd -r /usr/bin/gpg2

# 3  
Old 08-07-2013
Code:
ldd -r /usr/bin/gpg2
        libc.so.1 =>     /lib/libc.so.1
        libz.so.1 =>     /lib/libz.so.1
        libbz2.so.1 =>   /usr/lib/libbz2.so.1
        libresolv.so.2 =>        /lib/libresolv.so.2
        libreadline.so.5 =>      /usr/lib/libreadline.so.5
        libgcrypt.so.11 =>       /usr/lib/libgcrypt.so.11
        libgpg-error.so.0 =>     /usr/lib/libgpg-error.so.0
        libassuan.so.0 =>        /usr/lib/libassuan.so.0
        libsocket.so.1 =>        /lib/libsocket.so.1
        libnsl.so.1 =>   /lib/libnsl.so.1
        libmd.so.1 =>    /lib/libmd.so.1
        libmp.so.2 =>    /lib/libmp.so.2
        libm.so.2 =>     /lib/libm.so.2
        symbol not found: tputs         (/usr/lib/libreadline.so.5)
        symbol not found: tgoto         (/usr/lib/libreadline.so.5)
        symbol not found: tgetnum               (/usr/lib/libreadline.so.5)
        symbol not found: tgetent               (/usr/lib/libreadline.so.5)
        symbol not found: tgetstr               (/usr/lib/libreadline.so.5)
        symbol not found: tgetflag              (/usr/lib/libreadline.so.5)

# 4  
Old 08-08-2013
/usr/lib/libreadline.so.5 should have a dependency on something like /lib/libcurses.so.1

How up-to-date is your Solaris 11 install?
# 5  
Old 08-13-2013
We use Solaris 11.0. This is a known bug in gpg2 in Solaris 11.0 (aka Solaris 11 11/11), originally filed as Sun bug 7098984, now known as [cannot post link].

It’s fixed in Solaris 11.1 and later releases. For Solaris 11.0, this workaround helped in our case (but not if you're using pfexec/sudo/etc.):
Code:
env LD_PRELOAD_32=/usr/lib/libcurses.so.1 gpg2

Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Gpg (GnuPG) encryption and decryption

Hi Friends, There are some 7 years script in out linux server. I am trying to understand them since Linux Server changed(A). Below line in one of the encrypting script. Here scenario is encrypting bank files in our (A) server and doing Secure Copy to Server (B). GPG -v --batch --yes --armor... (1 Reply)
Discussion started by: johnsnow
1 Replies

2. Shell Programming and Scripting

GnuPG Syntax Help

Hi all, I'm trying to decrypt a GnuPG file but not having much luck. I'm new to using it and have tried 4 different ways to do it but nothing works. Here are examples of the attempts I have made: gpg -o ./file_name.tar.Z --passphrase-fd 0 ./file_name.tar.Z.gpg 0<./password.txt cat... (5 Replies)
Discussion started by: Korn0474
5 Replies

3. Ubuntu

How to use GnuPG with MUTT, getting error!

I am using MUTT and I have configured my gmail account in it. I want to use GnuPG(gpg) in it. But even after importing I get key not found error while sending. Please help me for this problem. ---------- Post updated at 11:26 PM ---------- Previous update was at 07:48 AM ---------- This is... (0 Replies)
Discussion started by: nixhead
0 Replies

4. Solaris

Solaris 8 vs Solaris 10 compatibility issues !

Hello, I recently upgraded our system from Solaris 8 to 10. It seems couple of binaries crashed in the new server Solaris 10. Before digging too much on it , from theory it sounds like any binary that is built on Solaris 8 (using gmake) is supposed to be compatible with Solaris 10 , right ? ... (1 Reply)
Discussion started by: sudsa
1 Replies

5. Solaris

Solaris zone issues

Hi, Configuring a new zone in Solaris 10, even though used svcadm to enable the service telnet, it give the following state always enabled uninitialized svc:/network/telnet:default Also noticed the same is happening while enabling other services too. Any ideas. Thanks for your help. (5 Replies)
Discussion started by: uxadmin007
5 Replies

6. UNIX for Dummies Questions & Answers

Gnupg

hey guys i need to restrict access to the GNUPG program because of the possibility that sensitive data like encryption keys and passwords that it is using may be written into the virtual memory swap partition on the hard disk and thus be retrieved at a later date long after the program has... (2 Replies)
Discussion started by: mile1982
2 Replies

7. Shell Programming and Scripting

Problem with GnuPG...need help

hello, i am writing an automated script for GnuPG decryption for a file, which was already being encrypted, homedir="/home/.gnupg" PassPhrase=`cat /home/.gnupg/.passphrase` echo $PassPhrase | gpg --homedir $homedir --passphrase-fd 0 --no-tty --output secret21.txt --decrypt-files... (0 Replies)
Discussion started by: manas_ranjan
0 Replies

8. Shell Programming and Scripting

GnuPG (gpg command)

I've been blessed with the task of writing functions that will be used to encrypt / decrypt data files using the Gnupg (gpg command) software on our Solaris 9. This was just installed last friday and I've got no documentation other than what I've found on the web. I was successful in writing... (4 Replies)
Discussion started by: BCarlson
4 Replies
Login or Register to Ask a Question