2011-02-03 08:05:17     Libgcrypt

Document created by Aaronwu Employee on Aug 26, 2013
Version 1Show Document
  • View in full screen mode

2011-02-03 08:05:17     Libgcrypt


Message: 97900   




Does the libgcrypt library work?


It's not in the config menu, so I went into the lib directory and modified the Kconfig and Makefile to incorporate it. It shows up in the menu and compiles but there's an error halfway through about a missing header file (gpg-error.h).


I see that there's a libgpg-error directory in the lib directory.


I wanted to know if it works or not? If so, can anyone tell me the steps needed to get this up and running?






2011-02-03 10:50:50     Re: Libgcrypt

Steve Strobel (UNITED STATES)

Message: 97902   


It didn't work out-of-the-box with the release we are using,, but backporting the version from the SVN trunk did.  So I would expect it to work with a recent release.  I wasn't the one to do the backport, so I am afraid I can't give you any more details.






2011-02-04 11:51:49     Re: Libgcrypt

Robert Cochran (UNITED STATES)

Message: 97930   




FYI - I just tried building it with uclinux r:10071  and toolchain r: 5167.  It is indeed listed in menuconfig.


make failed on first try with a configure error stating it couldn't find libgpg-error (even though Kconfig selects libgpg-error when libgcrypt is selected).   So, as a hack, I first did a make with only libgpg-error selected.  I then went back and did another make with libgcrypt selected.  The build produced a libcrypt.so in my romfs/lib directory.


I hope to exercise the library in the near future.






2011-02-04 12:03:43     Re: Libgcrypt

Mike Frysinger (UNITED STATES)

Message: 97931   


simply a parallel build issue.  ive fixed the dependency order in svn trunk now so libgpg-error always comes before libgcrypt.




2011-02-04 13:06:34     Re: Libgcrypt

Robert Cochran (UNITED STATES)

Message: 97935   


"The build produced a libcrypt.so in my romfs/lib directory"


I'm screwy on this.  The libgcrypt included build produced a libgcrypt.a.  The libcrypt.so under lib is part of uClibc, right?




2011-02-04 16:05:12     Re: Libgcrypt

Mike Frysinger (UNITED STATES)

Message: 97937   


libgcrypt does not install anything named "libcrypt*" into romfs or staging or elsewhere.  it only installs "libgcrypt*".  as you say, "libcrypt*" is only from uClibc.




2011-02-07 01:35:19     Re: Libgcrypt


Message: 97971   


Thanks guys. I was using 2010rc5 and it wasn't showing up in the menu. It's possible that I may have screwed up the original configuration files as I was messing around with a lot of different things.


I'm gonna move over to svn trunk and test that out.