From: Nick S. <ni...@sm...> - 2005-02-07 11:16:49
Attachments:
ppconfig.out
ppmake.out
|
Hello! After a bit of problem with a disk, I took the opportunity to upgrade to FC3, upgrade MySQL, recompiling Nagios (OK) and recompile PP. However, I have some trouble - perhaps someone has encountered this? (configure output and make output attached). Configure seems to progress normally. In make, I get a load of warnings like: make[2]: Entering directory `/opt/perfparse-0.105.5/libpp_common' if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. '-DLIBDIR="/opt/nagios/lib"' '-DLOCALSTATEDIR="/opt/nagios/var"' '-DSYSCONFDIR="/opt/nagios/etc"' '-DPREFIX="/opt/nagios"' -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include '-DLOCALEDIR="/opt/nagios/share/locale"' -I.. -g -O2 -Wall -MT libpp_common_la-config_file.lo -MD -MP -MF ".deps/libpp_common_la-config_file.Tpo" -c -o libpp_common_la-config_file.lo `test -f 'config_file.c' || echo './'`config_file.c; \ then mv -f ".deps/libpp_common_la-config_file.Tpo" ".deps/libpp_common_la-config_file.Plo"; else rm -f ".deps/libpp_common_la-config_file.Tpo"; exit 1; fi mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLIBDIR=\"/opt/nagios/lib\" -DLOCALSTATEDIR=\"/opt/nagios/var\" -DSYSCONFDIR=\"/opt/nagios/etc\" -DPREFIX=\"/opt/nagios\" -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLOCALEDIR=\"/opt/nagios/share/locale\" -I.. -g -O2 -Wall -MT libpp_common_la-config_file.lo -MD -MP -MF .deps/libpp_common_la-config_file.Tpo -c config_file.c -fPIC -DPIC -o .libs/libpp_common_la-config_file.o config_file.c: In function `config_definition_init': config_file.c:105: warning: null argument where non-null required (arg 1) config_file.c:105: warning: null argument where non-null required (arg 1) config_file.c:105: warning: null argument where non-null required (arg 2) config_file.c:105: warning: null argument where non-null required (arg 2) config_file.c:105: warning: null argument where non-null required (arg 1) config_file.c:105: warning: null argument where non-null required (arg 1) config_file.c:105: warning: null argument where non-null required (arg 2) Which I have ignored for the time being. However, later on it comes to a halt at: if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. '-DLIBDIR="/opt/nagios/lib"' '-DLOCALSTATEDIR="/opt/nagios/var"' '-DSYSCONFDIR="/opt/nagios/etc"' '-DPREFIX="/opt/nagios"' -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include '-DLOCALEDIR="/opt/nagios/share/locale"' -I.. -g -O2 -Wall -MT libpp_common_la-log.lo -MD -MP -MF ".deps/libpp_common_la-log.Tpo" -c -o libpp_common_la-log.lo `test -f 'log.c' || echo './'`log.c; \ then mv -f ".deps/libpp_common_la-log.Tpo" ".deps/libpp_common_la-log.Plo"; else rm -f ".deps/libpp_common_la-log.Tpo"; exit 1; fi cc -g -O2 -Wall -o .libs/perfchart.png perfchart_png-perfchart.o perfchart_png-cgi.o -L/opt/perfparse-0.105.5/libpp_mysql /opt/perfparse-0.105.5/libpp_mysql/.libs/libpp_mysql.so -L/usr/lib/mysql /usr/lib/mysql/libmysqlclient.a -lcrypt -lnsl -lc -lnss_files -lnss_dns -lresolv -L/opt/perfparse-0.105.5/libpp_common /opt/perfparse-0.105.5/libpp_common/.libs/libpp_common.so -lglib-2.0 -L/usr/lib -L/usr/X11R6/lib -lXpm -lX11 -ljpeg -lfreetype -lpng12 -lz -lgd -ldl -lm -Wl,--rpath -Wl,/opt/nagios/lib /usr/bin/ld: cannot find -lXpm collect2: ld returned 1 exit status Now, I got past by linking libXpm.so to libXpm.so.4.11 in /usr/X11R6/lib, but then it halted at libX11, and so on - getting confused at the versioned so libraries. Is this a function of the compiler, loader, Makefile or what? Any ideas? Thanks Nick |
From: Yves <yme...@pe...> - 2005-02-07 13:13:13
|
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLIBDIR=3D\"/opt/nagios/lib\" > -DLOCALSTATEDIR=3D\"/opt/nagios/var\" -DSYSCONFDIR=3D\"/opt/nagios/etc\= " > -DPREFIX=3D\"/opt/nagios\" -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -DLOCALEDIR=3D\"/opt/nagios/share/locale\" > -I.. -g -O2 -Wall -MT libpp_common_la-config_file.lo -MD -MP -MF > .deps/libpp_common_la-config_file.Tpo -c config_file.c -fPIC -DPIC -o > .libs/libpp_common_la-config_file.o > config_file.c: In function `config_definition_init': > config_file.c:105: warning: null argument where non-null required (arg = 1) > config_file.c:105: warning: null argument where non-null required (arg = 1) > config_file.c:105: warning: null argument where non-null required (arg = 2) > config_file.c:105: warning: null argument where non-null required (arg = 2) > config_file.c:105: warning: null argument where non-null required (arg = 1) > config_file.c:105: warning: null argument where non-null required (arg = 1) > config_file.c:105: warning: null argument where non-null required (arg = 2) Ben, could you have a look at that ? > /usr/bin/ld: cannot find -lXpm > collect2: ld returned 1 exit status > > Now, I got past by linking libXpm.so to libXpm.so.4.11 in > /usr/X11R6/lib, but then it halted at libX11, and so on - getting > confused at the versioned so libraries. > > Is this a function of the compiler, loader, Makefile or what? Any ideas= ? Nick : this is probably a problem on FC because you should not have libXp= m.so.4.11 without libXpm.so.4. The library is libXpm.so.4 and should be found under= that name. Having libXpm.so.4.11 is a convenient way to manage versions easily. If you upgraded, maybe you still have libXpm.so.4.11 from an older instal= lation, but you did not install the Xpm packages ? Don't forget to install the libxpm-dev= el package. Same thing for libX11. > > Thanks > Nick > --=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/ - |
From: Ben C. <bcl...@pe...> - 2005-02-07 16:35:28
|
Yves wrote: >> gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLIBDIR=\"/opt/nagios/lib\" >>-DLOCALSTATEDIR=\"/opt/nagios/var\" -DSYSCONFDIR=\"/opt/nagios/etc\" >>-DPREFIX=\"/opt/nagios\" -I/usr/include/glib-2.0 >>-I/usr/lib/glib-2.0/include -DLOCALEDIR=\"/opt/nagios/share/locale\" >>-I.. -g -O2 -Wall -MT libpp_common_la-config_file.lo -MD -MP -MF >>.deps/libpp_common_la-config_file.Tpo -c config_file.c -fPIC -DPIC -o >>.libs/libpp_common_la-config_file.o >>config_file.c: In function `config_definition_init': >>config_file.c:105: warning: null argument where non-null required (arg 1) >>config_file.c:105: warning: null argument where non-null required (arg 1) >>config_file.c:105: warning: null argument where non-null required (arg 2) >>config_file.c:105: warning: null argument where non-null required (arg 2) >>config_file.c:105: warning: null argument where non-null required (arg 1) >>config_file.c:105: warning: null argument where non-null required (arg 1) >>config_file.c:105: warning: null argument where non-null required (arg 2) > > > Ben, could you have a look at that ? It makes no sense. Line 105 is no different to 104 or 106, which work. These have not changed in months. Further, if I execute your exact gcc command on my setup, it works. So the problem is not programmatical. May I ask what version of gcc you are using? Any other ideas Yves? Ben. |
From: Ben C. <bcl...@pe...> - 2005-02-09 09:06:41
|
Nick, I am sorry but I am out of options. I can't see anything wrong with the code, or replicate your error. You have a very recent gcc. I don't think this is likely to contain errors. It does seem to contain some checking feature to which previous versions did not contain. We will have to work out what it is about our code that your compiler does not like. In the mean while, do you have an older version of gcc which you can use to compile PerfParse? Regards, Ben. Nick Smith wrote: > Ben Clewett wrote: > [snip] > >>>> config_file.c:105: warning: null argument where non-null required >>>> (arg 1) >>>> config_file.c:105: warning: null argument where non-null required >>>> (arg 2) >>> >>> >>> >>> >>> Ben, could you have a look at that ? >> >> >> >> It makes no sense. Line 105 is no different to 104 or 106, which >> work. These have not changed in months. Further, if I execute >> your exact gcc command on my setup, it works. So the problem is not >> programmatical. >> >> May I ask what version of gcc you are using? > > > Yep: > [root@lon-sup002 contrib]# gcc --version > gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3) > Copyright (C) 2004 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > Cheers > Nick > |
From: Yves <yme...@pe...> - 2005-02-09 10:27:46
|
> Nick, > > I am sorry but I am out of options. I can't see anything wrong with th= e > code, or replicate your error. >>>>> config_file.c:105: warning: null argument where non-null required >>>>> (arg 1) >>>>> config_file.c:105: warning: null argument where non-null required >>>>> (arg 2) I have one last idea : suppose there is a wrong character in that line. A= character you cannot see. It sometimes happen when you copy/paste code from unsafe sour= ces. Either edit config_file.c with a hex editor and check that all the charac= ters are allowed, or delete that line and type it again by hand. No copy/paste. Also try to remove that line to see if there are still warnings. This is my last idea, but if something strange happen, it can give us oth= er ideas... :) 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/ - |
From: Nick S. <ni...@sm...> - 2005-02-10 21:41:14
|
Yves wrote: >>Nick, >> >>I am sorry but I am out of options. I can't see anything wrong with the >>code, or replicate your error. > > >>>>>>config_file.c:105: warning: null argument where non-null required >>>>>>(arg 1) >>>>>>config_file.c:105: warning: null argument where non-null required >>>>>>(arg 2) > > > I have one last idea : suppose there is a wrong character in that line. A character you > cannot see. It sometimes happen when you copy/paste code from unsafe sources. > > Either edit config_file.c with a hex editor and check that all the characters are > allowed, or delete that line and type it again by hand. No copy/paste. > > Also try to remove that line to see if there are still warnings. > > This is my last idea, but if something strange happen, it can give us other ideas... :) Well, I tried commenting out the first line that reports the error, and typing in by hand again above... and exactly the same problem. All very odd. Howerer, since it's just a warning, compilation went ahead OK and I installed it all OK, and it;s been collecting data that I can graph for a few days now. I'll try and poke around a bit later to see if I can pin it down further. I was going to say it's not caused any problems (and it probably is unrelated), but I just found that: The first database purge I attempted: Marked a host for deleting that I am no longer capturing data for. Then ran perfparse-db-purge, and got: +-----------------------------------------------------------------------------+ | Deleting data flagged for deletionAn error occured with the SQL: "DELETE perfdata_service FROM perfdata_service,perfdata_host WHERE perfdata_service.host_name = perfdata_host.host_name AND perfdata_host.is_deleted = 1" Failure Message: "Cannot delete or update a parent row: a foreign key constraint fails" Is this USER ERROR? ;-) Cheers Nick |
From: Ben C. <bcl...@pe...> - 2005-02-11 08:17:59
|
Nick, Very glad it does work. My guess is that your version of gcc, which has only be released a short time, completed some very deep checking. This is where this warning was found. We know the code works, but we will have to look into it further to find out what gcc has found. Or possibly being the latest gcc, it's a bug in gcc. But thankfully I think this unlikely :) Sorry about the deletion problem. Know bug. Will be fixed on next version. Please keep us informed of any PerfParse problems and solution you find, and enjoy the product. Kind regards, Ben Clewett. Nick Smith wrote: > Yves wrote: > >>> Nick, >>> >>> I am sorry but I am out of options. I can't see anything wrong with the >>> code, or replicate your error. >> >> >> >>>>>>> config_file.c:105: warning: null argument where non-null required >>>>>>> (arg 1) >>>>>>> config_file.c:105: warning: null argument where non-null required >>>>>>> (arg 2) >> >> >> >> I have one last idea : suppose there is a wrong character in that >> line. A character you >> cannot see. It sometimes happen when you copy/paste code from unsafe >> sources. >> >> Either edit config_file.c with a hex editor and check that all the >> characters are >> allowed, or delete that line and type it again by hand. No copy/paste. >> >> Also try to remove that line to see if there are still warnings. >> >> This is my last idea, but if something strange happen, it can give us >> other ideas... :) > > > Well, I tried commenting out the first line that reports the error, and > typing in by hand again above... and exactly the same problem. All very > odd. Howerer, since it's just a warning, compilation went ahead OK and I > installed it all OK, and it;s been collecting data that I can graph for > a few days now. I'll try and poke around a bit later to see if I can pin > it down further. > > I was going to say it's not caused any problems (and it probably is > unrelated), but I just found that: > > The first database purge I attempted: Marked a host for deleting that I > am no longer capturing data for. Then ran perfparse-db-purge, and got: > > +-----------------------------------------------------------------------------+ > > | Deleting data flagged for deletionAn error occured with the SQL: > > "DELETE perfdata_service FROM perfdata_service,perfdata_host WHERE > perfdata_service.host_name = perfdata_host.host_name AND > perfdata_host.is_deleted = 1" > > Failure Message: > > "Cannot delete or update a parent row: a foreign key constraint fails" > > Is this USER ERROR? ;-) > > Cheers > Nick > > > > > > > ------------------------------------------------------- > 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 > |