From: Alex B. <Ale...@dp...> - 2005-03-22 05:40:05
|
Guys, I've been trying to compile perfparse using the glib 1.2.10 libraries on Redhat ES 3.0. First make complained that config_file.c could not find glib.h - so I copied that to /app/perfparse/perfparse-0.105.6. Then after more errors I altered glib.h to include glibconfig.h (created when I did a configure on glib). Now - I have an error in db_macro_actions.c - it doesn't seem to be finding g_string_printf. Trying to install glib-2 caused even more problems. Any ideas? I'm tearing my hair out I'm afraid. Is there some simple thing I need to do? Alex gcc -DHAVE_CONFIG_H -I. -I. -I.. -DSYSCONFDIR=\"/usr/local/nagios/etc\" -DPREFIX=\"/usr/local/nagios\" -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -I/usr/include/mysql -I../libpp_common -I.. -g -O2 -Wall -MT libpp_mysql_la-db_macro_actions.lo -MD -MP -MF .deps/libpp_mysql_la-db_macro_actions.Tpo -c db_macro_actions.c -fPIC -DPIC -o .libs/libpp_mysql_la-db_macro_actions.o db_macro_actions.c: In function `reset_host_delete_policy': db_macro_actions.c:54: warning: implicit declaration of function `g_string_printf' db_macro_actions.c:70: warning: implicit declaration of function `g_string_append_printf' db_macro_actions.c: In function `db_version_error': db_macro_actions.c:166: void value not ignored as it ought to be make[1]: *** [libpp_mysql_la-db_macro_actions.lo] Error 1 make[1]: Leaving directory `/app/perfparse/perfparse-0.105.6/libpp_mysql' make: *** [install-recursive] Error 1 |
From: Ben C. <bcl...@pe...> - 2005-03-22 08:23:11
|
Alex, I sometimes have the same problem my self. The glib files on Linux seem to end up in the oddest of places. glib.h includes a collection of other files in a sub-directory. Have a look at the file. If you copy it, copy all the files it references. A better way is to use the configure option: ./configure --with-gdlib_config_dir=DIR Where DIR is the full path to glib. The other error is related to the absence of the above files. Have fun, Ben. Alex Bacon wrote: > Guys, > > I've been trying to compile perfparse using the glib 1.2.10 libraries > on Redhat ES 3.0. > > First make complained that config_file.c could not find glib.h - so I > copied that to /app/perfparse/perfparse-0.105.6. Then after more errors > I altered glib.h to include glibconfig.h (created when I did a configure > on glib). > > Now - I have an error in db_macro_actions.c - it doesn't seem to be > finding g_string_printf. > > Trying to install glib-2 caused even more problems. Any ideas? I'm > tearing my hair out I'm afraid. Is there some simple thing I need to > do? > > Alex > > gcc -DHAVE_CONFIG_H -I. -I. -I.. > -DSYSCONFDIR=\"/usr/local/nagios/etc\" -DPREFIX=\"/usr/local/nagios\" > -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -I/usr/include/mysql > -I../libpp_common -I.. -g -O2 -Wall -MT > libpp_mysql_la-db_macro_actions.lo -MD -MP -MF > .deps/libpp_mysql_la-db_macro_actions.Tpo -c db_macro_actions.c -fPIC > -DPIC -o .libs/libpp_mysql_la-db_macro_actions.o > db_macro_actions.c: In function `reset_host_delete_policy': > db_macro_actions.c:54: warning: implicit declaration of function > `g_string_printf' > db_macro_actions.c:70: warning: implicit declaration of function > `g_string_append_printf' > db_macro_actions.c: In function `db_version_error': > db_macro_actions.c:166: void value not ignored as it ought to be > make[1]: *** [libpp_mysql_la-db_macro_actions.lo] Error 1 > make[1]: Leaving directory > `/app/perfparse/perfparse-0.105.6/libpp_mysql' > make: *** [install-recursive] Error 1 > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users > |
From: Yves <yme...@pe...> - 2005-03-22 10:05:41
|
> Guys, > > I've been trying to compile perfparse using the glib 1.2.10 libraries > on Redhat ES 3.0. > > First make complained that config_file.c could not find glib.h - so I > copied that to /app/perfparse/perfparse-0.105.6. Then after more error= s > I altered glib.h to include glibconfig.h (created when I did a configur= e > on glib). This is not a good idea because perfparse expects glib.h from glib-2.X. If you enabled --with-glib12=3D/path/to/glib-config, find out if there is= a problem with glib-config. If you did not enable it, do it. > > Now - I have an error in db_macro_actions.c - it doesn't seem to be > finding g_string_printf. this is a glib-2.0 feature. > > Trying to install glib-2 caused even more problems. Any ideas? I'm > tearing my hair out I'm afraid. Is there some simple thing I need to > do? If you have problems to install glib-2 on a redhat ES, the best is to ask= Redhat for support : you pay for that :) When glib-2 is installed, ensure that pkg-config is installed too and rec= ompile perfparse. Don't reuse what you did before : uncompress perfparse.tar.gz= in an empty directory and try again. 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://www.perfparse.org/ - |