Package Details: tcpick 0.2.1-3

Git Clone URL: https://aur.archlinux.org/tcpick.git (read-only, click to copy)
Package Base: tcpick
Description: Tcp stream sniffer and connection tracker
Upstream URL: http://tcpick.sourceforge.net
Licenses: GPL
Submitter: christoph.gysin
Maintainer: christoph.gysin
Last Packager: christoph.gysin
Votes: 4
Popularity: 0.000000
First Submitted: 2015-09-30 19:20 (UTC)
Last Updated: 2021-04-27 11:24 (UTC)

Latest Comments

christoph.gysin commented on 2021-04-27 11:25 (UTC)

@schard Thanks for reporting, should be fixed now.

schard commented on 2021-04-27 10:55 (UTC)

I get a ton of linker errors when trying to build this in a clean chroot:

$ makechrootpkg -cr /var/build/ 
==> Synchronizing chroot copy [/var/build/root] -> [build]...done
==> Making package: tcpick 0.2.1-2 (Tue Apr 27 12:54:28 2021)
==> Retrieving sources...
  -> Found tcpick-0.2.1.tar.gz
  -> Found CVE-2006-0048.patch
  -> Found fix-build-with-gcc5.patch
  -> Found fix-double-free-error.patch
  -> Found fix-infinite-loop-on-powerpc.patch
  -> Found fix-man-invocation.patch
==> Validating source files with md5sums...
    tcpick-0.2.1.tar.gz ... Passed
    CVE-2006-0048.patch ... Passed
    fix-build-with-gcc5.patch ... Passed
    fix-double-free-error.patch ... Passed
    fix-infinite-loop-on-powerpc.patch ... Passed
    fix-man-invocation.patch ... Passed
==> Making package: tcpick 0.2.1-2 (Tue 27 Apr 2021 12:54:32 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found tcpick-0.2.1.tar.gz
  -> Found CVE-2006-0048.patch
  -> Found fix-build-with-gcc5.patch
  -> Found fix-double-free-error.patch
  -> Found fix-infinite-loop-on-powerpc.patch
  -> Found fix-man-invocation.patch
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Extracting tcpick-0.2.1.tar.gz with bsdtar
==> Starting prepare()...
patching file src/write.c
Hunk #1 succeeded at 241 (offset -3 lines).
patching file src/tcpick.h
patching file src/loop.c
patching file src/display.c
patching file src/tcpick.c
patching file src/time.c
patching file src/debug.c
patching file src/tracker.c
patching file src/args.c
patching file src/args.c
==> Starting build()...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for pcap_loop in -lpcap... yes
checking for an ANSI C-conforming const... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for ANSI C header files... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in_systm.h usability... yes
checking netinet/in_systm.h presence... yes
checking for netinet/in_systm.h... yes
checking netinet/udp.h usability... yes
checking netinet/udp.h presence... yes
checking for netinet/udp.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking pcap/pcap.h usability... yes
checking pcap/pcap.h presence... yes
checking for pcap/pcap.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for netinet/ip.h... yes
checking for net/if.h... yes
checking for netinet/if_ether.h... yes
checking for gethostbyaddr... yes
checking for getservbyport... yes
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for strdup... yes
checking for strndup... yes
checking for strtol... yes
checking for getopt... yes
checking for getopt_long... yes
checking for asctime... yes
checking for atoi... yes
checking for getuid... yes
checking for isascii... yes
checking for isgraph... yes
checking for iscntrl... yes
checking for vfprintf... yes
checking for localtime... yes
checking for vprintf... yes
checking for setuid... yes
checking for perror... yes
checking for signal... yes
checking for setitimer... yes
checking for strftime... yes
checking for time... yes
checking for unlink... yes
checking for mkdir... yes
checking for atexit... yes
checking for _exit... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/config.h
config.status: executing depfiles commands
Making all in src
make[1]: Entering directory '/build/tcpick/src/tcpick-0.2.1/src'
make  all-am
make[2]: Entering directory '/build/tcpick/src/tcpick-0.2.1/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I.   -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -MT args.o -MD -MP -MF ".deps/args.Tpo" -c -o args.o args.c; \
then mv -f ".deps/args.Tpo" ".deps/args.Po"; else rm -f ".deps/args.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.   -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -MT display.o -MD -MP -MF ".deps/display.Tpo" -c -o display.o display.c; \
then mv -f ".deps/display.Tpo" ".deps/display.Po"; else rm -f ".deps/display.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.   -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -MT lookup_tree.o -MD -MP -MF ".deps/lookup_tree.Tpo" -c -o lookup_tree.o lookup_tree.c; \
then mv -f ".deps/lookup_tree.Tpo" ".deps/lookup_tree.Po"; else rm -f ".deps/lookup_tree.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.   -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -MT lookup_query.o -MD -MP -MF ".deps/lookup_query.Tpo" -c -o lookup_query.o lookup_query.c; \
then mv -f ".deps/lookup_query.Tpo" ".deps/lookup_query.Po"; else rm -f ".deps/lookup_query.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.   -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -MT loop.o -MD -MP -MF ".deps/loop.Tpo" -c -o loop.o loop.c; \
then mv -f ".deps/loop.Tpo" ".deps/loop.Po"; else rm -f ".deps/loop.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.   -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -MT tracker.o -MD -MP -MF ".deps/tracker.Tpo" -c -o tracker.o tracker.c; \
then mv -f ".deps/tracker.Tpo" ".deps/tracker.Po"; else rm -f ".deps/tracker.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.   -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -MT tcpick.o -MD -MP -MF ".deps/tcpick.Tpo" -c -o tcpick.o tcpick.c; \
then mv -f ".deps/tcpick.Tpo" ".deps/tcpick.Po"; else rm -f ".deps/tcpick.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.   -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -MT write.o -MD -MP -MF ".deps/write.Tpo" -c -o write.o write.c; \
then mv -f ".deps/write.Tpo" ".deps/write.Po"; else rm -f ".deps/write.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.   -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -MT datalink.o -MD -MP -MF ".deps/datalink.Tpo" -c -o datalink.o datalink.c; \
then mv -f ".deps/datalink.Tpo" ".deps/datalink.Po"; else rm -f ".deps/datalink.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.   -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -MT verify.o -MD -MP -MF ".deps/verify.Tpo" -c -o verify.o verify.c; \
then mv -f ".deps/verify.Tpo" ".deps/verify.Po"; else rm -f ".deps/verify.Tpo"; exit 1; fi
tcpick.c: In function ‘main’:
tcpick.c:176:3: warning: ‘pcap_lookupdev’ is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations]
  176 |   dev = pcap_lookupdev( (char*) errbuf );
      |   ^~~
In file included from tcpick.h:91,
                 from tcpick.c:50:
/usr/include/pcap/pcap.h:394:16: note: declared here
  394 | PCAP_API char *pcap_lookupdev(char *)
      |                ^~~~~~~~~~~~~~
tcpick.c:183:3: warning: ignoring return value of ‘setuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  183 |   setuid(getuid());
      |   ^~~~~~~~~~~~~~~~
if gcc -DHAVE_CONFIG_H -I. -I. -I.   -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -MT colors.o -MD -MP -MF ".deps/colors.Tpo" -c -o colors.o colors.c; \
then mv -f ".deps/colors.Tpo" ".deps/colors.Po"; else rm -f ".deps/colors.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.   -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -MT time.o -MD -MP -MF ".deps/time.Tpo" -c -o time.o time.c; \
then mv -f ".deps/time.Tpo" ".deps/time.Po"; else rm -f ".deps/time.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.   -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -MT timer.o -MD -MP -MF ".deps/timer.Tpo" -c -o timer.o timer.c; \
then mv -f ".deps/timer.Tpo" ".deps/timer.Po"; else rm -f ".deps/timer.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.   -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -MT debug.o -MD -MP -MF ".deps/debug.Tpo" -c -o debug.o debug.c; \
then mv -f ".deps/debug.Tpo" ".deps/debug.Po"; else rm -f ".deps/debug.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.   -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -MT fragments.o -MD -MP -MF ".deps/fragments.Tpo" -c -o fragments.o fragments.c; \
then mv -f ".deps/fragments.Tpo" ".deps/fragments.Po"; else rm -f ".deps/fragments.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.   -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -MT quit.o -MD -MP -MF ".deps/quit.Tpo" -c -o quit.o quit.c; \
then mv -f ".deps/quit.Tpo" ".deps/quit.Po"; else rm -f ".deps/quit.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.   -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -MT msg.o -MD -MP -MF ".deps/msg.Tpo" -c -o msg.o msg.c; \
then mv -f ".deps/msg.Tpo" ".deps/msg.Po"; else rm -f ".deps/msg.Tpo"; exit 1; fi
gcc  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o tcpick  args.o display.o lookup_tree.o lookup_query.o loop.o tracker.o tcpick.o write.o datalink.o verify.o colors.o time.o timer.o debug.o fragments.o quit.o msg.o  -lpcap 
/usr/bin/ld: display.o:(.bss+0x0): multiple definition of `tcp_last_header'; args.o:(.bss+0x0): first defined here
/usr/bin/ld: display.o:(.bss+0x8): multiple definition of `ip_last_header'; args.o:(.bss+0x8): first defined here
/usr/bin/ld: lookup_tree.o:(.bss+0x8): multiple definition of `tcp_last_header'; args.o:(.bss+0x0): first defined here
/usr/bin/ld: lookup_tree.o:(.bss+0x10): multiple definition of `ip_last_header'; args.o:(.bss+0x8): first defined here
/usr/bin/ld: lookup_query.o:(.bss+0x0): multiple definition of `tcp_last_header'; args.o:(.bss+0x0): first defined here
/usr/bin/ld: lookup_query.o:(.bss+0x8): multiple definition of `ip_last_header'; args.o:(.bss+0x8): first defined here
/usr/bin/ld: loop.o:(.bss+0x0): multiple definition of `tcp_last_header'; args.o:(.bss+0x0): first defined here
/usr/bin/ld: loop.o:(.bss+0x8): multiple definition of `ip_last_header'; args.o:(.bss+0x8): first defined here
/usr/bin/ld: tracker.o:(.bss+0x10): multiple definition of `tcp_last_header'; args.o:(.bss+0x0): first defined here
/usr/bin/ld: tracker.o:(.bss+0x18): multiple definition of `ip_last_header'; args.o:(.bss+0x8): first defined here
/usr/bin/ld: tcpick.o:(.bss+0x170): multiple definition of `first_conn'; tracker.o:(.bss+0x8): first defined here
/usr/bin/ld: tcpick.o:(.bss+0x168): multiple definition of `last_conn'; tracker.o:(.bss+0x0): first defined here
/usr/bin/ld: tcpick.o:(.bss+0x280): multiple definition of `tcp_last_header'; args.o:(.bss+0x0): first defined here
/usr/bin/ld: tcpick.o:(.bss+0x288): multiple definition of `ip_last_header'; args.o:(.bss+0x8): first defined here
/usr/bin/ld: write.o:(.bss+0x0): multiple definition of `tcp_last_header'; args.o:(.bss+0x0): first defined here
/usr/bin/ld: write.o:(.bss+0x8): multiple definition of `ip_last_header'; args.o:(.bss+0x8): first defined here
/usr/bin/ld: datalink.o:(.bss+0x0): multiple definition of `tcp_last_header'; args.o:(.bss+0x0): first defined here
/usr/bin/ld: datalink.o:(.bss+0x8): multiple definition of `ip_last_header'; args.o:(.bss+0x8): first defined here
/usr/bin/ld: verify.o:(.bss+0x0): multiple definition of `tcp_last_header'; args.o:(.bss+0x0): first defined here
/usr/bin/ld: verify.o:(.bss+0x8): multiple definition of `ip_last_header'; args.o:(.bss+0x8): first defined here
/usr/bin/ld: colors.o:(.bss+0x0): multiple definition of `tcp_last_header'; args.o:(.bss+0x0): first defined here
/usr/bin/ld: colors.o:(.bss+0x8): multiple definition of `ip_last_header'; args.o:(.bss+0x8): first defined here
/usr/bin/ld: time.o:(.bss+0x0): multiple definition of `tcp_last_header'; args.o:(.bss+0x0): first defined here
/usr/bin/ld: time.o:(.bss+0x8): multiple definition of `ip_last_header'; args.o:(.bss+0x8): first defined here
/usr/bin/ld: timer.o:(.bss+0x0): multiple definition of `tcp_last_header'; args.o:(.bss+0x0): first defined here
/usr/bin/ld: timer.o:(.bss+0x8): multiple definition of `ip_last_header'; args.o:(.bss+0x8): first defined here
/usr/bin/ld: debug.o:(.bss+0x0): multiple definition of `tcp_last_header'; args.o:(.bss+0x0): first defined here
/usr/bin/ld: debug.o:(.bss+0x8): multiple definition of `ip_last_header'; args.o:(.bss+0x8): first defined here
/usr/bin/ld: fragments.o:(.bss+0x0): multiple definition of `tcp_last_header'; args.o:(.bss+0x0): first defined here
/usr/bin/ld: fragments.o:(.bss+0x8): multiple definition of `ip_last_header'; args.o:(.bss+0x8): first defined here
/usr/bin/ld: quit.o:(.bss+0x0): multiple definition of `tcp_last_header'; args.o:(.bss+0x0): first defined here
/usr/bin/ld: quit.o:(.bss+0x8): multiple definition of `ip_last_header'; args.o:(.bss+0x8): first defined here
/usr/bin/ld: msg.o:(.bss+0x0): multiple definition of `tcp_last_header'; args.o:(.bss+0x0): first defined here
/usr/bin/ld: msg.o:(.bss+0x8): multiple definition of `ip_last_header'; args.o:(.bss+0x8): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:222: tcpick] Error 1
make[2]: Leaving directory '/build/tcpick/src/tcpick-0.2.1/src'
make[1]: *** [Makefile:147: all] Error 2
make[1]: Leaving directory '/build/tcpick/src/tcpick-0.2.1/src'
make: *** [Makefile:241: all-recursive] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /var/build/build/build