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