tce-load -i compiletc cmake ncursesw-dev gtk3-dev curl-dev libpcap-dev libgeoip-dev libnet-dev wget https://github.com/Ettercap/ettercap/releases/download/v0.8.3.1/ettercap-0.8.3.1.tar.gz cd ettercap-0.8.3.1 mkdir build cd build cmake -LAH -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-flto -mtune=generic -Os -pipe" -DCMAKE_C_FLAGS_RELEASE="-flto -mtune=generic -Os -pipe" -DCMAKE_CXX_FLAGS_RELEASE="-flto -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_VERBOSE_MAKEFILE=TRUE -DGTK_BUILD_TYPE=GTK3 -DINSTALL_SYSCONFDIR=/usr/local/etc -DPOLKIT_DIR=/usr/local/share/polkit-1/actions -DCURSES_CURSES_LIBRARY="/usr/local/lib/libmenuw.so /usr/local/lib/libpanelw.so" -DCURSES_NCURSES_LIBRARY=/usr/local/lib/libncursesw.so -DCURSES_FORM_LIBRARY=/usr/local/lib/libformw.so -DCURSES_INCLUDE_PATH=/usr/local/include/ncursesw ../ find . -name flags.make -type f -exec sed -i 's/-O2//g' {} \; find . -name link.txt -type f -exec sed -i 's/-O2//g' {} \; make [0m 32.40s] make install -- The following OPTIONAL packages have been found: * GTK3 (required version >= 3.12.0) * CURL (required version >= 7.26.0) * PkgConfig * GEOIP * LIBNET * PCRE * BISON * FLEX -- The following REQUIRED packages have been found: * Curses * OpenSSL * ZLIB * Threads each time build fails substitute as below [-L/usr/local/lib -lncursesw -lmenuw -lformw -lpanelw] /usr/local/bin/cc -flto -mtune=generic -Os -pipe -w -D_FORTIFY_SOURCE=2 -rdynamic CMakeFiles/ettercap.dir/ec_parser.c.o CMakeFiles/ettercap.dir/ec_main.c.o -o ettercap -Wl,-rpath,/usr/src/ettercap-0.8.3.1/build/src:/usr/local/lib:/usr/src/ettercap-0.8.3.1/build/src/interfaces: libettercap.so.0.8.3.1 /usr/local/lib/libssl.so /usr/local/lib/libcrypto.so -lz -lpthread -ldl /usr/local/lib/libGeoIP.so /usr/local/lib/libnet.so -lresolv /usr/local/lib/libpcre.so interfaces/libettercap-ui.so.0.8.3.1 -L/usr/local/lib -lncursesw -lmenuw -lformw -lpanelw /usr/local/lib/libfreetype.so /usr/local/lib/libglib-2.0.so /usr/local/lib/libgthread-2.0.so /usr/local/lib/libgobject-2.0.so /usr/local/lib/libgio-2.0.so /usr/local/lib/libgdk_pixbuf-2.0.so /usr/local/lib/libgdk-3.so /usr/local/lib/libgtk-3.so /usr/local/lib/libcairo.so /usr/local/lib/libpango-1.0.so /usr/local/lib/libatk-1.0.so -lgthread-2.0 /usr/local/lib/libpcap.so /usr/local/lib/libssl.so /usr/local/lib/libcrypto.so -lz -lpthread -ldl /usr/local/lib/libGeoIP.so /usr/local/lib/libnet.so -lresolv /usr/local/lib/libpcre.so /usr/local/lib/libcurl.so /usr/local/bin/cc -flto -mtune=generic -Os -pipe -w -D_FORTIFY_SOURCE=2 -rdynamic CMakeFiles/etterlog.dir/etterlog/el_analyze.c.o CMakeFiles/etterlog.dir/etterlog/el_conn.c.o CMakeFiles/etterlog.dir/etterlog/el_decode.c.o CMakeFiles/etterlog.dir/etterlog/el_decode_http.c.o CMakeFiles/etterlog.dir/etterlog/el_display.c.o CMakeFiles/etterlog.dir/etterlog/el_log.c.o CMakeFiles/etterlog.dir/etterlog/el_main.c.o CMakeFiles/etterlog.dir/etterlog/el_parser.c.o CMakeFiles/etterlog.dir/etterlog/el_profiles.c.o CMakeFiles/etterlog.dir/etterlog/el_stream.c.o CMakeFiles/etterlog.dir/etterlog/el_target.c.o -o etterlog -Wl,-rpath,/usr/src/ettercap-0.8.3.1/build/src:/usr/src/ettercap-0.8.3.1/build/src/interfaces:/usr/local/lib: ../src/libettercap.so.0.8.3.1 ../src/interfaces/libettercap-ui.so.0.8.3.1 -L/usr/local/lib -lncursesw -lmenuw -lformw -lpanelw /usr/local/lib/libfreetype.so /usr/local/lib/libglib-2.0.so /usr/local/lib/libgthread-2.0.so /usr/local/lib/libgobject-2.0.so /usr/local/lib/libgio-2.0.so /usr/local/lib/libgdk_pixbuf-2.0.so /usr/local/lib/libgdk-3.so /usr/local/lib/libgtk-3.so /usr/local/lib/libcairo.so /usr/local/lib/libpango-1.0.so /usr/local/lib/libatk-1.0.so -lgthread-2.0 /usr/local/lib/libpcap.so /usr/local/lib/libssl.so /usr/local/lib/libcrypto.so -lz -lpthread -ldl /usr/local/lib/libGeoIP.so /usr/local/lib/libnet.so -lresolv /usr/local/lib/libpcre.so /usr/local/lib/libcurl.so /usr/local/bin/cc -flto -mtune=generic -Os -pipe -w -D_FORTIFY_SOURCE=2 -rdynamic CMakeFiles/etterfilter.dir/etterfilter/ef_compiler.c.o CMakeFiles/etterfilter.dir/etterfilter/ef_encode.c.o CMakeFiles/etterfilter.dir/etterfilter/ef_main.c.o CMakeFiles/etterfilter.dir/etterfilter/ef_output.c.o CMakeFiles/etterfilter.dir/etterfilter/ef_parser.c.o CMakeFiles/etterfilter.dir/etterfilter/ef_tables.c.o CMakeFiles/etterfilter.dir/etterfilter/ef_test.c.o CMakeFiles/etterfilter.dir/ef_syntax.c.o CMakeFiles/etterfilter.dir/ef_grammar.c.o -o etterfilter -Wl,-rpath,/usr/src/ettercap-0.8.3.1/build/src:/usr/src/ettercap-0.8.3.1/build/src/interfaces:/usr/local/lib: ../src/libettercap.so.0.8.3.1 ../src/interfaces/libettercap-ui.so.0.8.3.1 -L/usr/local/lib -lncursesw -lmenuw -lformw -lpanelw /usr/local/lib/libfreetype.so /usr/local/lib/libglib-2.0.so /usr/local/lib/libgthread-2.0.so /usr/local/lib/libgobject-2.0.so /usr/local/lib/libgio-2.0.so /usr/local/lib/libgdk_pixbuf-2.0.so /usr/local/lib/libgdk-3.so /usr/local/lib/libgtk-3.so /usr/local/lib/libcairo.so /usr/local/lib/libpango-1.0.so /usr/local/lib/libatk-1.0.so -lgthread-2.0 /usr/local/lib/libpcap.so /usr/local/lib/libssl.so /usr/local/lib/libcrypto.so -lz -lpthread -ldl /usr/local/lib/libGeoIP.so /usr/local/lib/libnet.so -lresolv /usr/local/lib/libpcre.so /usr/local/lib/libcurl.so