Ethereal-dev: Re: [ethereal-dev] Ethereal on SGI

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Thu, 23 Sep 1999 21:36:54 -0700
> FWIW, I also find __P in <sys/cdefs.h> here in IRIXland.  According to past
> news postings, this non-POSIX, BSD- and/or GNU-derived header file.

What version of UCD SNMP do you have installed?

3.6.2 uses __P only in "agent/mibgroup/misc/ipfwacc.h", and 4.0.1
doesn't use it at all; the ChangeLog file for 4.0.1 has the comments

      - __P -> ANSI.
    - snmplib/snmp_api.c: some left over __P macros
    - snmplib/snmp_api.c: some left over __P macros
    - (config.h.in, configure, configure.in): remove __P checking.
    - (asn1.h): remove __P() definition.
    - (smux.c): __P macros were called with too many arguments (needed (args)).
    - (*.*.*.*): rename macro __P -> __UCD_P to reduce stupid conflicts.
    - (*.*.*): __UCD_P -> __P, and a configure check to look for it.

(in order from most recent to least recent).

Presumably you're using a version that postdates

    - (asn1.h): remove __P() definition.

Neither 3.6.2 nor 4.0.1 have any __UCD_P in them, so I don't know what
happened to it, nor do I know whether they ripped all the __Ps out
before the "__P -> ANSI" (which presumably means "compilers that support
ANSI C prototypes now rule the planet, we're no longer going to support
those compilers that don't"), given that there's no comment prior to
that that says they did (said comment is in the 4.0.1 ChangeLog but not
the 3.6.2 one); the "some left over __P macros" comments seem to imply
that they were removed before then.