xref: /freebsd-src/contrib/libpcap/doc/README.solaris.md (revision 6f9cba8f8b5efd16249633e52483ea351876b67b)
1*6f9cba8fSJoseph Mingrone# Compiling libpcap on Solaris and related OSes
2*6f9cba8fSJoseph Mingrone
3*6f9cba8fSJoseph Mingrone* Autoconf works everywhere.
4*6f9cba8fSJoseph Mingrone* Neither Solaris lex nor Solaris yacc are suitable.
5*6f9cba8fSJoseph Mingrone* Neither illumos lex nor illumos yacc are suitable.
6*6f9cba8fSJoseph Mingrone* Solaris m4 and illumos m4 are suitable.
7*6f9cba8fSJoseph Mingrone
8*6f9cba8fSJoseph Mingrone## OmniOS r151042/AMD64
9*6f9cba8fSJoseph Mingrone
10*6f9cba8fSJoseph Mingrone* flex 2.6.4 and GNU Bison 3.8.2 work.
11*6f9cba8fSJoseph Mingrone* CMake 3.23.1 works.
12*6f9cba8fSJoseph Mingrone* GCC 11.2.0 and Clang 14.0.3 work.
13*6f9cba8fSJoseph Mingrone
14*6f9cba8fSJoseph Mingrone## OpenIndiana 2021.04/AMD64
15*6f9cba8fSJoseph Mingrone
16*6f9cba8fSJoseph Mingrone* flex 2.6.4 and GNU Bison 3.7.6 work.
17*6f9cba8fSJoseph Mingrone* CMake 3.21.1 works.
18*6f9cba8fSJoseph Mingrone* GCC 7.5.0 and GCC 10.3.0 work, Clang 9.0.1 works.
19*6f9cba8fSJoseph Mingrone
20*6f9cba8fSJoseph MingroneFor reference, the tests were done using a system installed from
21*6f9cba8fSJoseph Mingrone`OI-hipster-text-20210430.iso` plus the following packages:
22*6f9cba8fSJoseph Mingrone```shell
23*6f9cba8fSJoseph Mingronexargs -L1 pkg install <<ENDOFTEXT
24*6f9cba8fSJoseph Mingronedeveloper/build/autoconf
25*6f9cba8fSJoseph Mingronedeveloper/parser/bison
26*6f9cba8fSJoseph Mingronedeveloper/lexer/flex
27*6f9cba8fSJoseph Mingronedeveloper/build/cmake
28*6f9cba8fSJoseph Mingronedeveloper/gcc-10
29*6f9cba8fSJoseph Mingronedeveloper/clang-90
30*6f9cba8fSJoseph MingroneENDOFTEXT
31*6f9cba8fSJoseph Mingrone```
32*6f9cba8fSJoseph Mingrone
33*6f9cba8fSJoseph Mingrone## Solaris 11/AMD64
34*6f9cba8fSJoseph Mingrone
35*6f9cba8fSJoseph Mingrone* flex 2.6.4 and GNU Bison 3.7.3 work.
36*6f9cba8fSJoseph Mingrone* CMake 3.21.0 works.
37*6f9cba8fSJoseph Mingrone* Clang 11.0 works, GCC 11.2 works.
38*6f9cba8fSJoseph Mingrone
39*6f9cba8fSJoseph MingroneFor reference, the tests were done using Oracle Solaris 11.4.42.111.0.
40*6f9cba8fSJoseph Mingrone
41*6f9cba8fSJoseph Mingrone## Solaris 11/SPARC
42*6f9cba8fSJoseph Mingrone
43*6f9cba8fSJoseph Mingrone* flex 2.6.4 and GNU Bison 3.7.1 work.
44*6f9cba8fSJoseph Mingrone* CMake 3.14.3 works.
45*6f9cba8fSJoseph Mingrone* Sun C 5.13, Sun C 5.14 and Sun C 5.15 work; GCC 5.5.0 and GCC 7.3.0 work.
46*6f9cba8fSJoseph Mingrone
47*6f9cba8fSJoseph Mingrone## Solaris 10/SPARC
48*6f9cba8fSJoseph Mingrone
49*6f9cba8fSJoseph Mingrone* libpcap build fails with rpcapd enabled.
50*6f9cba8fSJoseph Mingrone* flex 2.6.4 and GNU Bison 3.7.1 work.
51*6f9cba8fSJoseph Mingrone* CMake 3.14.3 works.
52*6f9cba8fSJoseph Mingrone* Sun C 5.13 works, GCC 5.5.0 works.
53*6f9cba8fSJoseph Mingrone
54*6f9cba8fSJoseph Mingrone## Solaris 9/SPARC
55*6f9cba8fSJoseph Mingrone
56*6f9cba8fSJoseph Mingrone* flex 2.5.35 and GNU Bison 3.0.2 work.
57*6f9cba8fSJoseph Mingrone* CMake 2.8.9 does not work.
58*6f9cba8fSJoseph Mingrone* Neither Sun C 5.8 nor Sun C 5.9 work, GCC 4.6.4 works.
59