On recent CURRENT hosting poudriere with the very same revision of the OS for the jail (FreeBSD 12.0-CURRENT 1200056 amd64), building port net/freeswitch fails with the error shown below. [...] libtool: compile: cc -DHAVE_CONFIG_H -I. -I./crypto/include -fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops -I./src -Icrypto/include -I./include -I./crypto/include -DLIBICONV_PLUG -isystem /usr/local/include -fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops -I./src -Icrypto/include -I./include -I./crypto/include -O2 -pipe -Wno-c11-extensions -Wno-deprecated-declarations -Wno-zero-length-array -Wno-incompatible-pointer-types -DLIBICONV_PLUG -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -O2 -pipe -Wno-c11-extensions -Wno-deprecated-declarations -Wno-zero-length-array -Wno-incompatible-pointer-types -DLIBICONV_PLUG -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -Wno-extended-offsetof -DLIBICONV_PLUG -isystem /usr/local/include -I/usr/local/include -Wall -std=c99 -pedantic -MT null_cipher.lo -MD -MP -MF .deps/null_cipher.Tpo -c crypto/cipher/null_cipher.c -fPIC -DPIC -o null_cipher.o warning: unknown warning option '-Wno-extended-offsetof'; did you mean '-Wno-invalid-offsetof'? [-Wunknown-warning-option] cc: warning: optimization flag '-fexpensive-optimizations' is not supported [-Wignored-optimization-argument] cc: warning: optimization flag '-fexpensive-optimizations' is not supported [-Wignored-optimization-argument] error: unknown warning option '-Wno-extended-offsetof'; did you mean '-Wno-invalid-offsetof'? [-Werror,-Wunknown-warning-option] gmake[1]: *** [Makefile:2188: libfreeswitch_spandsp_la-alloc.lo] Error 1
Add CFLAGS+=-Wno-unknown-warning-option
No sorry, does not help, was wrong.
CFLAGS+=-Wno-unknown-warning-option should do it. (I tested it first on the wrong box with libressl, this throws another error and puzzled me).
Created attachment 196625 [details] Added CFLAG needed; added more files to strip net/freeswitch: * Added suggested CFLAG to fix build * Added more strip files -- were missed
Obsoleted by Bug 231292 - please close