• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
TCPDump porting issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TCPDump porting issues


  • Subject: TCPDump porting issues
  • From: Chilton Webb <email@hidden>
  • Date: Tue, 14 Aug 2001 13:39:38 -0500

Just curious if anyone else has tried to bring TCPDump to OSX. I'm doing that right now, and experiencing a world of hurt. Here's my latest problem, any suggestions welcome:

1) I have one 'real' error:
extern __dead void usage(void) __attribute__((volatile));

The compiler no likey. Says "bad attribute specification, expecting identifier, found 'volatile'

What does that mean? How do I fix it?

2) I have one 'warning':
"control reaches end of non-void function"

// not a darn clue on this one. Here's the code snippet it's griping about:

static pcap_handler
lookup_printer(int type)
{
struct printer *p;

for (p = printers; p->f; ++p)
if (type == p->type)
return p->f;

syslog(LOG_ALERT,"unknown data link type 0x%x", type);
/* NOTREACHED */

//<------- here, by the way, is where it coughs.

}

Thanks, and I'll report me findings to the list. Arg.
-Chilton


  • Follow-Ups:
    • Re: TCPDump porting issues
      • From: Todd Heberlein <email@hidden>
    • Re: TCPDump porting issues
      • From: Brian Hill <email@hidden>
  • Prev by Date: Re: Accessing Hardware
  • Next by Date: RE: Accessing Hardware
  • Previous by thread: Re: Accessing Hardware
  • Next by thread: Re: TCPDump porting issues
  • Index(es):
    • Date
    • Thread