|
|
| Author |
Message |
dirty_al Helper
Joined: 19 Dec 2003 Posts: 19
|
Posted: Tue Dec 14, 2004 1:31 pm Post subject: Cant compile 0.18.2 in RedHat 7.2 |
|
|
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.cpp:370: `llround' undeclared (first use this function)
monitors.cpp:370: (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.cpp:370: `llround' undeclared (first use this function)
monitors.cpp:370: (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 |
|
| Back to top |
|
 |
silfreed Site Admin
Joined: 19 Jan 2003 Posts: 394 Location: Shippensburg, PA, USA
|
Posted: Tue Dec 14, 2004 2:27 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
dirty_al Helper
Joined: 19 Dec 2003 Posts: 19
|
Posted: Tue Dec 14, 2004 4:04 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
silfreed Site Admin
Joined: 19 Jan 2003 Posts: 394 Location: Shippensburg, PA, USA
|
Posted: Tue Dec 14, 2004 6:11 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
dirty_al Helper
Joined: 19 Dec 2003 Posts: 19
|
Posted: Wed Dec 15, 2004 12:55 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
silfreed Site Admin
Joined: 19 Jan 2003 Posts: 394 Location: Shippensburg, PA, USA
|
Posted: Wed Dec 15, 2004 1:46 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
keb Contributor
Joined: 09 Jul 2003 Posts: 44 Location: Camp Hill, PA, USA
|
Posted: Wed Dec 15, 2004 5:54 am Post subject: |
|
|
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.
| Code: |
| apt-get install gcc3 gcc3-c++ |
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:
| Code: |
| ./configure 'CXX=g++3' |
Let us know how it goes.
- Kevin |
|
| Back to top |
|
 |
dirty_al Helper
Joined: 19 Dec 2003 Posts: 19
|
Posted: Wed Dec 15, 2004 7:39 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
|