Created attachment 527554 [details] build.log > i686-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -o mailsnarf mailsnarf.o buf.o pcaputil.o -lresolv -lresolv -lnsl -lrpcsvc -L. -lmissing -ltirpc -L/usr/lib -lnids -L/usr/lib -lpcap -L/usr/lib -lnet > i686-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -o msgsnarf msgsnarf.o buf.o pcaputil.o -lresolv -lresolv -lnsl -lrpcsvc -L. -lmissing -ltirpc -L/usr/lib -lnids -L/usr/lib -lpcap -L/usr/lib -lnet > /usr/lib/libnids.so: undefined reference to `ip_fast_csum' > /usr/lib/libnids.so: undefined reference to `my_tcp_check' > /usr/lib/libnids.so: undefined reference to `ip_compute_csum' > /usr/lib/libnids.so: undefined reference to `my_udp_check' > collect2: error: ld returned 1 exit status > i686-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -o sshmitm sshmitm.o buf.o hex.o record.o ssh.o sshcrypto.o -lresolv -lresolv -lnsl -lrpcsvc -L. -lmissing -ltirpc -L/usr/lib -ldb -L/usr/lib -lnet -L/usr/lib -lssl -lcrypto > make: *** [Makefile:119: mailsnarf] Error 1 > make: *** Waiting for unfinished jobs.... > /usr/lib/libnids.so: undefined reference to `ip_fast_csum' > /usr/lib/libnids.so: undefined reference to `my_tcp_check' > /usr/lib/libnids.so: undefined reference to `ip_compute_csum' > /usr/lib/libnids.so: undefined reference to `my_udp_check' > collect2: error: ld returned 1 exit status > make: *** [Makefile:122: msgsnarf] Error 1 > * ERROR: net-analyzer/dsniff-2.4_beta1-r10::gentoo failed (compile phase): > * emake failed > Portage 2.3.24 (python 3.5.4-final-0, default/linux/x86/17.0, gcc-6.4.0, glibc-2.25-r11, 4.9.76-gentoo-r1 i686) ================================================================= System uname: Linux-4.9.76-gentoo-r1-i686-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.4.1 KiB Mem: 3108324 total, 680504 free KiB Swap: 488276 total, 488276 free Timestamp of repository gentoo: Sun, 15 Apr 2018 15:39:26 +0000 Head commit of repository gentoo: 8b31761f8c309d531402dab34638f2bfda482897 sh bash 4.4_p12 ld GNU ld (Gentoo 2.29.1 p3) 2.29.1 app-shells/bash: 4.4_p12::gentoo dev-lang/perl: 5.24.3-r1::gentoo dev-lang/python: 2.7.14-r1::gentoo, 3.5.4-r1::gentoo dev-util/cmake: 3.9.6::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/openrc: 0.34.11::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.15.1-r2::gentoo sys-devel/binutils: 2.29.1-r1::gentoo sys-devel/gcc: 6.4.0-r1::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r3::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers) sys-libs/glibc: 2.25-r11::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 ABI="x86" ABI_X86="32" ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA" ACCEPT_PROPERTIES="*" ACCEPT_RESTRICT="*" ARCH="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -pipe -march=pentium4m -mtune=pentium4m" CHOST="i686-pc-linux-gnu" CHOST_x86="i686-pc-linux-gnu" COLLISION_IGNORE="/lib/modules/* *.py[co] *$py.class */dropin.cache" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CPU_FLAGS_X86="mmx mmxext sse sse2" CXXFLAGS="-O2 -pipe -march=pentium4m -mtune=pentium4m" DEFAULT_ABI="x86" EDITOR="/usr/bin/mcedit" ELIBC="glibc" EPREFIX="" EROOT="/" FCFLAGS="-O2 -march=i686 -pipe" FEATURES="assume-digests binpkg-logs cgroup config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -march=i686 -pipe" GCC_SPECS="" GRUB_PLATFORMS="efi-32 pc" GSETTINGS_BACKEND="dconf" HOME="/root" INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/6.4.0/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.29.1/info:/usr/share/info" INPUT_DEVICES="libinput keyboard mouse" IUSE_IMPLICIT="abi_x86_32 prefix prefix-chain prefix-guest" KERNEL="linux" L10N="en en-US de de-DE" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LC_MESSAGES="C" LC_PAPER="de_DE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LIBDIR_x86="lib" LINGUAS="en de" LOGNAME="root" MAIL="/var/mail/root" MAKEOPTS="--jobs 5 --load-average 7.95" MULTILIB_ABIS="x86" NOCOLOR="true" OFFICE_IMPLEMENTATION="libreoffice" OPENGL_PROFILE="xorg-x11" PAGER="/usr/bin/less" PATH="/usr/i686-pc-linux-gnu/gcc-bin/6.4.0:/usr/lib/llvm/5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PWD="/root" PYTHONDONTWRITEBYTECODE="1" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" QT_GRAPHICSSYSTEM="raster" ROOT="/" ROOTPATH="/usr/i686-pc-linux-gnu/gcc-bin/6.4.0:/usr/lib/llvm/5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin" RUBY_TARGETS="ruby22 ruby23" SHELL="/bin/bash" SHLVL="2" SSH_TTY="/dev/pts/0" TERM="screen" TMUX="/tmp/tmux-0/default,4902,0" TMUX_PANE="%0" TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE="1" USER="root" USERLAND="GNU" VIDEO_CARDS="vmware"
This appears to be related to the version of the GCC that compiled libnids rather than the version of libnids or dsniff. If libnids was compiled with gcc-4.9.x dsniff compiles fine. If libnids was compiled with gcc-7* dsniff fails to compile. Also, if dsniff is installed and working it will fail to work if libnids is recompiled with the newer gcc.
This was actually an inlining/optimisation "bug" in libnids. *** This bug has been marked as a duplicate of bug 818517 ***