If you are on this page you might have had issues  with installing Icinga on Freebsd, These issues are due to not respecting CFLAG variable, you can read about it here: http://www.freebsd.org/doc/en/books/porters-handbook/dads-cflags.html .  You will  run into this when running make, I’ve tried this with  icinga 1.4.2 & 1.5.0 (dev) on Freebsd 7.4 (amd64).

The fix is rather simple (by the way if you know of a better fix let me know):

1. cd to the icinga source directory and run the following command below:

for i in $(grep -R -H “?-Wall” ./* | cut -f1 -d ‘:’ ); do sed -i ” s”/CFLAGS=?-Wall/CFLAGS+=-Wall/” $i; done



The fix above is the long road, you can edit the main Makefile and fix the cflags issue in one file =).