Tshark: Difference between revisions
Jump to navigation
Jump to search
(Created page with "= static tshark build = p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Courier New'; color: #cccccc; background-color: #000000}span.s1 {font-variant-ligatures: no-commo...") |
No edit summary |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= static tshark build = | = static tshark build = | ||
wget https://1.eu.dl.wireshark.org/src/wireshark-2.2.4.tar.bz2 | |||
LDFLAGS="-L/opt/libc/lib -Wl,--allow-multiple-definition" ./configure --prefix=/usr/local/myshark --disable-wireshark --enable-static=yes --enable-shared=no --disable-androiddump --disable-rawshark --disable-dftest --disable-ciscodump --disable-sshdump --disable-randpktdump --disable-text2pcap --disable-dumpcap | |||
LDFLAGS="-L/opt/libc/lib -Wl,--allow-multiple-definition" ./configure --prefix=/usr/local/myshark \ | |||
--disable-wireshark --enable-static=yes --enable-shared=no --disable-androiddump --disable-rawshark --disable-dftest \ | |||
--disable-ciscodump --disable-sshdump --disable-randpktdump --disable-text2pcap --disable-dumpcap | |||
Edit Makefile | |||
sed -i 's/-Wl,--export-dynamic//g' Makefile | |||
add "-lgpg-error -ldl -lpcre -lgmp" to the end of this line: "$(AM_V_CCLD)$(tshark_LINK) $(tshark_OBJECTS) $(tshark_LDADD) $(LIBS)" | |||
change this line: "$(AM_V_CCLD)$(LINK) $(mergecap_OBJECTS) $(mergecap_LDADD) $(LIBS)" to this: "$(AM_V_CCLD)$(tshark_LINK) $(mergecap_OBJECTS) $(mergecap_LDADD) $(LIBS) -lpcre -ldl" | |||
== 2.3.0 == | |||
./autogen | |||
LDFLAGS="-L/opt/libc/lib -Wl,--allow-multiple-definition" ./configure --prefix=/usr/local/myshark \ | |||
--disable-wireshark --enable-static=yes --enable-shared=no --disable-androiddump --disable-rawshark --disable-dftest \ | |||
--disable-ciscodump --disable-sshdump --disable-randpktdump --disable-text2pcap --disable-dumpcap --without-snappy --disable-sharkd \ | |||
--disable-warnings-as-errors --disable-udpdump | |||
sed -i 's/-Wl,--export-dynamic//g' Makefile | |||
add "-lgpg-error -ldl -lpcre -lgmp" to the end of this line: "$(AM_V_CCLD)$(tshark_LINK) $(tshark_OBJECTS) $(tshark_LDADD) $(LIBS)" | |||
change this line: "$(AM_V_CCLD)$(LINK) $(mergecap_OBJECTS) $(mergecap_LDADD) $(LIBS)" to this: "$(AM_V_CCLD)$(tshark_LINK) $(mergecap_OBJECTS) $(mergecap_LDADD) $(LIBS) -lpcre -ldl" | |||
== 3.6.5 == | |||
*compile curl with ./configure --enable-static --without-libffi --disable-ldap --disable-ldaps --disable-rtsp --without-librtmp --with-gnutls | |||
*compile gnutls with ./configure --without-p11-kit --enable-static --with-included-libtasn1 --with-included-unistring --enable-ssl3-support | |||
*compile nettle ./configure --enable-static --enable-mini-gmp | |||
*compile gmp with ./configure --enable-static | |||
*edit CMakeOptions.txt and disable everything BUILD_* except tshark | |||
mkdir wireshark-build; cd wireshark-build; cmake ../wireshark-3.6.5 -DENABLE_STATIC=ON; make | |||
vim ../wireshark-static2/CMakeFiles/tshark.dir/link.txt - add -lbrotlidec -lbrotlicommon -lkrb5support -lstdc++ -lgnutls -lhogweed -lnettle -llzma -lpcre -ldl -lgmp -lz -lresolv -lxml2 -licuio -licutu -licuuc -licui18n -licudata -lglib-2.0 -lgmodule-2.0 -lgnutls -lidn2 -licui18n -lbrotlienc -lunistring -lstdc++ -ldl |
Latest revision as of 15:32, 13 May 2022
static tshark build
wget https://1.eu.dl.wireshark.org/src/wireshark-2.2.4.tar.bz2
LDFLAGS="-L/opt/libc/lib -Wl,--allow-multiple-definition" ./configure --prefix=/usr/local/myshark \ --disable-wireshark --enable-static=yes --enable-shared=no --disable-androiddump --disable-rawshark --disable-dftest \ --disable-ciscodump --disable-sshdump --disable-randpktdump --disable-text2pcap --disable-dumpcap
Edit Makefile
sed -i 's/-Wl,--export-dynamic//g' Makefile add "-lgpg-error -ldl -lpcre -lgmp" to the end of this line: "$(AM_V_CCLD)$(tshark_LINK) $(tshark_OBJECTS) $(tshark_LDADD) $(LIBS)" change this line: "$(AM_V_CCLD)$(LINK) $(mergecap_OBJECTS) $(mergecap_LDADD) $(LIBS)" to this: "$(AM_V_CCLD)$(tshark_LINK) $(mergecap_OBJECTS) $(mergecap_LDADD) $(LIBS) -lpcre -ldl"
2.3.0
./autogen LDFLAGS="-L/opt/libc/lib -Wl,--allow-multiple-definition" ./configure --prefix=/usr/local/myshark \ --disable-wireshark --enable-static=yes --enable-shared=no --disable-androiddump --disable-rawshark --disable-dftest \ --disable-ciscodump --disable-sshdump --disable-randpktdump --disable-text2pcap --disable-dumpcap --without-snappy --disable-sharkd \ --disable-warnings-as-errors --disable-udpdump
sed -i 's/-Wl,--export-dynamic//g' Makefile add "-lgpg-error -ldl -lpcre -lgmp" to the end of this line: "$(AM_V_CCLD)$(tshark_LINK) $(tshark_OBJECTS) $(tshark_LDADD) $(LIBS)" change this line: "$(AM_V_CCLD)$(LINK) $(mergecap_OBJECTS) $(mergecap_LDADD) $(LIBS)" to this: "$(AM_V_CCLD)$(tshark_LINK) $(mergecap_OBJECTS) $(mergecap_LDADD) $(LIBS) -lpcre -ldl"
3.6.5
- compile curl with ./configure --enable-static --without-libffi --disable-ldap --disable-ldaps --disable-rtsp --without-librtmp --with-gnutls
- compile gnutls with ./configure --without-p11-kit --enable-static --with-included-libtasn1 --with-included-unistring --enable-ssl3-support
- compile nettle ./configure --enable-static --enable-mini-gmp
- compile gmp with ./configure --enable-static
- edit CMakeOptions.txt and disable everything BUILD_* except tshark
mkdir wireshark-build; cd wireshark-build; cmake ../wireshark-3.6.5 -DENABLE_STATIC=ON; make vim ../wireshark-static2/CMakeFiles/tshark.dir/link.txt - add -lbrotlidec -lbrotlicommon -lkrb5support -lstdc++ -lgnutls -lhogweed -lnettle -llzma -lpcre -ldl -lgmp -lz -lresolv -lxml2 -licuio -licutu -licuuc -licui18n -licudata -lglib-2.0 -lgmodule-2.0 -lgnutls -lidn2 -licui18n -lbrotlienc -lunistring -lstdc++ -ldl