From: Yves M. <yme...@li...> - 2004-11-08 09:15:09
|
> Hello, > > I don't know when this change was made, but in glib.h function name was > changed from g_string_hash() to g_str_hash() and this has to be changed > in perfparse/log_reader.c line 533 to compile correctly. > > I use glib-1.2 from Debian unstable. Not really. In glib-2.0, you have 2 functions with 2 different prototypes and with di= fferent goals : guint g_string_hash(GString*str) -> computes a hash for the GString* guint g_str_hash(gconstpointer*v) -> computes a hash for the NULL-termina= ted string In glib-1.2, g_string_hash does not seem to exist. Well, could you write this in log_reader.h ? #ifdef USE_GLIB12 #define g_string_hash(x) (g_str_hash((x)->str)) #endif > > P.S. I don't know what's the problem, but I just can't get perfparsed > work with pipe file. Should this work by simply echoing data to pipe > file and perfparsed then inserts this to mysql (or whatever) db? I try > echo for testing, of course. And when perfparse-service.log file is not > pipe then check info appears normally there. > > Can I somehow trace what perfparsed is doing, or why it's not doing wha= t > it is supposed to be doing? First check in your drop file if you don't make mistakes when echoing. Li= nes with wrong syntax go to DropFile (default is /tmp/perfparse.drop). Then, the tools are strace (truss on Solaris), and if gdb is a friend of = yours, gdb :) strace perfparse-log2* Yves --=20 - Homepage - http://ymettier.free.fr - http://www.logicacmg.com - - GPG key - http://ymettier.free.fr/gpg.txt - - Maitretarot - http://www.nongnu.org/maitretarot/ - - Perfparse - http://perfparse.sf.net/ - |