ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] I have added another file to wireshark but keep getting unre

From: Richard Sharpe <realrichardsharpe@xxxxxxxxx>
Date: Sun, 24 Oct 2021 07:15:42 -0700
On Sun, Oct 24, 2021 at 7:07 AM Anders Broman via Wireshark-dev
<wireshark-dev@xxxxxxxxxxxxx> wrote:
>
> Hi,
> Did you try to delete the build dir and re-run CMake?

I did, but it turned out to be a stupid mistake. The function in
question had a forward declaration earlier on in the code that
declared it static :-(

> Regards
> Anders
>
> -----Original Message-----
> From: Wireshark-dev <wireshark-dev-bounces@xxxxxxxxxxxxx> On Behalf Of Richard Sharpe
> Sent: den 24 oktober 2021 15:17
> To: Developer support list for Wireshark <wireshark-dev@xxxxxxxxxxxxx>
> Subject: [Wireshark-dev] I have added another file to wireshark but keep getting unresolved references
>
> Hi folks,
>
> I have added another file to Wireshark but when I build I keep getting this:
>
> --------------------------
> [ 79%] Linking C executable run/sharkd
> /usr/bin/ld: run/libwireshark.so.14.0.8: undefined reference to `dissect_neighbor_report'
> collect2: error: ld returned 1 exit status
> make[2]: *** [CMakeFiles/sharkd.dir/build.make:160: run/sharkd] Error 1
> make[1]: *** [CMakeFiles/Makefile2:3630: CMakeFiles/sharkd.dir/all] Error 2
> make: *** [Makefile:160: all] Error 2
> ----------------------------
>
> The function is not static and the file has a handoff section and I have added the file to the files list in epan/dissectors/CMakeLists.txt.
>
> What else should I do?
>
> --
> Regards,
> Richard Sharpe
> (何以解憂?唯有杜康。--曹操)(传说杜康是酒的发明者)
> ___________________________________________________________________________
> Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
> Archives:    https://protect2.fireeye.com/v1/url?k=7fa4649d-203f5d98-7fa42406-86959e472243-36d92ad18a6c6eb6&q=1&e=2ced34b0-e6b9-4385-b2f5-2a58860d3081&u=https%3A%2F%2Fwww.wireshark.org%2Flists%2Fwireshark-dev
> Unsubscribe: https://protect2.fireeye.com/v1/url?k=fa656564-a5fe5c61-fa6525ff-86959e472243-00731add9e780d9f&q=1&e=2ced34b0-e6b9-4385-b2f5-2a58860d3081&u=https%3A%2F%2Fwww.wireshark.org%2Fmailman%2Foptions%2Fwireshark-dev
>              mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe
> ___________________________________________________________________________
> Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
> Archives:    https://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
>              mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe



-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)(传说杜康是酒的发明者)