OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: sockpuppet0 on October 27, 2024, 01:10:32 AM

Title: collectd plugin fails to start due to missing symbol: gprt_add_post_log_func
Post by: sockpuppet0 on October 27, 2024, 01:10:32 AM
# collectd -T
option = ReadThreads; value = -1;
option = Hostname; value = qoton.example.com;
option = FQDNLookup; value = true;
option = Interval; value = 10.000000;
Created new plugin context.
ERROR: dlopen("/usr/local/lib/collectd/network.so") failed: /usr/local/lib/libgcrypt.so.20: Undefined symbol "gpgrt_add_post_log_func". The most common cause for this problem is missing dependencies. Use ldd(1) to check the dependencies of the plugin / shared object.
Error: Parsing the config file failed!


The symbol is missing from the installed lbrary:

# nm --dynamic  /usr/local/lib/libgpg-error.so.0.*|grep gpgrt_add
000000000001a040 T gpgrt_add_emergency_cleanup
# ls -l /usr/local/lib/libgpg-error.so.0.*
-rwxr-xr-x  1 root wheel 153312 Jun 20 11:10 /usr/local/lib/libgpg-error.so.0.35.0*



# nm --dynamic /usr/obj/usr/ports/security/libgpg-error/work/libgpg-error-1.50/src/.libs/libgpg-error.so | grep gpgrt_add
000000000001a860 T gpgrt_add_emergency_cleanup
000000000001b740 T gpgrt_add_post_log_func


I am on 24.7.7.  How do I force the installation of the updated libgpg-error without shooting myself in the foot?