Alright, this will help. However it seems as though wireshark isn't
even trying to build my file. As I said, I added it to the
DISSECTOR_SUPPORT_SRC array in my Makefile.common, and reconfigured
and all that jazz, but wireshark doesn't touch it. Clearly I have
missed something else.
On Sat, Mar 20, 2010 at 01:46, Sourabh Rathor
<sourabhrathor2008@xxxxxxxxx> wrote:
> I think the problem is that you are trying to extern a static variable.
> Static variable has a scope in its own file and can't be accessed anywhere
> else...
>
> On Sat, Mar 20, 2010 at 1:13 AM, Jeremy O'Brien <obrien654j@xxxxxxxxx>
> 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), 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@xxxxxxxxxxxxx>
>> Archives: http://www.wireshark.org/lists/wireshark-dev
>> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>> mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe
>
>
>
> --
> Sourabh Rathor
> Institute Of Informatics & Communication
> South Campus, Delhi University
>
> ___________________________________________________________________________
> Sent via: Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
> Archives: http://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
> mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe
>