Wireshark mailing list archives
Re: Using DISSECTOR_SUPPORT_SRC
From: Jaap Keuter <jaap.keuter () xs4all nl>
Date: Fri, 19 Mar 2010 21:40:01 +0100
Hi, Jeremy O'Brien wrote:
Hello, I have a perfectly working dissector, but I wanted to move a very large struct I have in it into its own C file. So I moved it (still keeping it static)
Keeping it module static? Then there's no visibility outside the module, hence you can't link to it.
, declared an extern to it in the original file, and added the new c file to DISSECTOR_SUPPORT_SRC in Makefile.common in my plugin's directory. After (re)compiling wireshark, I get an undefined symbol error at runtime referencing this moved struct. So I tried moving the filename into DISSECTOR_SRC instead, and this also failed with the same error. Clearly I am doing something wrong. Have I missed a necessary file that I need to edit? Or am I going about this the completely wrong way? Any help is greatly appreciated. Thank you, Jeremy
___________________________________________________________________________ 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
Current thread:
- Using DISSECTOR_SUPPORT_SRC Jeremy O'Brien (Mar 19)
- Re: Using DISSECTOR_SUPPORT_SRC Bill Meier (Mar 19)
- Re: Using DISSECTOR_SUPPORT_SRC Jaap Keuter (Mar 19)
- Re: Using DISSECTOR_SUPPORT_SRC Sourabh Rathor (Mar 19)
- Re: Using DISSECTOR_SUPPORT_SRC Jeremy O'Brien (Mar 22)
- Re: Using DISSECTOR_SUPPORT_SRC Jeremy O'Brien (Mar 22)
- Re: Using DISSECTOR_SUPPORT_SRC Jeremy O'Brien (Mar 22)