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

Honia honia2002 at yahoo.com
Mon Jun 21 16:04:29 CEST 2010


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
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.verplant.org/pipermail/collectd/attachments/20100621/658903c3/attachment.htm 


More information about the collectd mailing list