Home page logo
/

wireshark logo Wireshark mailing list archives

Re: Duplicate symbol warnings on Solaris
From: Guy Harris <guy () alum mit edu>
Date: Wed, 12 Mar 2014 00:24:35 -0700


On Mar 11, 2014, at 1:55 PM, Albert Chin <wireshark-dev () mlists thewrittenword com> 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.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]