WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: missing libgcrypt.so.11 for tiger vncviewer in v6  (Read 7791 times)

Offline risto3

  • Newbie
  • *
  • Posts: 43
missing libgcrypt.so.11 for tiger vncviewer in v6
« on: January 12, 2015, 11:32:38 AM »
Upgrading to 6.0 seemed okay all in all after getting most of the depencies updated one way or another,
except for tiger-vncviewer...  no longer works apparently as indicated below:
Code: [Select]
tc@cbox:~$ /usr/local/bin/vncviewer -h
/usr/local/bin/vncviewer: error while loading shared libraries: libgcrypt.so.11: cannot open shared object file: No such file or directory
tc@cbox:~$ ldd /usr/local/bin/vncviewer
linux-gate.so.1 (0xb779c000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb76d1000)
libSM.so.6 => /usr/local/lib/libSM.so.6 (0xb76cb000)
libICE.so.6 => /usr/local/lib/libICE.so.6 (0xb76b8000)
libXext.so.6 => /usr/local/lib/libXext.so.6 (0xb76ab000)
libX11.so.6 => /usr/local/lib/libX11.so.6 (0xb75b1000)
libgnutls.so.28 => /usr/local/lib/libgnutls.so.28 (0xb7503000)
libgcrypt.so.11 => not found
libgpg-error.so.0 => /usr/local/lib/libgpg-error.so.0 (0xb74fe000)
libtasn1.so.6 => /usr/local/lib/libtasn1.so.6 (0xb74ec000)
libz.so.1 => /usr/lib/libz.so.1 (0xb74db000)
libm.so.6 => /lib/libm.so.6 (0xb749b000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb7486000)
libc.so.6 => /lib/libc.so.6 (0xb7359000)
/lib/ld-linux.so.2 (0xb779f000)
libuuid.so.1 => /lib/libuuid.so.1 (0xb7355000)
libxcb.so.1 => /usr/local/lib/libxcb.so.1 (0xb733d000)
libXau.so.6 => /usr/local/lib/libXau.so.6 (0xb7339000)
libXdmcp.so.6 => /usr/local/lib/libXdmcp.so.6 (0xb7334000)
libdl.so.2 => /lib/libdl.so.2 (0xb7330000)
libnettle.so.4 => /usr/local/lib/libnettle.so.4 (0xb72fe000)
libhogweed.so.2 => /usr/local/lib/libhogweed.so.2 (0xb72d4000)
libgmp.so.10 => /usr/local/lib/libgmp.so.10 (0xb728a000)
librt.so.1 => /lib/librt.so.1 (0xb7282000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7268000)
libp11-kit.so.0 => /usr/local/lib/libp11-kit.so.0 (0xb721a000)
libffi.so.6 => /usr/local/lib/libffi.so.6 (0xb7213000)
tc@cbox:~$ find /usr/local/lib -name 'libgcrypt.so*'
/usr/local/lib/libgcrypt.so.20.0.2
/usr/local/lib/libgcrypt.so.20
/usr/local/lib/libgcrypt.so

rebuild necessary?

BTW,

Offline risto3

  • Newbie
  • *
  • Posts: 43
Re: missing libgcrypt.so.11 for tiger vncviewer in v6
« Reply #1 on: March 16, 2015, 07:02:02 AM »
Upgrading to 6.0 seemed okay all in all after getting most of the depencies updated one way or another,
except for tiger-vncviewer...  no longer works apparently as indicated below:
Code: [Select]
tc@cbox:~$ /usr/local/bin/vncviewer -h
/usr/local/bin/vncviewer: error while loading shared libraries: libgcrypt.so.11: cannot open shared object file: No such file or directory
tc@cbox:~$ ldd /usr/local/bin/vncviewer
linux-gate.so.1 (0xb779c000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb76d1000)
libSM.so.6 => /usr/local/lib/libSM.so.6 (0xb76cb000)
libICE.so.6 => /usr/local/lib/libICE.so.6 (0xb76b8000)
libXext.so.6 => /usr/local/lib/libXext.so.6 (0xb76ab000)
libX11.so.6 => /usr/local/lib/libX11.so.6 (0xb75b1000)
libgnutls.so.28 => /usr/local/lib/libgnutls.so.28 (0xb7503000)
libgcrypt.so.11 => not found
libgpg-error.so.0 => /usr/local/lib/libgpg-error.so.0 (0xb74fe000)
libtasn1.so.6 => /usr/local/lib/libtasn1.so.6 (0xb74ec000)
libz.so.1 => /usr/lib/libz.so.1 (0xb74db000)
libm.so.6 => /lib/libm.so.6 (0xb749b000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb7486000)
libc.so.6 => /lib/libc.so.6 (0xb7359000)
/lib/ld-linux.so.2 (0xb779f000)
libuuid.so.1 => /lib/libuuid.so.1 (0xb7355000)
libxcb.so.1 => /usr/local/lib/libxcb.so.1 (0xb733d000)
libXau.so.6 => /usr/local/lib/libXau.so.6 (0xb7339000)
libXdmcp.so.6 => /usr/local/lib/libXdmcp.so.6 (0xb7334000)
libdl.so.2 => /lib/libdl.so.2 (0xb7330000)
libnettle.so.4 => /usr/local/lib/libnettle.so.4 (0xb72fe000)
libhogweed.so.2 => /usr/local/lib/libhogweed.so.2 (0xb72d4000)
libgmp.so.10 => /usr/local/lib/libgmp.so.10 (0xb728a000)
librt.so.1 => /lib/librt.so.1 (0xb7282000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7268000)
libp11-kit.so.0 => /usr/local/lib/libp11-kit.so.0 (0xb721a000)
libffi.so.6 => /usr/local/lib/libffi.so.6 (0xb7213000)
tc@cbox:~$ find /usr/local/lib -name 'libgcrypt.so*'
/usr/local/lib/libgcrypt.so.20.0.2
/usr/local/lib/libgcrypt.so.20
/usr/local/lib/libgcrypt.so

rebuild necessary?

BTW,



Although a rebuild would be easier, symlinking /usr/bin/libgcrypt.so.11 to /usr/local/lib/libgcrypt.so seems to work okay.
putting the symlink in /usr/local/bin necessitates LD_LIBRARY_PATH since the runpath doesn't contain /usr/local/lib.


Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11622
Re: missing libgcrypt.so.11 for tiger vncviewer in v6
« Reply #2 on: March 16, 2015, 12:10:44 PM »
Hi risto3
Quote
Although a rebuild would be easier, symlinking /usr/bin/libgcrypt.so.11 to /usr/local/lib/libgcrypt.so seems to work okay.
putting the symlink in /usr/local/bin necessitates LD_LIBRARY_PATH since the runpath doesn't contain /usr/local/lib.
That's not right. The error message says :
Code: [Select]
error while loading shared libraries: libgcrypt.so.11The version currently in TC6 is:
Code: [Select]
usr/local/lib/libgcrypt.so.20That's why it's complaining. The version number is different. If you want to try fixing it with a symlink, try it like this:
Code: [Select]
sudo ln -s /usr/local/lib/libgcrypt.so /usr/local/lib/libgcrypt.so.11
     [EDIT]: Corrected the order of the source and destination in the ln command and removed the word  to  from it.
« Last Edit: March 17, 2015, 12:58:57 PM by Rich »

Offline risto3

  • Newbie
  • *
  • Posts: 43
Re: missing libgcrypt.so.11 for tiger vncviewer in v6
« Reply #3 on: March 17, 2015, 07:02:55 AM »
Hi risto3
Quote
Although a rebuild would be easier, symlinking /usr/bin/libgcrypt.so.11 to /usr/local/lib/libgcrypt.so seems to work okay.
putting the symlink in /usr/local/bin necessitates LD_LIBRARY_PATH since the runpath doesn't contain /usr/local/lib.
That's not right. The error message says :
Code: [Select]
error while loading shared libraries: libgcrypt.so.11The version currently in TC6 is:
Code: [Select]
usr/local/lib/libgcrypt.so.20That's why it's complaining. The version number is different. If you want to try fixing it with a symlink, try it like this:
Code: [Select]
sudo ln -s /usr/local/lib/libgcrypt.so.11 to /usr/local/lib/libgcrypt.so
Let me restate this not being on the phone../
sudo ln -s /usr/local/lib/libgcrypt.so /usr/local/lib/libgcrypt.so.11 doesn't work
 because the runpath doesn't contain /usr/local/lib
sudo ln -s /usr/local/lib/libgcrypt.so /usr/lib/libgcrypt.so.11 works okay, just need to put this last part in /opt/.filetool.lst


Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11622
Re: missing libgcrypt.so.11 for tiger vncviewer in v6
« Reply #4 on: March 17, 2015, 12:55:32 PM »
Hi risto3
Quote
sudo ln -s /usr/local/lib/libgcrypt.so /usr/lib/libgcrypt.so.11 works okay, just need to put this last part in /opt/.filetool.lst
I see that even though I had the source and destination fields in my ln command swapped you got it right. I'll fix my post.
Quote
because the runpath doesn't contain /usr/local/lib
The path isn't supposed to contain library paths. Libraries are resolved through the  /etc/ld.so.cache file, which is updated with
the ldconfig command. If you do:
Code: [Select]
sudo ln -s /usr/local/lib/libgcrypt.so /usr/local/lib/libgcrypt.so.11
sudo ldconfig
Does it work then?

Offline risto3

  • Newbie
  • *
  • Posts: 43
Re: missing libgcrypt.so.11 for tiger vncviewer in v6
« Reply #5 on: March 18, 2015, 04:22:32 AM »
The path isn't supposed to contain library paths. Libraries are resolved through the  /etc/ld.so.cache file, which is updated with
the ldconfig command. If you do:
Code: [Select]
sudo ln -s /usr/local/lib/libgcrypt.so /usr/local/lib/libgcrypt.so.11
sudo ldconfig
Does it work then?

yes, that seems to work... is this persistent as well? or do I have to now save etc/ld.so.cache
in /opt/.filetool.lst instead of the symlink it self? or both now (with /usr/local/lib for libgcrypt.so.11)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: missing libgcrypt.so.11 for tiger vncviewer in v6
« Reply #6 on: March 18, 2015, 05:39:39 AM »
You should save the symlink, and add "ldconfig" in bootlocal.sh.

But the proper way would be to rebuild tigervnc.
The only barriers that can stop you are the ones you create yourself.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: missing libgcrypt.so.11 for tiger vncviewer in v6
« Reply #7 on: March 18, 2015, 06:29:17 AM »
Quote from: curaga link=topic=17909.msg110431#msg110431 date=1426671579

But the proper way would be to rebuild tigervnc.
[/quote

Agree. Unfortunately when I'm building it I get

undefined reference to 'typinfo for Fl_Widget'
undefined reference to 'typinfo for Fl_Widget'

messages, looks like a missing fltk lib when linking. Need some investigation how to fix.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: missing libgcrypt.so.11 for tiger vncviewer in v6
« Reply #8 on: March 18, 2015, 09:02:04 AM »
Rebuilt tigervnc-viewer.tcz 1.1.0, x86 repo updated.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline risto3

  • Newbie
  • *
  • Posts: 43
Re: missing libgcrypt.so.11 for tiger vncviewer in v6
« Reply #9 on: March 18, 2015, 12:18:48 PM »
Rebuilt tigervnc-viewer.tcz 1.1.0, x86 repo updated.

tested && confirmed

thanks!