#9 compiler error

closed
None
5
2007-01-02
2006-12-08
eNTi
No

hi. i'm using centos 4.4 and having some troubles getting your nifty tool to work properly on that system. centos keeps on ignoring any standards and has no libpcap-devel package, but i figure it maybe got the necessary libs in libpcap. still, i'm getting a compiler error:

gcc -O2 -c decpcap.c
decpcap.c: In function `dp_parse_ip':
decpcap.c:79: error: label at end of compound statement
decpcap.c: In function `dp_parse_ip6':
decpcap.c:101: error: label at end of compound statement
decpcap.c: In function `dp_parse_ethernet':
decpcap.c:131: error: label at end of compound statement
decpcap.c: In function `dp_parse_ppp':
decpcap.c:176: error: label at end of compound statement
make: *** [decpcap.o] Error 1

Discussion

  • Arnout Engelen
    Arnout Engelen
    2006-12-15

    Logged In: YES
    user_id=392382
    Originator: NO

    what versions of gcc and nethogs are you using?

     
  • eNTi
    eNTi
    2006-12-15

    Logged In: YES
    user_id=454453
    Originator: YES

    $ gcc --version
    gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-3)
    Copyright (C) 2006 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    nethogs-0.6.0.tar.gz

     
  • Arnout Engelen
    Arnout Engelen
    2006-12-15

    Logged In: YES
    user_id=392382
    Originator: NO

    gcc 3.4 should certainly work, could you try the current CVS version? I should really get a new release out one of these days...

     
  • Arnout Engelen
    Arnout Engelen
    2006-12-18

    • assigned_to: nobody --> raboofje
    • status: open --> pending
     
  • Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
    • status: pending --> closed