RE: undefined symbol: gcry_md_hash_buffer‏

Honia A honia2002 at
Thu Jun 17 19:04:02 CEST 2010

Thanks again for your reply.


There are some references to that symbol...Please see the attached network.c file. 

In the section below, the code is looking for gcrypt.h in the default directory which is /usr/include:


# include <gcrypt.h>




I checked /usr/include directory and the gcrypt.h header file is not there. Instead, the file is in /usr/local/include. So I just simply copied the header files into /usr/include but collectd still fails.



There are multiple references to the symbol (gcry_md_hash_buffer) in network.c. Here's another one

static gcry_cipher_hd_t network_get_aes256_cypher (sockent_t *se, /* {{{ */
    const void *iv, size_t iv_size, const char *username)
  gcry_error_t err;
  gcry_cipher_hd_t *cyper_ptr;
  unsigned char password_hash[32];

  if (se->type == SOCKENT_TYPE_CLIENT)
   cyper_ptr = &se->data.client.cypher;
   memcpy (password_hash, se->data.client.password_hash,
     sizeof (password_hash));
   char *secret;

   cyper_ptr = &se->data.server.cypher;

   if (username == NULL)
    return (NULL);

   secret = fbh_get (se->data.server.userdb, username);
   if (secret == NULL)
    return (NULL);

   gcry_md_hash_buffer (GCRY_MD_SHA256,
     secret, strlen (secret));

   sfree (secret);

Any info will be much appreciated,


I have also posted this question on the collectd mailinglist and also sent an email to Octo (the author) but haven't gotten any replies yet.







> Date: Thu, 17 Jun 2010 12:16:06 -0400
> From: dkg at
> To: honia2002 at
> CC: gcrypt-devel at
> Subject: Re: undefined symbol: gcry_md_hash_buffer‏
> On 06/17/2010 11:23 AM, Honia A wrote:
> > 
> > Thank you for your reply. Here's the full output:
> > 
> > => (0x00691000)
> > => /lib/ (0x00eb6000)
> > => /lib/ (0x00d47000)
> > => /lib/ (0x00110000)
> > /lib/ (0x002c3000)
> This strikes me as a bug, that it would internally reference a symbol
> but not list it in table of libraries needed by the dynamic linker.
> I suggest taking this up with the collectd authors (maybe provide them
> with your full build log too?), and point them to this discussion.
> --dkg
Hotmail is redefining busy with tools for the New Busy. Get more from your inbox.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20100617/b07ec0c3/attachment-0001.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: network.c
URL: </pipermail/attachments/20100617/b07ec0c3/attachment-0001.txt>

More information about the Gcrypt-devel mailing list