[Cflowd] Fw: Compile Issue: Can't compile cflowd

From: John E. Rockwell (jrockwel@rochester.rr.com)
Date: Sat Dec 07 2002 - 08:47:26 PST

  • Next message: mlpi_uy_rff3d1w@amazon.com: "[Cflowd] 教您如何成為網路工程師"

        I'm currently experiencing an issue compiling cflowd. I've also tried compiling after patching with cflowd-2-1-b1-djp.patch, but that yields the same results. arts++ installation was similarly miserable, but I was able to install the binary distribution. The binary distribution for cflowd also works fine, but won't allow me to run flowscan.

    Configure runs fine.

    Here's what I get from 'make':

    [root@demon cflowd-2-1-b1]# make
    cd snmp++; make
    make[1]: Entering directory `/home/cflowd/cflowd-2-1-b1/snmp++'
    cd classes; make
    make[2]: Entering directory `/home/cflowd/cflowd-2-1-b1/snmp++/classes'
    cd src; make
    make[3]: Entering directory `/home/cflowd/cflowd-2-1-b1/snmp++/classes/src'
    g++ -D__unix__ -I../include/snmp++ -I./ -g -O2 -c oid.cpp -o oid.o
    In file included from /usr/include/c++/3.2/backward/iostream.h:31,
                     from ../include/snmp++/smival.h:49,
                     from ../include/snmp++/oid.h:62,
                     from oid.cpp:59:
    /usr/include/c++/3.2/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 of the C++ standard. Examples include
    substituting the <X> header for the <X.h> header for C++ includes, or <sstream> in
    stead of the deprecated header <strstream.h>. To disable this warning use -Wno-dep
    In file included from oid.cpp:59:
    ../include/snmp++/oid.h:181: `vector' was not declared in this scope
    ../include/snmp++/oid.h:181: parse error before `>' token
    oid.cpp:503: `vector' was not declared in this scope
    id.cpp:503: parse error before `>' token
    oid.cpp: In member function `void Oid::get_oid(...) const':
    oid.cpp:505: `outVect' undeclared (first use this function)
    oid.cpp:505: (Each undeclared identifier is reported only once for each
       function it appears in.)
    make[3]: *** [oid.lo] Error 1
    make[3]: Leaving directory `/home/cflowd/cflowd-2-1-b1/snmp++/classes/src'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/home/cflowd/cflowd-2-1-b1/snmp++/classes'
    make[1]: *** [classes/lib/libsnmp++.a] Error 2
    make[1]: Leaving directory `/home/cflowd/cflowd-2-1-b1/snmp++'
    make: *** [all] Error 2

    System Information:

    [root@demon cflowd-2-1-b1]# uname -a
    Linux demon 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 i386 GNU/Linux

    [root@demon cflowd-2-1-b1]# gcc --version
    gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)

    [root@demon cflowd-2-1-b1]# flex --version
    flex version 2.5.4

    [root@demon cflowd-2-1-b1]# bison --version
    bison (GNU Bison) 1.35

    arts++-1-1-a8 installed

        I scoured the archives and found a person who was experiencing a similar issue, but the solution provided was to update gcc. As you can see, I'm running a pretty recent version of gcc. http://www.caida.org/dynamic/archives/cflowd/0621.html

        Any help would be greatly appreciated!

    P.S. Please reply to all as I'm not currently subscribed to this mailing list.

    John E. Rockwell
    Network Engineer, Data Level II Operations
    Choice One Communications
    100 Chestnut Street
    Rochester, New York 14604
    585-697-2162 (Office)
    585-452-3604 (Pager)

    Cflowd mailing list

    This archive was generated by hypermail 2.1.4 : Sat Dec 07 2002 - 08:57:54 PST