FreeBSD 12

  1. create jenkins user  adduser 

  2. pkg install openjdk8-jre git cppunit libxml2 ccache autoconf automake libtool m4 nettle autoconf-archive libltdl

Note: you may have to install some packages from ports instead to ensure that the versions are aligned

FreeBSD 9

  1. create jenkins user  adduser 

  2. pkg_add -r openjdk8 bzr git cppunit libxml ccache autoconf automake libtool m4 nettle autoconf-archive

FreeBSD 9+ (using pkg-ng)

  1. create jenkins user  adduser 

  2. pkg update
  3. pkg install openjdk8 bzr git cppunit libxml2 ccache autoconf automake libtool libltdl m4 nettle pkgconf autoconf-archive gcc8-devel
  4. (optional) pkg install vim-lite bash

build instructions for FreeBSD-9

FreeBSD-9 stock compilers do not support c++11. There are packages and ports for gcc-4.9 and clang-3.5 which can build squid, however there are some pitfalls:

  • Install clang from ports, not packages.
  • clang needs libc++ for c++11 support; it won't work with libstdc++. The flags needed to enable this are -I/usr/local/include/c++/v1 -stlib=libc++

  • due to different ABI between gcc and clang, libcppunit needs to be installed twice, one with the g++ ABI and one with clang's. The default compiler for freebsd-9 is gcc; to setup the version for clang, configure it as  CC=clang35 CXX=clang++35 ./configure --prefix=/usr/local/clang-abi 

  • extra library paths are needed. Tested functioning command lines are:
    • CC=gcc49 CXX="g++49 -L/usr/local/lib/gcc49 -L/usr/local/lib" ./configure [args...]
    • CC=clang35 CXX="clang++35 -I/usr/local/include/c++/v1 -L/usr/local/clang-abi/lib -L/usr/local/lib -stlib=libc++" ./configure [args...]


Discuss this page using the "Discussion" link in the main menu

See Discussed Page


What about FreeBSD 10.1 or 10.2, can the build be updated? I also have seen that the 10 branch uses "pkg" and not "pkg_add" to install packages.

-- Eliezer Croitoru 2015-08-31 19:58:40

BuildFarm/FreeBsdInstall (last edited 2019-02-24 15:29:54 by FrancescoChemolli)