You are not logged in.
I upgraded a series of packages and noticed the following pacman -Syu and yaourt -Syua. I received the following error during the upgrade and during a manual run of mkinitcpio -p linux. I can no longer resume. I get the following error.
Jan 14 22:17:54 laptop sh[10089]: s2disk: error while loading shared libraries: libgcrypt.so.11: cannot open shared object file: No such file or$ sudo mkinitcpio -p linux
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 3.12.7-2-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [keymap]
-> Running build hook: [block]
-> Running build hook: [encrypt]
-> Running build hook: [lvm2]
-> Running build hook: [uresume]
==> ERROR: binary dependency `libgcrypt.so.11' not found for `/usr/lib/suspend/resume'
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
-> Running build hook: [shutdown]
-> Running build hook: [vboxhost]
Building virtualbox host modules for 3.12.7-2-ARCH kernel...
Module vboxhost/4.3.6 already installed on kernel 3.12.7-2-ARCH/x86_64
Ok.
==> Generating module dependencies
==> Creating xz initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 3.12.7-2-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [keymap]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: smsmdtv
-> Running build hook: [encrypt]
-> Running build hook: [lvm2]
-> Running build hook: [uresume]
==> ERROR: binary dependency `libgcrypt.so.11' not found for `/usr/lib/suspend/resume'
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
-> Running build hook: [shutdown]
-> Running build hook: [vboxhost]
Building virtualbox host modules for 3.12.7-2-ARCH kernel...
Module vboxhost/4.3.6 already installed on kernel 3.12.7-2-ARCH/x86_64
Ok.
==> Generating module dependencies
==> Creating xz initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successfulIt is missing, but there is a new version installed!?
$ ldd /usr/lib/suspend/resume
linux-vdso.so.1 (0x00007fff30900000)
liblzo2.so.2 => /usr/lib/liblzo2.so.2 (0x00007f92a8892000)
libgcrypt.so.11 => not found
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f92a8675000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f92a82cb000)
/lib64/ld-linux-x86-64.so.2 (0x00007f92a8ab3000)
$ ls -la /usr/lib/libgcrypt.so*
lrwxrwxrwx 1 root root 19 Dec 17 01:23 /usr/lib/libgcrypt.so -> libgcrypt.so.20.0.0
lrwxrwxrwx 1 root root 19 Dec 17 01:23 /usr/lib/libgcrypt.so.20 -> libgcrypt.so.20.0.0
-rwxr-xr-x 1 root root 906776 Dec 17 01:23 /usr/lib/libgcrypt.so.20.0.0Last edited by ajstein (2014-01-15 06:23:40)
Offline
Where did that hook come from? Remember, you are responsible for rebuilding AUR packages when there is an soname bump.
Offline
Also, are you sure you still need to use uswsusp? Native hibernation works fine for me.
Offline
Thanks a lot for the pointers, gentlemen. I had forgot that uswsusp was from uswsusp-git from AUR, and was not an official package. I was sleepy and forgot about [uresume] versus the official supported [resume].
And thanks for the advice, @tomk. I eventually went back to native and abandoned uswsusp for my own uses. Apparently there are deprecated libgcrypt API's the project was relying on, and a force upgrade of the uswsusp-git package brought that to my attention, as noted in the comments in the AUR site.
Offline