|
From: Yves <yme...@pe...> - 2005-02-18 09:23:11
|
Daniel,
I do not have a lot of time today to answer...
You have 2 problems :
mysql : you are probably using a broken mysql package. The only solution =
I know is to
download the source of mysql and compile/install it yourself. I will writ=
e something on
the wiki about that as soon as possible.
g_path_get_basename : edit the code and replace it with g_basename. This =
is a quick fix.
A better fix is being prepared for next version.
Yves
> Ben,
>
> finally I've found some time to get back to my PerfParse problem and tr=
y to
> use the current version...
>
> Ben Clewett wrote on Friday, February 04, 2005 6:15 PM:
>
>> Daniel,
>>
>> Version 0.105.5 has been released containing this fix. This contains =
no
>> other changes from previous versions.
>>
>> If you had the time to check this works, this would be useful.
>>
>> Thanks for letting us know about the problem,
>>
>> Ben.
>
>
> I've tried 0.105.5 and 0.105.6, but both didn't work to let me successf=
ully
> use PerfParse.
>
> After doing the following extention in libpp_common/libpp_common.h:
>
>
> diff -u ./libpp_common/libpp_common.h ./libpp_common/libpp_common.h.ori=
g
> --- ./libpp_common/libpp_common.h 2005-02-17 09:46:05.293086000 +=
0100
> +++ ./libpp_common/libpp_common.h.orig 2005-02-17 09:46:00.287824000 +=
0100
> @@ -139,7 +139,6 @@
> #ifdef USE_GLIB12
> #define g_string_hash(x) (g_str_hash((x)->str))
> #define g_path_get_dirname g_dirname
> -#define g_path_get_basename g_basename
> #define g_string_printf g_string_sprintf
> #define g_string_append_printf g_string_sprintfa
> #endif
>
>
> I've tried to build PerfParse with shared libraries:
>
>
> ./configure --prefix=3D/usr/local/nagios --with-glib12=3D/usr/local
> --with-libiconv-prefix=3D/usr/local/lib --with-included-gettext
> --with-db=3Dmysql
>
> *****************************************************
> Configuration options:
>
> Prefix: /usr/local/nagios
> Perfparse: Selected
> DB tools: Selected
> CGI: Selected
>
> HTTP path for images: /nagios/images
> Installation path for images: ${datadir}/perfparse/images
> Installation path for CGIs: ${exec_prefix}/sbin
> Using glib1.2: 1.2.10
> Database support: mysql
>
> *****************************************************
>
> make
>
> But, make still throws the following errors:
>
> make all-recursive
> make[1]: Entering directory
> `/local/root/tmp/nagios/addons/perfparse-0.105.4'
> Making all in intl
> [...]
> make[2]: Entering directory
> `/local/root/tmp/nagios/addons/perfparse-0.105.6/modules'
> /bin/bash ../libtool --tag=3DCC --mode=3Dlink gcc -g -O2 -Wall -o
> libpp_storage_mysql.la -rpath /usr/local/nagios/lib -module libpp_stora=
ge
> _mysql_la-storage_mysql.lo libpp_storage_mysql_la-libstorage.lo
> -L/usr/local/lib -R/usr/local/lib -R/usr/lib -L/usr/lib -R/usr/openwin/=
lib
> -L/usr/openwin/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib
> -L/usr/local/BerkeleyDB.4.2/lib -R/usr/local/BerkeleyDB.4.2/lib -L/usr/=
local
> /mysql/lib/mysql -lmysqlclient -lposix4 -lcrypt -lgen -lsocket -lnsl -l=
m
> -L../libpp_mysql -lpp_mysql -ldl -lnsl -lm -lsocket
> gcc -shared -Wl,-h -Wl,libpp_storage_mysql.so.0 -o
> .libs/libpp_storage_mysql.so.0.0.0
> .libs/libpp_storage_mysql_la-storage_mysql.o .libs/
> libpp_storage_mysql_la-libstorage.o -z allextract
> /usr/local/mysql/lib/mysql/libmysqlclient.a -z defaultextract
> -R/local/root/tmp/nagios/
> addons/perfparse-0.105.6/libpp_mysql/.libs -R/usr/local/nagios/lib
> -R/usr/local/lib -R/usr/lib -R/usr/openwin/lib -R/usr/local/ssl/lib -R/
> usr/local/BerkeleyDB.4.2/lib -L/usr/local/lib -L/usr/lib -L/usr/openwin=
/lib
> -L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib -L/usr/lo
> cal/mysql/lib/mysql -lposix4 -lcrypt -lgen
> -L/local/root/tmp/nagios/addons/perfparse-0.105.6/libpp_mysql
> /local/root/tmp/nagios/addons/per
> fparse-0.105.6/libpp_mysql/.libs/libpp_mysql.so -ldl -lnsl -lm -lsocket=
-lc
> Text relocation remains referenced
> against symbol offset in file
> <unknown> 0x5d0
> /usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o)
> <unknown> 0x5d4
> /usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o)
> <unknown> 0x5d8
> /usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o)
> <unknown> 0x5dc
> /usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o)
> <unknown> 0x5e0
> /usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o)
> <unknown> 0x5e4
> /usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o)
> <unknown> 0x5e8
> /usr/local/mysql/lib/mysql/libmysqlclient.a(libmysql.o)
> [... ~3650 lines later ...]
> __udiv64 0xd40
> /usr/local/mysql/lib/mysql/libmysqlclient.a(my_getopt.o)
> __udiv64 0xfd4
> /usr/local/mysql/lib/mysql/libmysqlclient.a(my_getopt.o)
> __udiv64 0x6c
> /usr/local/mysql/lib/mysql/libmysqlclient.a(longlong2str.o)
> __udiv64 0x1d8
> /usr/local/mysql/lib/mysql/libmysqlclient.a(longlong2str.o)
> __mul64 0xd4c
> /usr/local/mysql/lib/mysql/libmysqlclient.a(my_getopt.o)
> __mul64 0xfe0
> /usr/local/mysql/lib/mysql/libmysqlclient.a(my_getopt.o)
> __mul64 0x80
> /usr/local/mysql/lib/mysql/libmysqlclient.a(longlong2str.o)
> strtoll 0xcb8
> /usr/local/mysql/lib/mysql/libmysqlclient.a(my_getopt.o)
> strtoll 0xe8c
> /usr/local/mysql/lib/mysql/libmysqlclient.a(my_getopt.o)
> vfprintf 0x20
> /usr/local/mysql/lib/mysql/libmysqlclient.a(my_getopt.o)
> vfprintf 0x8c8
> /usr/local/mysql/lib/mysql/libmysqlclient.a(dbug.o)
> fstat64 0x320
> /usr/local/mysql/lib/mysql/libmysqlclient.a(my_lib.o)
> fstat64 0x324
> /usr/local/mysql/lib/mysql/libmysqlclient.a(my_lib.o)
> opendir 0x14
> /usr/local/mysql/lib/mysql/libmysqlclient.a(my_lib.o)
> stat64 0x25c
> /usr/local/mysql/lib/mysql/libmysqlclient.a(my_lib.o)
> readdir64 0x84
> /usr/local/mysql/lib/mysql/libmysqlclient.a(my_lib.o)
> ld: fatal: relocations remain against allocatable but non-writable sect=
ions
> collect2: ld returned 1 exit status
> make[2]: *** [libpp_storage_mysql.la] Error 1
> make[2]: Leaving directory
> `/local/root/tmp/nagios/addons/perfparse-0.105.6/modules'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/local/root/tmp/nagios/addons/perfparse-0.1=
05.6'
> make: *** [all] Error 2
>
>
> I've also tried to compile it without using shared libraries, but it al=
so
> didn't allow to use PerfParse successfully:
>
> ./configure --prefix=3D/usr/local/nagios --with-glib12=3D/usr/local
> --with-libiconv-prefix=3D/usr/local/lib --with-included-gettext
> --with-db=3Dmysql --disable-shared
> make
> [ no errors yet :-)]
> make install
>
> Unfortunately if I try to start perfparsed it produces the following er=
ror
> :-(
>
> perfparse.log.YYYYMMDD.log:
> 2005/02/17 11:53:03 [ storage.c:61 14589 ] storage_mysql module fa=
iled
> to load (msg=3D'ld.so.1: perfparsed: fatal:
> /usr/local/nagios/lib/libpp_storage_mysql.so: unknown file type')
>
> Did I make something wrong?
> Why perfparsed tries to load an shared object if it has been configured=
with
> --disable-shared and compiled without errors?
>
> I'd be glad if you could help me.
>
> Best regards,
>
> Daniel
>
>
>
>
> -------------------------------------------------------
> 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=3D6595&alloc_id=3D14396&op=3Dclick
> _______________________________________________
> 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://www.perfparse.org/ -
|