]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Document some OpenIndiana particulars. [skip ci]
authorDenis Ovsienko <[email protected]>
Tue, 17 Aug 2021 16:39:47 +0000 (17:39 +0100)
committerDenis Ovsienko <[email protected]>
Tue, 17 Aug 2021 16:39:47 +0000 (17:39 +0100)
README.md
build.sh
doc/README.solaris.md [new file with mode: 0644]

index 48445ae4c10be4256891fb189574fb4488e2bcdb..07ce3639b6bbca61c2ca2efb155b09d5d058e2ef 100644 (file)
--- 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)
index 0be231b8db632aa64a54ac2d7ef18c3a585a48d4..4fb4915e5e80241c8fc2cc5c5185cec15e04e118 100755 (executable)
--- 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 (file)
index 0000000..855d498
--- /dev/null
@@ -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 <<ENDOFTEXT
+developer/build/autoconf
+developer/build/cmake
+developer/gcc-10
+developer/clang-90
+ENDOFTEXT
+```