Wireshark-dev: [Wireshark-dev] Wireshark-dev] Linking error tfshark
From: mmann78@xxxxxxxxxxxx
Date: Sat, 11 Jan 2014 15:05:10 -0500 (EST)
Patch committed to rev 54697.
The issue with tfshark -V option isn't the option itself, its the OPTSTRING string. I stripped it down from tshark (removing options that shouldn't be supported in tfshark) and apparently "broke" the string pattern so that getopt isn't parsing the options correctly. As a test, I restored it to the current tshark OPTSTRING and the -V option worked just fine.
Can someone point me to where I can understand the OPTSTRING syntax? The :'s seem arbitrary to me.
-----Original Message-----
From: Michal Labedzki <michal.labedzki@xxxxxxxxx>
To: Developer support list for Wireshark <wireshark-dev@xxxxxxxxxxxxx>; mmann78 <mmann78@xxxxxxxxxxxx>
Sent: Fri, Jan 10, 2014 8:07 am
Subject: Re: [Wireshark-dev] Linking error tfshark
From: Michal Labedzki <michal.labedzki@xxxxxxxxx>
To: Developer support list for Wireshark <wireshark-dev@xxxxxxxxxxxxx>; mmann78 <mmann78@xxxxxxxxxxxx>
Sent: Fri, Jan 10, 2014 8:07 am
Subject: Re: [Wireshark-dev] Linking error tfshark
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
- Follow-Ups:
- Re: [Wireshark-dev] Wireshark-dev] Linking error tfshark
- From: Jeff Morriss
- Re: [Wireshark-dev] Wireshark-dev] Linking error tfshark
- References:
- [Wireshark-dev] Linking error tfshark
- From: Joerg Mayer
- Re: [Wireshark-dev] Linking error tfshark
- From: mmann78
- Re: [Wireshark-dev] Linking error tfshark
- From: Michal Labedzki
- Re: [Wireshark-dev] Linking error tfshark
- From: mmann78
- Re: [Wireshark-dev] Linking error tfshark
- From: Michal Labedzki
- [Wireshark-dev] Linking error tfshark
- Prev by Date: Re: [Wireshark-dev] [Wireshark-commits] rev 54662: /trunk/ui/qt/ /trunk/ui/qt/: main_window.h main_window_slots.cpp
- Next by Date: Re: [Wireshark-dev] Wireshark-dev] Linking error tfshark
- Previous by thread: Re: [Wireshark-dev] Linking error tfshark
- Next by thread: Re: [Wireshark-dev] Wireshark-dev] Linking error tfshark
- Index(es):