RE: network.so: undefined symbol: gcry_md_hash_buffer‏

Honia A honia2002 at hotmail.com
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:


#if HAVE_LIBGCRYPT

# include <gcrypt.h>

GCRY_THREAD_OPTION_PTHREAD_IMPL;

#endif

 

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



#if HAVE_LIBGCRYPT
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));
  }
  else
  {
   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,
     password_hash,
     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.

 

Regards,

h



 


 


 

> Date: Thu, 17 Jun 2010 12:16:06 -0400
> From: dkg at fifthhorseman.net
> To: honia2002 at hotmail.com
> CC: gcrypt-devel at gnupg.org
> Subject: Re: network.so: 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:
> > 
> > linux-gate.so.1 => (0x00691000)
> > libpthread.so.0 => /lib/libpthread.so.0 (0x00eb6000)
> > libdl.so.2 => /lib/libdl.so.2 (0x00d47000)
> > libc.so.6 => /lib/libc.so.6 (0x00110000)
> > /lib/ld-linux.so.2 (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.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2
-------------- 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