From: Ben C. <Ben...@ro...> - 2004-06-14 10:40:11
|
Hi Philipp, I am glad you have found PerfParse, and hope you will enjoy using it. Your error messages seem to indicate you do not have the MySQL client=20 development libs on your system. These will include the missing files=20 'mysql.h' and 'errmsg.h'. If you don't think this is the case, (errors in the make are possible),=20 enter the following and let me know if it replys with anything: $ find / -name "mysql.h" -ls 2> /dev/null I do not know 'Fedora Core 1', so I am not sure how they distribute the=20 Mysql-devel package. You can however obtain this from MySQL by getting=20 and installing the source package from mysql.com. It is the client=20 development libs you need, or the full package :) I also notice you are on MySQL version 3. This does not support=20 transactions. I strongly advice you upgrade to the full version of=20 MySQL 4, in what ever their latest release version it, including the=20 'InnoDB', or 'max', release. Transactions ensure that bad data cannot=20 accidentally be added to the system, which will ensure a far better=20 quality database in the long run. This also offers referential=20 integrity, so that your database cannot be accidentally corrupted by a=20 bad program/user! :) May I ask in future that you might want to address support requests to=20 the mailing list per...@li.... You can sign up=20 for this from the bottom of PerfParse project page: http://sourceforge.net/projects/perfparse This will help other users with similar errors to fix their own=20 problems, and you may get a reply from another user who offers an=20 alternate fix. Kind regards, Ben Clewett. Sand Philipp wrote: > Hi Ben, >=20 > I just wanted to try out your perparse Plugin for Nagios, and got a few= =20 > problems in compiling the package... > My OS: Fedora Core 1 > Nagios 1.2 (without MySQL) > Mysql server version: 3.23.58 >=20 > When I run configure everything looks fine. > When I run make (as root) the following messages are displayed: > [root@nagios1 perfparse-0.08]# make > make all-recursive > make[1]: Entering directory `/root/perfparse-0.08' > Making all in src > make[2]: Entering directory `/root/perfparse-0.08/src' > if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I'/usr/include' -g -O2 -Wall=20 > -MT perfparse.o -MD -MP -MF ".deps/perfparse.Tpo" -c -o perfparse.o=20 > perfparse.c; \ >=20 > then mv -f ".deps/perfparse.Tpo" ".deps/perfparse.Po"; else rm -f=20 > ".deps/perfparse.Tpo"; exit 1; fi > In file included from perfparse.c:35: > common.h:29:19: mysql.h: No such file or directory > common.h:30:20: errmsg.h: No such file or directory > In file included from perfparse.c:35: > common.h:41: error: syntax error before "db_mysql" > common.h:41: warning: type defaults to `int' in declaration of `db_mysq= l' > common.h:41: warning: data definition has no type or storage class > common.h:42: error: syntax error before '*' token > common.h:42: warning: type defaults to `int' in declaration of=20 > `query_result' > common.h:42: warning: data definition has no type or storage class > common.h:43: error: syntax error before "result_row" > common.h:43: warning: type defaults to `int' in declaration of `result_= row' > common.h:43: warning: data definition has no type or storage class > perfparse.c: In function `my_on_exit': > perfparse.c:198: warning: implicit declaration of function `mysql_close= ' > perfparse.c: In function `save_raw_data': > perfparse.c:672: warning: implicit declaration of function=20 > `mysql_fetch_row' > perfparse.c: In function `saveBinAllowed': > perfparse.c:702: error: subscripted value is neither array nor pointer > perfparse.c: In function `now_get_state': > perfparse.c:1183: error: subscripted value is neither array nor pointer > perfparse.c: In function `sql_fail': > perfparse.c:1386: warning: implicit declaration of function `mysql_erro= r' > perfparse.c:1386: warning: format argument is not a pointer (arg 4) > make[2]: *** [perfparse.o] Error 1 > make[2]: Leaving directory `/root/perfparse-0.08/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/root/perfparse-0.08' > make: *** [all] Error 2 >=20 > When i run ./make install then, the following is displayed: >=20 > [root@nagios1 perfparse-0.08]# make install > Making install in src > make[1]: Entering directory `/root/perfparse-0.08/src' > if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I'/usr/include' -g -O2 -Wall=20 > -MT perfparse.o -MD -MP -MF ".deps/perfparse.Tpo" -c -o perfparse.o=20 > perfparse.c; \ >=20 > then mv -f ".deps/perfparse.Tpo" ".deps/perfparse.Po"; else rm -f=20 > ".deps/perfparse.Tpo"; exit 1; fi > In file included from perfparse.c:35: > common.h:29:19: mysql.h: No such file or directory > common.h:30:20: errmsg.h: No such file or directory > In file included from perfparse.c:35: > common.h:41: error: syntax error before "db_mysql" > common.h:41: warning: type defaults to `int' in declaration of `db_mysq= l' > common.h:41: warning: data definition has no type or storage class > common.h:42: error: syntax error before '*' token > common.h:42: warning: type defaults to `int' in declaration of=20 > `query_result' > common.h:42: warning: data definition has no type or storage class > common.h:43: error: syntax error before "result_row" > common.h:43: warning: type defaults to `int' in declaration of `result_= row' > common.h:43: warning: data definition has no type or storage class > perfparse.c: In function `my_on_exit': > perfparse.c:198: warning: implicit declaration of function `mysql_close= ' > perfparse.c: In function `save_raw_data': > perfparse.c:672: warning: implicit declaration of function=20 > `mysql_fetch_row' > perfparse.c: In function `saveBinAllowed': > perfparse.c:702: error: subscripted value is neither array nor pointer > perfparse.c: In function `now_get_state': > perfparse.c:1183: error: subscripted value is neither array nor pointer > perfparse.c: In function `sql_fail': > perfparse.c:1386: warning: implicit declaration of function `mysql_erro= r' > perfparse.c:1386: warning: format argument is not a pointer (arg 4) > make[1]: *** [perfparse.o] Error 1 > make[1]: Leaving directory `/root/perfparse-0.08/src' > make: *** [install-recursive] Error 1 >=20 >=20 > Any suggestions? > Thanks in advance! > Philipp >=20 >=20 >=20 > _____________________________ >=20 > *Philipp Sand* > OC-CC-TEC-SYS >=20 > *SYCOR GmbH* > Heinrich-von-Stephan-Stra=DFe 1-5 > D - 37073 G=F6ttingen >=20 > Telefon +49 (0) 551 / 490 - 0 > Telefax +49 (0) 551 / 490 - 2000 >=20 > _ph...@sy..._ > ___www.sycor.de___ <file://www.sycor.de>__ > ------------------------------------------------ >=20 |