Cant compile 0.18.2 in RedHat 7.2

dirty_al

14-12-2004 08:31:21

I've been able to compile netmrg since version 0.14 in my RedHat 7.2, now 0.18.2 gives me the error bellow.

monitors.cpp In function `uint process_monitor (DeviceInfo, MYSQL *,
RRDInfo)'
monitors.cpp370 `llround' undeclared (first use this function)
monitors.cpp370 (Each undeclared identifier is reported only once for
each function it appears in.)
make[2] *** [monitors.o] Error 1
make[1] *** [all-recursive] Error 1
make *** [all-recursive] Error 1

Thanks

make VERBOSE=1

Making all in src
make[1] Entering directory `/var/local/src/netmrg-0.18.2/src'
Making all in .
make[2] Entering directory `/var/local/src/netmrg-0.18.2/src'
CXX monitors.o
if g++ -DHAVE_CONFIG_H -I. -I. -I../src/include -I./include -D_REENTRANT -D_POS
IX_PTHREAD_SEMANTICS -I/usr/include/libxml2 -I/usr/local/mysql/include -I/usr/lo
cal/include/net-snmp -g -O2 -MT monitors.o -MD -MP -MF ".deps/monitors.Tpo" -c
-o monitors.o monitors.cpp; \
then mv -f ".deps/monitors.Tpo" ".deps/monitors.Po"; else rm -f ".deps/monitors.
Tpo"; exit 1; fi
monitors.cpp In function `uint process_monitor (DeviceInfo, MYSQL *,
RRDInfo)'
monitors.cpp370 `llround' undeclared (first use this function)
monitors.cpp370 (Each undeclared identifier is reported only once for
each function it appears in.)
make[2] *** [monitors.o] Error 1
make[2] Leaving directory `/var/local/src/netmrg-0.18.2/src'
make[1] *** [all-recursive] Error 1
make[1] Leaving directory `/var/local/src/netmrg-0.18.2/src'
make *** [all-recursive] Error 1

silfreed

14-12-2004 09:27:19

In our Software Requirements we list that we need Libstdc++ Version >= 3.2. To make this clearer, we should probably say that we require GCC X.Y,Z instead, as libstdc++ has been part of GCC since GCC 3.0.
We really recommend upgrading your GCC; I know this is probably a severe pain on RedHat 7.2, but we really couldn't run NetMRG stabally until RH9 and FC1.

-Doug

dirty_al

14-12-2004 11:04:39

I have not read the sotfware requirement for netmrg, but I have been using it on our system since version 0.14 and it has compiled well and run very stable in several boxes using RedHat 7.2. The GCC versions are
libgcc-3.0.4-1
gcc-2.96-112.7.2
gcc-c++-2.96-112.7.2

Is this a new requirement for 0.18.2? Is there anything I could do to get it compiled in my system?
I am running a very stable system and I am able to compile anything, well. until now.

Thank you very much and thanks for any help.

silfreed

14-12-2004 13:11:27

This is a new requirement for this version.
Check to see if you have a man page for llround (man llround).
If not, look to see if you have a /usr/include/tgmath.h file; that's where llround is defined in the glibc headers.
I'm actually quite surprised that you haven't had problems. We've almost always had problems with that version libstdc++ with the gatherer dying randomly.

-Doug

dirty_al

14-12-2004 19:55:23

Thanks Doug, actually, now that you mention, I've seen gatherer die abnormally sometimes, but it is not often enough to interfere with the graphics generation, that's why I think it runs stable for me, when it really does not 100%, but 98% I'd say.
Well, I am now considering a distribution upgrade, any suggestions?
Fedora Core 3? Any known issues with this distribution?

Thanks.

silfreed

14-12-2004 20:46:06

Pretty much anything with GCC 3.0+ should be good. So far we haven't experienced any problems with FC3, and you'll get the added benefit that you can use one of our pre-compiled RPMS ;-)

-Doug

keb

15-12-2004 00:54:04

It looks like RedHat 7.2 has a gcc3 RPM available, and the latest version from the RH 7.2 updates is gcc 3.0.4. If you're using apt, you should be able to install this by running the following command.

[code1702d03f627]apt-get install gcc3 gcc3-c++[/code1702d03f627]

This package should provide you with the needed requirements to properly build NetMRG, without having to upgrade your system. You may need to specify the version of g++ to use on the command line, like so

[code1702d03f627]./configure 'CXX=g++3'[/code1702d03f627]

Let us know how it goes.

- Kevin

dirty_al

15-12-2004 14:39:24

Kevin,

I just downloaded and installed gcc3, I did't know the RPM existed, thanks for the tip.
NetMRG-0.18.2 compiled nicelly and its running ok since a hour ago, so far so good.
Thanks.