Tshark: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
LDFLAGS="-L/opt/libc/lib -Wl,--allow-multiple-definition" ./configure --prefix=/usr/local/myshark \ | 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-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-ciscodump --disable-sshdump --disable-randpktdump --disable-text2pcap --disable-dumpcap --without-snappy --disable-sharkd \ | ||
--disable-warnings-as-errors | |||
sed -i 's/-Wl,--export-dynamic//g' 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)" | 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" | 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" |
Revision as of 21:11, 28 February 2017
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
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"