Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Linking error tfshark

Date: Wed, 8 Jan 2014 08:55:11 -0500 (EST)
My guess is that it doesn't like the commented out tfshark-tap-register.c (that I was using as a placeholder).  The attached patch fixes that.


-----Original Message-----
From: Joerg Mayer <jmayer@xxxxxxxxx>
To: wireshark-dev <wireshark-dev@xxxxxxxxxxxxx>
Sent: Wed, Jan 8, 2014 3:01 am
Subject: [Wireshark-dev] Linking error tfshark

Linking C executable run/tfshark
CMakeFiles/tfshark.dir/tfshark.c.o: In function `cf_open':
/home/jmayer/work/wireshark/svn/trunk/tfshark.c:2539: undefined reference to 
`ftap_file_type_subtype'
/home/jmayer/work/wireshark/svn/trunk/tfshark.c:2543: undefined reference to 
`ftap_snapshot_length'
CMakeFiles/tfshark.dir/tfshark.c.o: In function `cf_open_error_message':
/home/jmayer/work/wireshark/svn/trunk/tfshark.c:2626: undefined reference to 
`ftap_file_type_subtype_short_string'
/home/jmayer/work/wireshark/svn/trunk/tfshark.c:2700: undefined reference to 
`ftap_strerror'
CMakeFiles/tfshark.dir/tfshark.c.o: In function `main':
/home/jmayer/work/wireshark/svn/trunk/tfshark.c:910: undefined reference to 
`ftap_register_plugin_types'
/home/jmayer/work/wireshark/svn/trunk/tfshark.c:917: undefined reference to 
`register_all_filetap_modules'
/home/jmayer/work/wireshark/svn/trunk/tfshark.c:936: undefined reference to 
`register_all_tap_listeners'
/home/jmayer/work/wireshark/svn/trunk/tfshark.c:1049: undefined reference to 
`cap_file_init'
CMakeFiles/tfshark.dir/tfshark.c.o: In function `load_cap_file':
/home/jmayer/work/wireshark/svn/trunk/tfshark.c:1968: undefined reference to 
`ftap_strerror'
CMakeFiles/tfshark.dir/capture_ifinfo.c.o: In function `capture_interface_list':
/home/jmayer/work/wireshark/svn/trunk/capture_ifinfo.c:122: undefined reference 
to `sync_interface_list_open'
CMakeFiles/tfshark.dir/capture_ifinfo.c.o: In function `capture_get_if_capabilities':
/home/jmayer/work/wireshark/svn/trunk/capture_ifinfo.c:221: undefined reference 
to `sync_if_capabilities_open'
collect2: error: ld returned 1 exit status

I will look into this myself if not fixed by this afternoon :-)

Ciao
   Jörg
-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.
___________________________________________________________________________
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

Attachment: CMakeLists.txt.patch
Description: Binary data