RES: [Cflowd] Problem compiling Cflowd in Solaris 9...

Ricardo Bernardo dos Santos rbsantos at infovias.com.br
Tue Jun 10 11:53:28 PDT 2003


Thank you,

I'll try it now.

Regards,
Ricardo.

-----Mensagem original-----
De: Kouprie, Robbert [mailto:R.Kouprie at DTO.TUDelft.NL] 
Enviada em: Tuesday, June 10, 2003 10:47 AM
Para: Ricardo Bernardo dos Santos
Cc: 'cflowd at caida.org'
Assunto: RE: [Cflowd] Problem compiling Cflowd in Solaris 9...


This is really a problem with your compiler version. gcc 3.2 _will_ give
the problems you describe. Make sure that when compiling you also use
g++2.95 and cpp-2.95 and de libstdc++ library version that comes with
gcc 2.95.

Regards,
- Robbert

-----Oorspronkelijk bericht-----
Van: Ricardo Bernardo dos Santos [mailto:rbsantos at infovias.com.br]
Verzonden: dinsdag 10 juni 2003 15:00
Aan: cflowd at caida.org
Onderwerp: [Cflowd] Problem compiling Cflowd in Solaris 9...


Hi,

I'm trying to compile Cflowd 2-1-b1 but I receive many C++ errors. I
check all libraries but everything OK. I don't know what I can do more.
I'm using gcc 3.2.3 and have tried using gcc 2.95.1 but I hadn't
success.

Part of errors:

c++ -g -O2 -Wno-deprecated -I../include -I../../include
-I/usr/local/arts/include -I../../snmp++/classes/include -c Cflo
wdCisco.cc -o CflowdCisco.o In file included from
../include/CflowdCisco.hh:54,
                 from CflowdCisco.cc:51:
../include/CflowdRawFlowLogger.hh:79: syntax error before `&' token
../include/CflowdRawFlowLogger.hh:96: ISO C++ forbids declaration of
`string'
   with no type
../include/CflowdRawFlowLogger.hh:96: `string' declared as an `inline'
field
../include/CflowdRawFlowLogger.hh:96: syntax error before `&' token
../include/CflowdRawFlowLogger.hh:107: ISO C++ forbids defining types
within
   return type
../include/CflowdRawFlowLogger.hh:107: syntax error before `&' token
../include/CflowdRawFlowLogger.hh:114: syntax error before `&' token
../include/CflowdRawFlowLogger.hh:125: syntax error before `&' token
../include/CflowdRawFlowLogger.hh:134: non-member function `int
LogSize()'
   cannot have `const' method qualifier
../include/CflowdRawFlowLogger.hh: In function `int LogSize()':
../include/CflowdRawFlowLogger.hh:135: invalid use of `this' in
non-member
   function
../include/CflowdRawFlowLogger.hh: At global scope:
../include/CflowdRawFlowLogger.hh:152: non-member function `int
NumLogs()'
   cannot have `const' method qualifier
../include/CflowdRawFlowLogger.hh: In function `int NumLogs()':
../include/CflowdRawFlowLogger.hh:153: invalid use of `this' in
non-member
   function
../include/CflowdRawFlowLogger.hh: At global scope:
../include/CflowdRawFlowLogger.hh:204: non-member function `char* const
   MapAddr()' cannot have `const' method qualifier
../include/CflowdRawFlowLogger.hh: In function `char* const MapAddr()':
../include/CflowdRawFlowLogger.hh:205: invalid use of `this' in
non-member
   function
../include/CflowdRawFlowLogger.hh: At global scope:
../include/CflowdRawFlowLogger.hh:208: syntax error before `private'
../include/CflowdRawFlowLogger.hh:210: 'string' is used as a type, but
is not
   defined as a type.
../include/CflowdRawFlowLogger.hh:215: syntax error before `}' token
^Cmake: *** [CflowdCisco.lo] Error 1

TIA.

[]'s
Ricardo.



More information about the Cflowd mailing list