Wireshark-dev: Re: [Wireshark-dev] Duplicate symbol warnings on Solaris

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Wed, 12 Mar 2014 00:24:35 -0700
On Mar 11, 2014, at 1:55 PM, Albert Chin <wireshark-dev@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

> The issue is with array variables declared as:
>  epan/dissectors/packet-dcom.h:
>    WS_DLL_PUBLIC const value_string dcom_hresult_vals[];
>    WS_DLL_PUBLIC const value_string dcom_variant_type_vals[];
>  epan/etypes.h:
>    WS_DLL_PUBLIC const value_string etype_vals[];
> 
> Are these empty variable declarations legal?


If WS_DLL_PUBLIC expands to something including "extern", they're declarations, and, therefore, *are* legal, even though they're empty.

If it doesn't expand to something including "extern", they're *definitions*, and, therefore, *aren't* legal because they're empty and aren't initialized.

If it's not expanding to something that includes "extern" in 1.10.5, try the current top of the 1.10 branch; it should expand to something that includes "extern" there.