|
From: Yves M. <yme...@li...> - 2004-10-22 07:45:59
|
You are using glib-1.2.
If you can, use glib-2
Otherwise, edit libpp_mysql/db_macro_actions.c around line 126 :
char *db_version_error() {
char *sstr; /* add this line */
GString *s =3D NULL;
...
/* return g_string_free(s, FALSE); */
sstr =3D s->str;
g_string_free(s, FALSE);
return(sstr);
}
The problem is a change in GLib API.
In glib-1.2 we have
void g_string_free(...)
In glib-2, we have
gchar *g_string_free(...)
The compiler complains about that.
This will be OK for version 0.102.1 that should be released soon.
Yves
> My setup is :
>
> nagios 1.2
> RHEL 3 WS (fully up to date)
> MySQL 4.0.21 (rpms from mysql.com)
> perfparse-0.101.1
>
> The problem I'm getting is during compilation of perfparse, make errors
> out with this :
>
>
>
>
> make all-recursive
> make[1]: Entering directory `/home/nagios_software/build/perfparse-0.10=
1.1'
> Making all in libpp_common
> make[2]: Entering directory
> `/home/nagios_software/build/perfparse-0.101.1/libpp_common'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory
> `/home/nagios_software/build/perfparse-0.101.1/libpp_common'
> Making all in libpp_mysql
> make[2]: Entering directory
> `/home/nagios_software/build/perfparse-0.101.1/libpp_mysql'
> if /bin/sh ../libtool --mode=3Dcompile gcc -DHAVE_CONFIG_H -I. -I. -I..
> -I/usr/include/mysql -mcpu=3Di486 -fno-strength-reduce
> -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I../libpp_common
> '-DSYSCONFDIR=3D"/home/nagios/etc"' '-DPREFIX=3D"/home/nagios"' -g -O=
2 -Wall
> -MT libpp_mysql_la-db_macro_actions.lo -MD -MP -MF
> ".deps/libpp_mysql_la-db_macro_actions.Tpo" -c -o
> libpp_mysql_la-db_macro_actions.lo `test -f 'db_macro_actions.c' || ech=
o
> './'`db_macro_actions.c; \
> then mv -f ".deps/libpp_mysql_la-db_macro_actions.Tpo"
> ".deps/libpp_mysql_la-db_macro_actions.Plo"; else rm -f
> ".deps/libpp_mysql_la-db_macro_actions.Tpo"; exit 1; fi
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/mysql -mcpu=3Di486
> -fno-strength-reduce -I/usr/include/glib-1.2 -I/usr/lib/glib/include
> -I../libpp_common -DSYSCONFDIR=3D\"/home/nagios/etc\"
> -DPREFIX=3D\"/home/nagios\" -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 `db_version_error':
> db_macro_actions.c:126: void value not ignored as it ought to be
> make[2]: *** [libpp_mysql_la-db_macro_actions.lo] Error 1
> make[2]: Leaving directory
> `/home/nagios_software/build/perfparse-0.101.1/libpp_mysql'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/nagios_software/build/perfparse-0.101=
.1'
> make: *** [all] Error 2
>
> -------------------
> BitPusher, LLC
> http://www.bitpusher.com/
> 1.888.9PUSHER
> (415) 724.7998 - Mobile
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on ITManagersJourna=
l
> Use IT products in your business? Tell us what you think of them. Give =
us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out =
more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> Perfparse-users mailing list
> Per...@li...
> https://lists.sourceforge.net/lists/listinfo/perfparse-users
>
>
--=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/ -
|