You are not logged in.

#1 2008-10-14 21:51:38

Nyati
Member
Registered: 2008-10-14
Posts: 2

"/usr/bin/ld: cannot find -lgcrypt " having libgcrypt installed !?!

Hello,

I got this problem while trying to install "uswsusp" from AUR with yaourt, when it comes to compile :

gcc -DS2RAM -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -static -o resume resume-resume.o  libsuspend-common.a -llzo2 -lgcrypt -lgpg-error
/usr/bin/ld: cannot find -lgcrypt

But libgcrypt is already installed and the programs seems to find it :

checking for libgcrypt... found

I didn't managed to find anything across the web... Thanks in advance for any help !

Offline

#2 2008-10-15 13:43:42

sveri
Member
Registered: 2008-10-15
Posts: 5

Re: "/usr/bin/ld: cannot find -lgcrypt " having libgcrypt installed !?!

Hey ya,

i installed arch linux today and found myself standing
in front of the similar problem.
libgcrypt is installed but /usr/bin/ld cannot find it.

Offline

#3 2008-10-15 21:53:56

creslin
Member
Registered: 2008-10-04
Posts: 241

Re: "/usr/bin/ld: cannot find -lgcrypt " having libgcrypt installed !?!

ankan has a solution in the AUR comments: http://aur.archlinux.org/packages.php?ID=14093

ankan wrote:

"-static" disables linkning with dynamic libraries. So you have the package - but not the static libraries.
Try rebuilding libgcrypt from abs and remove "--disable-static".

It looks like you guys are new users, so you might not know how ABS works yet.  Take a look here for a quick walkthrough on ABS and makepkg.  You'll need to edit libgcrypt's stock PKGBUILD file and take out "--disable-static" before you run makepkg.

Last edited by creslin (2008-10-15 23:09:05)


ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.

Offline

#4 2008-10-16 12:54:59

sveri
Member
Registered: 2008-10-15
Posts: 5

Re: "/usr/bin/ld: cannot find -lgcrypt " having libgcrypt installed !?!

Thank you, that worked like a charm.
And indeed, i am brand new to arch linux which looks very promising.
Right now i am wondering how packages compile with makepkg
are regularly updated?
Or do i have to recompile them everytime a new version comes
out by myself?

Offline

#5 2008-10-16 16:07:18

Nyati
Member
Registered: 2008-10-14
Posts: 2

Re: "/usr/bin/ld: cannot find -lgcrypt " having libgcrypt installed !?!

Perfect ! Thank you very much !

Offline

#6 2008-10-17 03:10:04

creslin
Member
Registered: 2008-10-04
Posts: 241

Re: "/usr/bin/ld: cannot find -lgcrypt " having libgcrypt installed !?!

sveri wrote:

Or do i have to recompile them everytime a new version comes out by myself?

Yes, if they are in the official repos and you want to keep your custom changes, you'll have to manually compile them again or else they'll be replaced with prepackaged upgrades.  If you add them to "IgnorePkg" in /etc/pacman.conf, pacman will skip over those packages during sysupgrades and just give you a warning like "warning: libgcrypt: ignoring package upgrade (1.4.3-2 => 1.4.4-1)" instead of replacing them.


ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.

Offline

Board footer

Powered by FluxBB