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@xxxxxxxxxxxxxxxxxx)