[collectd] network.so: undefined symbol: gcry_md_hash_buffer‏

Honia honia2002 at yahoo.com
Tue Jun 22 20:15:13 CEST 2010


All,
 
I am starting to think that the emails I send to the mailinglist gets lost somewhere and won't reach the members, because I don't receive any replies and can't seem to find the thread online either. How can I ensure that this email will reach the correct mailinglist?

Now back to the thread, I ran the following commands, the outputs are in red. 
 
1) readelf -s /opt/collectd/lib/collectd/network.so | grep md_hash
 
    93: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND gcry_md_hash_buffer
   239: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND gcry_md_hash_buffer
 
2) ldd /opt/collectd/lib/collectd/network.so | grep gcry
 
I got no output here
 
3) readelf -s /usr/lib/libgcrypt.so.11 | grep md_hash

109: 00005570   115 FUNC    GLOBAL DEFAULT   11 gcry_md_hash_buffer@@GCRYPT_1.2


Please help me figuring out the issue if possible. Is there somewhere I could submit a bug or this is an issue on my end?
 
Thanks in advance,
h
 

--- On Mon, 6/21/10, Honia <honia2002 at yahoo.com> wrote:


From: Honia <honia2002 at yahoo.com>
Subject: [collectd] network.so: undefined symbol: gcry_md_hash_buffer‏
To: collectd at verplant.org
Cc: octo at verplant.org
Date: Monday, June 21, 2010, 6:34 PM








Hi all,

(I posted this question before but i think my email address got some issues and i never found the post anywhere, it was probably sent to the wrong addree, my apologies in advanced if you all received this before):
  
I installed libgcrypt-1.4.5 on two CentOS 5 machines. Then followed by installing collectd-4.10.0 on the same machines (one to be the server and the other one as the client):
  
1) Configured collectd: ./configure --with-librrd=/opt/rrdtool-1.4.3/ --with-liboping=/opt/oping --with-libnetlink=/home/username/iproute2-2.6.29-1 --with-libgcrypt=/usr/

In the library section of the build output, I found that libgcrypt was installed.
  
2) Then ran make followed by make install 

3) Here's a part of config.log:
 
configure:18317: checking gcrypt.h usability
configure:18317: gcc -c -g -O2 -I/usr/include conftest.c >&5
configure:18317: $? = 0
configure:18317: result: yes
configure:18317: checking gcrypt.h presence
configure:18317: gcc -E -I/usr/include conftest.c
configure:18317: $? = 0
configure:18317: result: yes
configure:18317: checking for gcrypt.h
configure:18317: result: yes
configure:18335: gcrypt LDFLAGS: -L/usr/lib
configure:18338: checking for gcry_md_hash_buffer in -lgcrypt
configure:18363: gcc -o conftest -g -O2 -I/usr/include -L/usr/lib conftest.c -lgcrypt -ldl >&5
configure:18363: $? = 0
configure:18372: result: yes
configure:18398: checking for libgcrypt-config
configure:18416: found /usr/local/bin/libgcrypt-config
configure:18429: result: /usr/local/bin/libgcrypt-config
configure:18446: checking for LIBGCRYPT - version >= 1.2.0
configure:18480: result: yes (1.4.5)
configure:18492: checking LIBGCRYPT API version
configure:18495: result: okay
 

4) Created a file named auth_file and put in in /opt/collectd/etc directory. The file has one line in it:
 
client1: password1


5) Configured collectd.conf on the server and this is the network plugin: 
  
<Plugin "network">
  <Listen "[Server's IP address here]" "25826">
    SecurityLevel "Sign"
    AuthFile "/opt/collectd/etc/auth_file"
  </Listen>
</Plugin>
  
6) Configured collectd.conf on the client and this is the network plugin: 
  
<Plugin network> 
       <Server "[IP adress here]" "25826"> 
          SecurityLevel "Sign" 
          Username "client1" 
          Password "password1" 
        </Server> 
</Plugin> 

4) Restarted collectd and got the following error: 

Stopping collectd:                                         [FAILED] 
Starting collectd: /opt/collectd/sbin/collectd: symbol lookup error: /opt/collectd/lib/collectd/network.so: undefined symbol: gcry_md_hash_buffer 
 

I contacted libgcrypt-devel people and they said since libgcrypt-1.4.5 was installed properly, most likely it is a collectd bug... Here you can see the discussion:

http://old.nabble.com/network.so%3A-undefined-symbol%3A-gcry_md_hash_buffer%E2%80%8F-td28879871.html#a28915686
 
I would really appreciate it if someone could please help me with this problem.
 
Regards,
Honia
 
 
-----Inline Attachment Follows-----


_______________________________________________
collectd mailing list
collectd at verplant.org
http://mailman.verplant.org/listinfo/collectd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.verplant.org/pipermail/collectd/attachments/20100622/99f1a4bf/attachment.htm 


More information about the collectd mailing list