Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problems with arts++ (required by cflowd)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
volumen1
Guru
Guru


Joined: 01 Mar 2003
Posts: 393
Location: Missoula, MT

PostPosted: Thu Oct 23, 2003 11:37 pm    Post subject: problems with arts++ (required by cflowd) Reply with quote

Has anyone been able to get cflowd and flowscan working on a Gentoo box? Here's some more information, in case you need it.

http://www.caida.org/tools/utilities/flowscan/index.xml
http://www.caida.org/tools/measurement/cflowd/#downloads

You, apparently, need to install arts++ (not just regular arts) to get it to work. However, I can't get it to compile. When I try it spews out tons and tons of errors. From what I've read, I'm starting to guess that this might be because GNU make 3.80 is a little more strict? I dunno... I have a pretty lousy understanding of C and C++.

Anyway, here's how it barfs:
Code:

 make
cd classes; make
make[1]: Entering directory `/usr/local/src/arts++-1-1-a8/classes'
cd src; make
make[2]: Entering directory `/usr/local/src/arts++-1-1-a8/classes/src'
g++ -c -g -O2 -I../include Arts.cc -o Arts.o
In file included from /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/include/g++-v3/backward/ostream.h:31,
                 from ../include/ArtsHeader.hh:53,
                 from ../include/Arts.hh:49,
                 from Arts.cc:50:
/usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3/include/g++-v3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
In file included from ../include/ArtsAttributeVector.hh:48,
                 from ../include/Arts.hh:50,
                 from Arts.cc:50:
../include/ArtsAttribute.hh:294: ISO C++ forbids declaration of `string' with
   no type
../include/ArtsAttribute.hh:294: syntax error before `(' token
../include/ArtsAttribute.hh:368: ISO C++ forbids declaration of `string' with
   no type
../include/ArtsAttribute.hh:368: declaration of `const int
   ArtsAttribute::string'
../include/ArtsAttribute.hh:294: conflicts with previous declaration `const int
   ArtsAttribute::string'
../include/ArtsAttribute.hh:368: syntax error before `(' token
../include/ArtsAttribute.hh:376: syntax error before `&' token
../include/ArtsAttribute.hh:501: syntax error before `*' token
../include/ArtsAttribute.hh:508: syntax error before `*' token
../include/ArtsAttribute.hh:368: duplicate member `ArtsAttribute::string'
In file included from ../include/Arts.hh:50,
                 from Arts.cc:50:
../include/ArtsAttributeVector.hh:55: syntax error before `<' token
../include/ArtsAttributeVector.hh:71: syntax error before `)' token
../include/ArtsAttributeVector.hh:94: syntax error before `)' token
../include/ArtsAttributeVector.hh:117: syntax error before `)' token
../include/ArtsAttributeVector.hh:141: syntax error before `)' token
../include/ArtsAttributeVector.hh:166: syntax error before `)' token
../include/ArtsAttributeVector.hh:182: syntax error before `&' token
../include/ArtsAttributeVector.hh:191: syntax error before `)' token
../include/ArtsAttributeVector.hh:216: syntax error before `)' token
../include/ArtsAttributeVector.hh:269: syntax error before `private'
../include/ArtsAttributeVector.hh:288: syntax error before `}' token
In file included from ../include/Arts.hh:51,
<SNIP>
../include/Ipv4PrefixPatricia.hh: At global scope:
../include/Ipv4PrefixPatricia.hh:667: syntax error before `}' token
../include/Ipv4PrefixPatricia.hh:674: ISO C++ forbids declaration of `
   Ipv4PrefixPatricia' with no type
../include/Ipv4PrefixPatricia.hh: In function `int Ipv4PrefixPatricia()':
../include/Ipv4PrefixPatricia.hh:674: `int Ipv4PrefixPatricia()' redeclared as
   different kind of symbol
../include/Ipv4PrefixPatricia.hh:86: previous declaration of `template<class
   Type> class Ipv4PrefixPatricia<Type>'
../include/Ipv4PrefixPatricia.hh:86: previous non-function declaration `
   template<class Type> class Ipv4PrefixPatricia<Type>'
../include/Ipv4PrefixPatricia.hh:674: conflicts with function declaration `int
   Ipv4PrefixPatricia()'
../include/Ipv4PrefixPatricia.hh:674: `key_type' undeclared (first use this
   function)
../include/Ipv4PrefixPatricia.hh:675: only constructors take base initializers
../include/Ipv4PrefixPatricia.hh:675: confused by earlier errors, bailing out
make[2]: *** [Arts.lo] Error 1
make[2]: Leaving directory `/usr/local/src/arts++-1-1-a8/classes/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/arts++-1-1-a8/classes'
make: *** [classes/lib/libArts.a] Error 2


The actual error is much, much longer. But, I couldn't fit it here.
_________________
I was born with a freakin' dice bag on my belt.
-- www.howsyournetwork.com
Back to top
View user's profile Send private message
volumen1
Guru
Guru


Joined: 01 Mar 2003
Posts: 393
Location: Missoula, MT

PostPosted: Thu Jan 15, 2004 10:13 pm    Post subject: Whee! Reply with quote

Thanks to the cflowd mailing-list, I learned that you either need to patch the source to be able to compile with gcc 3.X or you need to compile with a 2.X version of gcc.

Thanks to Gentoo, I was just about to emerge gcc-2.95.3 in a seperate slot and then use gcc-config to specify the old version. It now compiles without a hitch!
_________________
I was born with a freakin' dice bag on my belt.
-- www.howsyournetwork.com
Back to top
View user's profile Send private message
strerror
Retired Dev
Retired Dev


Joined: 16 Jan 2004
Posts: 24

PostPosted: Thu Jun 09, 2005 9:43 pm    Post subject: Reply with quote

you might want to check out my HOWTO http://www.disciplina.net/howto/HOWTO-network_monitoring.html. This describes how to set it up and also gives you links to ebuilds to try out. Feedback is welcome.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum