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

From: Michal Labedzki <michal.labedzki@xxxxxxxxx>
Date: Fri, 10 Jan 2014 14:07:37 +0100
Ok, I sent patch to you.

I have one more question: how tfshark works?
./tshark -V -r file.elf # works ok
./tfshark -V -r file.elf # does not work

How to display dissector fields with tfshark? (in case I do not know
their names)

On 10 January 2014 13:33,  <mmann78@xxxxxxxxxxxx> wrote:
> Unfortunately, yes it still needs to link with libwiretap.  I believe my
> initial copy/paste tried to remove it but I ended up restoring it so I could
> at least commit the "initial" version of fileshark.  Perhaps I didn't
> restore it in all build configurations.  You can send me a patch for
> autotools and I can commit it.
>
> Michael
>
> -----Original Message-----
> From: Michal Labedzki <michal.labedzki@xxxxxxxxx>
> To: Developer support list for Wireshark <wireshark-dev@xxxxxxxxxxxxx>
> Sent: Fri, Jan 10, 2014 5:09 am
> Subject: Re: [Wireshark-dev] Linking error tfshark
>
> Hello Michael,
>
> I still have a problem building tfshark with autotools:
>
>   CCLD   tfshark
> /usr/bin/ld: tfshark-cfile.o: undefined reference to symbol
> 'wtap_file_get_idb_info'
> /usr/bin/ld: note: 'wtap_file_get_idb_info' is defined in DSO
> src/wireshark/wiretap/.libs/libwiretap.so.0 so try adding it to the
> linker command line
> src/wireshark/wiretap/.libs/libwiretap.so.0: could not read symbols:
> Invalid operation
> collect2: error: ld returned 1 exit status
> make[2]: *** [tfshark] Error 1
>
> It seems that tfshark should (?) be linking with libwiretap.
>
>
> --
>
> Pozdrawiam / Best regards
> -------------------------------------------------------------------------------------------------------------
> Michał Łabędzki, Software Engineer
> Tieto Corporation
>
> Product Development Services
>
> http://www.tieto.com / http://www.tieto.pl
> ---
> ASCII: Michal Labedzki
> location: Swobodna 1 Street, 50-088 Wrocław, Poland
> room: 5.01 (desk next to 5.08)
> ---
> Please note: The information contained in this message may be legally
> privileged and confidential and protected from disclosure. If the
> reader of this message is not the intended recipient, you are hereby
> notified that any unauthorised use, distribution or copying of this
> communication is strictly prohibited. If you have received this
> communication in error, please notify us immediately by replying to
> the message and deleting it from your computer. Thank You.
> ---
> Please consider the environment before printing this e-mail.
> ---
> Tieto Poland spółka z ograniczoną odpowiedzialnością z siedzibą w
> Szczecinie, ul. Malczewskiego 26. Zarejestrowana w Sądzie Rejonowym
> Szczecin-Centrum w Szczecinie, XIII Wydział Gospodarczy Krajowego
> Rejestru Sądowego pod numerem 0000124858. NIP: 8542085557. REGON:
> 812023656. Kapitał zakładowy: 4 271500 PLN
> ___________________________________________________________________________
> 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
>
>
> ___________________________________________________________________________
> 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



-- 

Pozdrawiam / Best regards
-------------------------------------------------------------------------------------------------------------
Michał Łabędzki, Software Engineer
Tieto Corporation

Product Development Services

http://www.tieto.com / http://www.tieto.pl
---
ASCII: Michal Labedzki
location: Swobodna 1 Street, 50-088 Wrocław, Poland
room: 5.01 (desk next to 5.08)
---
Please note: The information contained in this message may be legally
privileged and confidential and protected from disclosure. If the
reader of this message is not the intended recipient, you are hereby
notified that any unauthorised use, distribution or copying of this
communication is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to
the message and deleting it from your computer. Thank You.
---
Please consider the environment before printing this e-mail.
---
Tieto Poland spółka z ograniczoną odpowiedzialnością z siedzibą w
Szczecinie, ul. Malczewskiego 26. Zarejestrowana w Sądzie Rejonowym
Szczecin-Centrum w Szczecinie, XIII Wydział Gospodarczy Krajowego
Rejestru Sądowego pod numerem 0000124858. NIP: 8542085557. REGON:
812023656. Kapitał zakładowy: 4 271500 PLN
From 3a93c5794a1c3afe9278feb3f06ec8b3837a99ac Mon Sep 17 00:00:00 2001
From: Michal Labedzki <michal.labedzki@xxxxxxxxx>
Date: Fri, 10 Jan 2014 13:58:04 +0100
Subject: [PATCH] Fix tfshark linking with autotools

tfshark need to be linked with libwiretap.
---
 Makefile.am | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile.am b/Makefile.am
index 02296a6..73c3fd9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -460,6 +460,7 @@ tfshark_LDADD = \
 	ui/cli/libcliui.a		\
 	ui/libui.a			\
 	filetap/libfiletap.la		\
+	wiretap/libwiretap.la		\
 	epan/libwireshark.la		\
 	wsutil/libwsutil.la		\
 	@SSL_LIBS@			\
-- 
on behalf of Tieto Corporation