Home page logo
/

wireshark logo Wireshark mailing list archives

Duplicate symbol warnings on Solaris
From: Albert Chin <wireshark-dev () mlists thewrittenword com>
Date: Tue, 11 Mar 2014 15:55:39 -0500

I've built wireshark-1.10.5 on Solaris 8, 9, 10, and 11. I'm seeing
linker warnings when linking libwireshark.la, wireshar, et. al.
similar to:
  ld: warning: symbol 'dcom_variant_type_vals' has differing sizes:
        (file dissectors/.libs/libdissectors.a(libdissectors_la-packet-dcom-dispatch.o) value=0x8; file 
dissectors/.libs/libdissectors.a(libdissectors_la-packet-dcom.o) value=0x138);
        dissectors/.libs/libdissectors.a(libdissectors_la-packet-dcom.o) definition taken
  ld: warning: symbol 'dcom_hresult_vals' has differing sizes:
        (file dissectors/.libs/libdissectors.a(libdissectors_la-packet-dcom-dispatch.o) value=0x8; file 
dissectors/.libs/libdissectors.a(libdissectors_la-packet-dcom.o) value=0x240);
        dissectors/.libs/libdissectors.a(libdissectors_la-packet-dcom.o) definition taken
  ld: warning: symbol 'etype_vals' has differing sizes:
        (file dissectors/.libs/libdissectors.a(libdissectors_la-packet-3com-xns.o) value=0x8; file 
dissectors/.libs/libdissectors.a(libdissectors_la-packet-ethertype.o) value=0x370);
        dissectors/.libs/libdissectors.a(libdissectors_la-packet-ethertype.o) definition taken
  ld: warning: symbol 'etype_vals' has differing sizes:
        (file dissectors/.libs/libdissectors.a(libdissectors_la-packet-ethertype.o) value=0x370; file 
dissectors/.libs/libdissectors.a(libdissectors_la-packet-fc.o) value=0x8);
  ...

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?

-- 
albert chin (china () thewrittenword com)
___________________________________________________________________________
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 ]
AlienVault