Ethereal-dev: Re: [Ethereal-dev] Variable redefinition in epan/dissectors/packet-ocsp.c

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

From: ronnie sahlberg <ronniesahlberg@xxxxxxxxx>
Date: Mon, 3 Jan 2005 03:38:33 +1100
You could fix this temporarily by editing the OCSD.asn file and replace all 
occurences of Version with OCSDVersion and then just run 'make' in
that directory, that should regenerate the dissector for OCSD. It will
regenerate the dissector from the OCSD.asn file and copy the dissector
over to the epan/dissectors directory.

You then have to run 'make' in the main ethereal directory to
recompile ethereal itself.

A real fix to reduce the number of collissions will come later.


On Fri, 31 Dec 2004 03:35:58 +0100, Joerg Mayer <jmayer@xxxxxxxxx> wrote:
> On Wed, Dec 29, 2004 at 02:14:00PM -0600, Albert Chin wrote:
> > The IBM v6 compiler on AIX 4.3.3 doesn't like it when a variable is
> > redefined. Version_vals is defined in epan/dissectors/packet-x509af.h:
> >   extern const value_string Version_vals[];
> 
> I just tried to look at it and it's currently over my head how to fix
> this properly as:
> a) both files (packet-ocsd.c and packet-x509af.h are generated files
> b) Their spec files contain variables of the same name.
> 
> Ronnie: Would prefixing all static vars with the name of the protocol
> (e.g. OCSD) make sense (e.g. Version -> OCSDVersion)? If so, could someone
> who knows the asn2eth.py script fix this?
> Hmm, maybe prefixing non-static Vars would be useful too??
> 
> Ciao
> 
>    Joerg
> --
> Joerg Mayer                                           <jmayer@xxxxxxxxx>
> We are stuck with technology when what we really want is just stuff that
> works. Some say that should read Microsoft instead of technology.
>