From: Denis Ovsienko Date: Tue, 17 Aug 2021 16:39:47 +0000 (+0100) Subject: Document some OpenIndiana particulars. [skip ci] X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/4b3055b4bd5d07b5101b68380d7b85c5dc29651d Document some OpenIndiana particulars. [skip ci] --- diff --git a/README.md b/README.md index 48445ae4..07ce3639 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ tcpdump compiles and works on at least the following platforms: * {Mac} OS X / macOS * NetBSD * OpenBSD +* OpenIndiana * OpenWrt * Solaris * Windows (requires WinPcap or Npcap, and Visual Studio with CMake) diff --git a/build.sh b/build.sh index 0be231b8..4fb4915e 100755 --- a/build.sh +++ b/build.sh @@ -29,7 +29,17 @@ print_cc_version # these cases, please remember to remove respective exemption below to help any # later warnings in the same matrix subset trigger an error. -# (There are no exemptions right now.) +# shellcheck disable=SC2006 +case `cc_id`/`os_id` in +clang-9.*/SunOS-5.11) + # (OpenIndiana) + # tcpdump.c:2312:51: warning: this function declaration is not a prototype + # [-Wstrict-prototypes] + # tcpdump.c:2737:11: warning: this function declaration is not a prototype + # [-Wstrict-prototypes] + [ "`uname -o`" = illumos ] && TCPDUMP_TAINTED=yes + ;; +esac # shellcheck disable=SC2006 [ "$TCPDUMP_TAINTED" != yes ] && CFLAGS=`cc_werr_cflags` diff --git a/doc/README.solaris.md b/doc/README.solaris.md new file mode 100644 index 00000000..855d4988 --- /dev/null +++ b/doc/README.solaris.md @@ -0,0 +1,20 @@ +# Compiling tcpdump on Solaris and related OSes + +* Autoconf works everywhere. + +## OpenIndiana 2021.04/AMD64 + +* Both system and local libpcap are suitable. +* CMake 3.21.1 works. +* GCC 7.5.0 and GCC 10.3.0 work, Clang 9.0.1 works. + +For reference, the tests were done using a system installed from +`OI-hipster-text-20210430.iso` plus the following packages: +```shell +xargs -L1 pkg install <