Bug 225369 - net/freeswitch: clang 6.0.0 error: unknown warning option '-Wno-extended-offsetof'
Summary: net/freeswitch: clang 6.0.0 error: unknown warning option '-Wno-extended-offs...
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-22 06:11 UTC by O. Hartmann
Modified: 2018-09-10 20:03 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (corsmith)


Attachments
Added CFLAG needed; added more files to strip (1.28 KB, patch)
2018-08-28 04:31 UTC, Nathan
ndowens04: maintainer-approval? (corsmith)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2018-01-22 06:11:18 UTC
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
Comment 1 Walter Schwarzenfeld 2018-02-28 21:18:57 UTC
Add
CFLAGS+=-Wno-unknown-warning-option
Comment 2 Walter Schwarzenfeld 2018-02-28 22:09:36 UTC
No sorry, does not help, was wrong.
Comment 3 Walter Schwarzenfeld 2018-02-28 23:57:05 UTC
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).
Comment 4 Nathan 2018-08-28 04:31:21 UTC
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
Comment 5 corsmith 2018-09-10 19:59:54 UTC
Obsoleted by Bug 231292 - please close