[rrd-users] rrdtool 1.4.8 doesn't compile

Иван Стрельников earthquake_90 at mail.ru
Mon Feb 17 11:31:07 CET 2014


14.02.2014 2:12, Steve Shipway пишет:
> CCLD rrdcached /usr/bin/ld: rrdcached-rrd_daemon.o: undefined 
> reference to symbol 'g_tree_lookup' 
> //lib/x86_64-linux-gnu/libglib-2.0.so.0: error adding symbols: DSO 
> missing from command line collect2: error: ld returned 1 exit status 
> make[2]: *** [rrdcached] Ошибка 1 make[2]: Leaving directory 
> `/usr/local/src/tmp/rrdtool-1.4.8/src' make[1]: *** [all-recursive] 
> Ошибка 1 make[1]: Leaving directory `/usr/local/src/tmp/rrdtool-1.4.8' 
> make: *** [all] Ошибка 2 This is your issue. The g_tree_lokkup symbol 
> is not found during the linking. This symbol should be in the glib2 
> library. Check that you have glib2 and glib2-devel installed, and that 
> they are version 2.x Check where your libglib-2.0.so is located. In 
> /lib ? Have you added this to your library path in the compile? You 
> should be able to run: [root]# strings /lib/libglib-2.0.so | grep 
> g_tree_lookup g_tree_lookup g_tree_lookup_extended 
> IA__g_tree_lookup_extended IA__g_tree_lookup [root]# If not, then you 
> seem to have an odd glib installed. Version 2.12 (32bit) and 2.22 
> (64bit) are the ones on our systems. Steve Steve Shipway 
> s.shipway at auckland.ac.nz 
> _______________________________________________ rrd-users mailing list 
> rrd-users at lists.oetiker.ch 
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Dear Steve!
Dear rrd-users!

/usr/bin/ld: rrdcached-rrd_daemon.o: undefined reference to symbol 
'g_tree_lookup'
//lib/x86_64-linux-gnu/libglib-2.0.so.0: error adding symbols: DSO 
missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [rrdcached] Ошибка 1
make[2]: Leaving directory `/usr/local/src/tmp/rrdtool-1.4.8/src'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/usr/local/src/tmp/rrdtool-1.4.8'
make: *** [all] Ошибка 2

But:
[root at nfsen /usr/local/src/tmp/rrdtool-1.4.8]$ strings 
/lib/x86_64-linux-gnu/libglib-2.0.so.0 | grep g_tree_lookup
g_tree_lookup
g_tree_lookup_extended
g_tree_lookup_extended
g_tree_lookup

How can i add this path to lib-path? And why? In my mind, it finds the 
library in /lib/x86_64-linux-gnu/libglib-2.0.so.0 , but doesn't find 
something it needed.
version 1.4.7 compiling well without any troubles.

Yes, i have glib2 and glib2-dev installed:

[root at nfsen /usr/local/src/tmp/rrdtool-1.4.8]$ aptitude search glib2.0- 
| grep 'i '
i libglib2.0-0 - Glib библиотека функций C
i A libglib2.0-bin - Programs for the GLib library
i A libglib2.0-data - Common files for GLib library
i libglib2.0-dev - Development files for the GLib library

What should i do? Maybe some symbolical links will help?

Thank you!



More information about the rrd-users mailing list