[collectd] symbol not found when building

Khushil Dep Khushil.Dep at mailonline.co.uk
Tue Aug 13 17:58:19 CEST 2013


I get the following message in the configure output when trying to build:

libstatgrab . . . . . no (symbol sg_init not found)

I know it can find the lib and:

[root at 05e534b1-9281-44b2-9734-974da75e775e ~/collectd-5.3.1]# nm -D /opt/local/lib/libstatgrab.so.9.0.0 | grep sg_
00000000000101d0 T sg_clear_error
0000000000010f60 T sg_comp_destroy
0000000000011020 T sg_comp_get_tls
0000000000010bb0 T sg_comp_init
000000000000ec10 T sg_concat_string
0000000000022c40 D sg_cpu_init
0000000000022a60 D sg_cpu_percents_vector_init_info
0000000000022aa0 D sg_cpu_stats_vector_init_info
0000000000022c80 D sg_disk_init
000000000000b1f0 T sg_disk_io_compare_name
000000000000b200 T sg_disk_io_compare_traffic
0000000000022f00 D sg_disk_io_stats_vector_init_info
000000000000eb40 T sg_drop_privileges
0000000000022ec0 D sg_error_init
000000000000fdd0 T sg_free_stats_buf
000000000000ae00 T sg_fs_compare_device_name
000000000000ae10 T sg_fs_compare_mnt_point
0000000000022f40 D sg_fs_stats_vector_init_info
00000000000097b0 T sg_get_cpu_percents_of
0000000000009920 T sg_get_cpu_percents_r
00000000000093f0 T sg_get_cpu_stats
0000000000009560 T sg_get_cpu_stats_diff
00000000000096f0 T sg_get_cpu_stats_diff_between
00000000000094b0 T sg_get_cpu_stats_r
000000000000ae20 T sg_get_disk_io_stats
000000000000afc0 T sg_get_disk_io_stats_diff
000000000000b0f0 T sg_get_disk_io_stats_diff_between
000000000000af00 T sg_get_disk_io_stats_r
00000000000103c0 T sg_get_error
00000000000103e0 T sg_get_error_arg
0000000000010420 T sg_get_error_details
0000000000010400 T sg_get_error_errno
000000000000aa50 T sg_get_fs_stats
000000000000abe0 T sg_get_fs_stats_diff
000000000000ad00 T sg_get_fs_stats_diff_between
000000000000ab20 T sg_get_fs_stats_r
000000000000cba0 T sg_get_host_info
000000000000cc60 T sg_get_host_info_r
000000000000b310 T sg_get_load_stats
000000000000b3d0 T sg_get_load_stats_r
000000000000b630 T sg_get_mem_stats
000000000000b6f0 T sg_get_mem_stats_r
000000000000fbf0 T sg_get_nelements
000000000000c3f0 T sg_get_network_iface_stats
000000000000c4d0 T sg_get_network_iface_stats_r
000000000000c030 T sg_get_network_io_stats
000000000000c1c0 T sg_get_network_io_stats_diff
000000000000c2e0 T sg_get_network_io_stats_diff_between
000000000000c100 T sg_get_network_io_stats_r
000000000000cf30 T sg_get_page_stats
000000000000d0a0 T sg_get_page_stats_diff
000000000000d1d0 T sg_get_page_stats_diff_between
000000000000cff0 T sg_get_page_stats_r
000000000000de40 T sg_get_process_count_of
000000000000df20 T sg_get_process_count_r
000000000000dbb0 T sg_get_process_stats
000000000000dc80 T sg_get_process_stats_r
000000000000e9c0 T sg_get_svr_from_bsd
000000000000e2b0 T sg_get_swap_stats
000000000000e370 T sg_get_swap_stats_r
000000000000e830 T sg_get_user_stats
000000000000e900 T sg_get_user_stats_r
000000000000a890 T sg_get_valid_filesystems
0000000000010b10 T sg_global_lock
0000000000010b60 T sg_global_unlock
000000000000f440 T sg_init
0000000000022cc0 D sg_load_init
0000000000022ae0 D sg_load_stats_vector_init_info
00000000000109d0 T sg_lock_mutex
000000000000ed70 T sg_lupdate_string
0000000000022d00 D sg_mem_init
0000000000022b20 D sg_mem_stats_vector_init_info
000000000000c590 T sg_network_iface_compare_name
0000000000022f80 D sg_network_iface_stats_vector_init_info
0000000000022d40 D sg_network_init
000000000000c3e0 T sg_network_io_compare_name
0000000000022fc0 D sg_network_io_stats_vector_init_info
0000000000022d80 D sg_os_init
0000000000023000 D sg_os_stats_vector_init_info
0000000000022dc0 D sg_page_init
0000000000022b60 D sg_page_stats_vector_init_info
000000000000ddf0 T sg_process_compare_cpu
000000000000dd90 T sg_process_compare_gid
000000000000dd40 T sg_process_compare_name
000000000000dd50 T sg_process_compare_pid
000000000000ddd0 T sg_process_compare_res
000000000000ddb0 T sg_process_compare_size
000000000000de20 T sg_process_compare_time
000000000000dd70 T sg_process_compare_uid
0000000000022ba0 D sg_process_count_vector_init_info
0000000000022e00 D sg_process_init
0000000000023060 D sg_process_stats_vector_init_info
000000000000f870 T sg_prove_vector
000000000000eba0 T sg_realloc
0000000000010200 T sg_set_error_fmt
0000000000010340 T sg_set_error_with_errno_code_fmt
0000000000010290 T sg_set_error_with_errno_fmt
000000000000a8b0 T sg_set_valid_filesystems
000000000000eb20 T sg_shutdown
000000000000eb30 T sg_snapshot
00000000000104b0 T sg_str_error
000000000000ea70 T sg_strlcat
000000000000ea10 T sg_strlcpy
0000000000010670 T sg_strperror
0000000000022e40 D sg_swap_init
0000000000022be0 D sg_swap_stats_vector_init_info
0000000000010a70 T sg_unlock_mutex
000000000000ece0 T sg_update_mem
000000000000ee10 T sg_update_string
0000000000022e80 D sg_user_init
00000000000230a0 D sg_user_stats_vector_init_info
000000000000f960 T sg_vector_clear
000000000000fc40 T sg_vector_clone
000000000000fce0 T sg_vector_clone_into
000000000000fe10 T sg_vector_compute_diff
000000000000f8e0 T sg_vector_create
000000000000f920 T sg_vector_free
000000000000f9a0 T sg_vector_resize

So the symbol is there.

Can anyone point a direction to investigate here please?

--
Khushil Dep - Infrastructure Lead
@khushil

______________________________________________________________________
This e-mail and any attached files are intended for the named addressee only. It contains information, which may be confidential and legally privileged and also protected by copyright. Unless you are the named addressee (or authorised to receive for the addressee) you may not copy or use it, or disclose it to anyone else. If you received it in error please notify the sender immediately and then delete it from your system. 
Associated Newspapers Ltd. Registered Office: Northcliffe House, 2 Derry St, Kensington, London, W8 5TT. Registered No 84121 England.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20130813/ebf1a34f/attachment.html>


More information about the collectd mailing list