Your uncomplicated grapher is what I am after but I'm having a little trouble with the Linux code. I've tracked a few errors that can be easily fixed
1) inifile.cpp line 1097 and line 1108 have repeated blocks that stop compilation of any linux code
2) ReportShell.cpp line 1211 I had to turn the large number into a float (by putting a decimal point at the end of the number) on my 32 bit system as it complained that this number was too big for a long (worked OK on the 64 bit system). There is also a similarly large number I changed a couple of lines below.
3) SNMPQuery.cpp On my 32 bit system NETSNMP_DEFAULT_MIBDIRS is not defined. Instead DEFAULT_MIBDIRS is defined.
4) SNMPQuery.cpp lines 682 and 691 the compiler complained that it could not turn a const U64 into a U64* so I removed the const directive in each of these lines.
After correcting 1) I could compile on my Mandriva 2009.1 64 bit system and after doing the others it would compile on a 32 bit Clarkconnect (CentOS 4.4) system BUT here's the big thing ...
On both systems when I ran
dug -c -d dug-ini/test1.ini
a file dug.log was created and then the programme seg faulted. When run with no ini file it exits correctly after complaining about the missing ini file.
I hate seg faults. They are really hard to pin down. Any ideas. Have any others complained of the same?
Stephen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Daf,
Your uncomplicated grapher is what I am after but I'm having a little trouble with the Linux code. I've tracked a few errors that can be easily fixed
1) inifile.cpp line 1097 and line 1108 have repeated blocks that stop compilation of any linux code
2) ReportShell.cpp line 1211 I had to turn the large number into a float (by putting a decimal point at the end of the number) on my 32 bit system as it complained that this number was too big for a long (worked OK on the 64 bit system). There is also a similarly large number I changed a couple of lines below.
3) SNMPQuery.cpp On my 32 bit system NETSNMP_DEFAULT_MIBDIRS is not defined. Instead DEFAULT_MIBDIRS is defined.
4) SNMPQuery.cpp lines 682 and 691 the compiler complained that it could not turn a const U64 into a U64* so I removed the const directive in each of these lines.
After correcting 1) I could compile on my Mandriva 2009.1 64 bit system and after doing the others it would compile on a 32 bit Clarkconnect (CentOS 4.4) system BUT here's the big thing ...
On both systems when I ran
dug -c -d dug-ini/test1.ini
a file dug.log was created and then the programme seg faulted. When run with no ini file it exits correctly after complaining about the missing ini file.
I hate seg faults. They are really hard to pin down. Any ideas. Have any others complained of the same?
Stephen