From: Ben C. <bcl...@pe...> - 2005-02-04 08:40:04
|
Daniel, Our Sun expert Yves has produced a patch, which I have enclosed. This may help. I will try and get a version released today which contains this patch. This patch is against 0.105.3, but will work against 0.105.4. Please edit the patch and change 0.105.3 to 0.105.4 before use. Don't worry if the Changelog doesn't patch. $ edit patch.... $ patch -p1 < patch... $ cd perfparse-0.105.4 $ ./configure .... $ make Please let us know. Regards, Ben. Cisowski, Daniel wrote: > Ben, > > thanks for the quick response. > > I didn't compile MySQL by my own, but installed a package from sunfreeware > (http://www.sunfreeware.com). The include files are correct. > The version of MySQL is 4.0.21 > > I've tried to compile PerfParse v0.105.4 downloaded today. > > Regards, > > Daniel > > > > Ben Clewett <mailto:bcl...@pe...> wrote on Thursday, February 03, > 2005 2:31 PM: > > >>Daniel, >> >>Can you tell me the version of MySQL you are using, and the version of >>PerfParse? >> >>Can you also check that your MySQL Client Library '/usr/include' files >>are correct for the MySQL Client Library '/usr/lib' files you have >>installed? Please let me know which version this is as well. >> >>Regards, >> >>Ben Clewett. >> >> >>Cisowski, Daniel wrote: >> >> >>>Hi folks, >>> >>>I'm trying to compile PerfPars on a Solaris 9 box. Unfortunately the link >>>process breaks with fatal errors. Has anybody an idea what's going wrong? >>>I'd be glad to receive a hint. >>> >>> >>>After a >>> >>>./configure --prefix=/usr/local/nagios --with-glib12=/usr/local >>>--with-libiconv-prefix=/usr/local/lib --with-included-gettext >>>--with-db=mysql --with-mysql_config_dir=/usr/local/mysql/bin >>>make >>> >>>the following errors occure: >>> >>>make all-recursive >>>make[1]: Entering directory >>>`/local/root/tmp/nagios/addons/perfparse-0.105.4' >>>Making all in intl >>>[...] >>> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/mysql/include/mysql >>>-I../libpp_mysql -I/usr/local/include/glib-1.2 >>>-I/usr/local/lib/glib/include >>>-I.. -I../libpp_common -I../libnagios_perfdata_parser >>>-DLOCALEDIR=\"/usr/local/nagios/share/locale\" -g -O2 -Wall -MT >>>libpp_storage_mysql_la-libstorage.lo -MD -MP -MF >>>.deps/libpp_storage_mysql_la-libstorage.Tpo -c libstorage.c -fPIC -DPIC > > -o > >>>.libs/libpp_storage_mysql_la-libstorage.o >>> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/mysql/include/mysql >>>-I../libpp_mysql -I/usr/local/include/glib-1.2 >>>-I/usr/local/lib/glib/include >>>-I.. -I../libpp_common -I../libnagios_perfdata_parser >>>-DLOCALEDIR=\"/usr/local/nagios/share/locale\" -g -O2 -Wall -MT >>>libpp_storage_mysql_la-libstorage.lo -MD -MP -MF >>>.deps/libpp_storage_mysql_la-libstorage.Tpo -c libstorage.c -o >>>libpp_storage_mysql_la-libstorage.o >/dev/null 2>&1 >>>/bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -o >>>libpp_storage_mysql.la -rpath /usr/local/nagios/lib -module >>>libpp_storage_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 -lm -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.4/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/local/mysql/lib/mysql -lposix4 >>>-lcrypt -lgen > > -L/local/root/tmp/nagios/addons/perfparse-0.105.4/libpp_mysql > > /local/root/tmp/nagios/addons/perfparse-0.105.4/libpp_mysql/.libs/libpp_mysq > >>>l.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) [... 3650 lines >>>later ...] __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 > > sections > >>>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.4/modules' >>>make[1]: *** [all-recursive] Error 1 >>>make[1]: Leaving directory >>>`/local/root/tmp/nagios/addons/perfparse-0.105.4' make: *** [all] Error 2 > > >>> >>> >>>I've also tried not to use shared libraries, but it also results in >>>unresolved symbols: >>> >>>./configure --prefix=/usr/local/nagios --with-glib12=/usr/local >>>--with-libiconv-prefix=/usr/local/lib --with-included-gettext >>>--with-db=mysql --with-mysql_config_dir=/usr/local/mysql/bin >>>--disable-shared >>>make >>> >>>gcc -g -O2 -Wall -o perfparse-db-purge >>>perfparse_db_purge-perfparse-db-purge.o perfparse_db_purge-convert.o >>>-L/local/root/tmp/nagios/addons/perfparse-0.105.4/libpp_common >>> > > /local/root/tmp/nagios/addons/perfparse-0.105.4/libpp_common/.libs/libpp_com > >>>mon.a -lz -L/local/root/tmp/nagios/addons/perfparse-0.105.4/libpp_mysql >>> > > /local/root/tmp/nagios/addons/perfparse-0.105.4/libpp_mysql/.libs/libpp_mysq > >>>l.a -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/local/mysql/lib/mysql >>>/usr/local/mysql/lib/mysql/libmysqlclient.a -lposix4 -lcrypt -lgen >>>/usr/local/lib/libglib.so ../intl/libintl.a /usr/local/lib/libiconv.so > > -ldl > >>>-lnsl -lm -lsocket -R/usr/local/lib -R/usr/local/lib -R/usr/lib >>>-R/usr/openwin/lib -R/usr/local/ssl/lib -R/usr/local/BerkeleyDB.4.2/lib >>>Undefined first referenced >>> symbol in file >>>pp_log >>> > > /local/root/tmp/nagios/addons/perfparse-0.105.4/libpp_mysql/.libs/libpp_mysq > >>>l.a(libpp_mysql_la-dbms.o) ld: fatal: Symbol referencing errors. No > > output > >>>written to perfparse-db-purge collect2: ld returned 1 exit status >>>make[2]: *** [perfparse-db-purge] Error 1 >>>make[2]: Leaving directory >>>`/local/root/tmp/nagios/addons/perfparse-0.105.4/db_tools' >>>make[1]: *** [all-recursive] Error 1 >>>make[1]: Leaving directory >>>`/local/root/tmp/nagios/addons/perfparse-0.105.4' make: *** [all] Error 2 > > >>> >>> >>>Thanks in advance. >>> >>>Daniel >>> >>>-- >>>Daniel Cisowski >>>EDS Operations Services GmbH >>>EAD DP >>>Eisenstr. 58 (58-5-M) >>>D-65428 Ruesselsheim >>>Phone: +49-6142-80-1049 >>>Fax: +49-6142-80-1018 >>>Mobile: +49-170-792-2331 >>>mailto:dan...@ed... >>>jabber:dan...@ei... >>> >>> >>> >>>------------------------------------------------------- >>>This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting >>>Tool for open source databases. Create drag-&-drop reports. Save time >>>by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. >>>Download a FREE copy at http://www.intelliview.com/go/osdn_nl >>>_______________________________________________ >>>Perfparse-users mailing list >>>Per...@li... >>>https://lists.sourceforge.net/lists/listinfo/perfparse-users > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users > -- Ben Clewett bcl...@pe... PerfParse http://www.perfparse.org PP FAQ http://wiki.perfparse.org/tiki-list_faqs.php |