[Bug 236215] net/freeswitch: fails to build with clang 8

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Mar 4 13:21:49 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236215

            Bug ID: 236215
           Summary: net/freeswitch: fails to build with clang 8
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: needs-patch
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: jbeich at FreeBSD.org
                CC: corsmith at gmail.com
            Blocks: 236062
             Flags: maintainer-feedback?(corsmith at gmail.com)
                CC: corsmith at gmail.com

$ poudriere jail -cj clang8 -v projects/clang800-import -m svn+https
$ poudriere testport -j clang8 net/freeswitch
[...]
sip_pref_util.c:328:12: error: adding 'int' to a string does not append to the
string [-Werror,-Wstring-plus-int]
    base = MATCH("audio") || MATCH("automata") || MATCH("application") ||
           ^~~~~~~~~~~~~~
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                            ~~^~~
sip_pref_util.c:328:12: note: use array indexing to silence this warning
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                              ^
sip_pref_util.c:328:30: error: adding 'int' to a string does not append to the
string [-Werror,-Wstring-plus-int]
    base = MATCH("audio") || MATCH("automata") || MATCH("application") ||
                             ^~~~~~~~~~~~~~~~~
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                            ~~^~~
sip_pref_util.c:328:30: note: use array indexing to silence this warning
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                              ^
sip_pref_util.c:328:51: error: adding 'int' to a string does not append to the
string [-Werror,-Wstring-plus-int]
    base = MATCH("audio") || MATCH("automata") || MATCH("application") ||
                                                  ^~~~~~~~~~~~~~~~~~~~
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                            ~~^~~
sip_pref_util.c:328:51: note: use array indexing to silence this warning
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                              ^
sip_pref_util.c:329:7: error: adding 'int' to a string does not append to the
string [-Werror,-Wstring-plus-int]
      MATCH("actor");
      ^~~~~~~~~~~~~~
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                            ~~^~~
sip_pref_util.c:329:7: note: use array indexing to silence this warning
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                              ^
sip_pref_util.c:332:12: error: adding 'int' to a string does not append to the
string [-Werror,-Wstring-plus-int]
    base = MATCH("class") || MATCH("control");
           ^~~~~~~~~~~~~~
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                            ~~^~~
sip_pref_util.c:332:12: note: use array indexing to silence this warning
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                              ^
sip_pref_util.c:332:30: error: adding 'int' to a string does not append to the
string [-Werror,-Wstring-plus-int]
    base = MATCH("class") || MATCH("control");
                             ^~~~~~~~~~~~~~~~
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                            ~~^~~
sip_pref_util.c:332:30: note: use array indexing to silence this warning
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                              ^
sip_pref_util.c:335:12: error: adding 'int' to a string does not append to the
string [-Werror,-Wstring-plus-int]
    base = MATCH("duplex") || MATCH("data") || MATCH("description");
           ^~~~~~~~~~~~~~~
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                            ~~^~~
sip_pref_util.c:335:12: note: use array indexing to silence this warning
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                              ^
sip_pref_util.c:335:31: error: adding 'int' to a string does not append to the
string [-Werror,-Wstring-plus-int]
    base = MATCH("duplex") || MATCH("data") || MATCH("description");
                              ^~~~~~~~~~~~~
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                            ~~^~~
sip_pref_util.c:335:31: note: use array indexing to silence this warning
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                              ^
sip_pref_util.c:335:48: error: adding 'int' to a string does not append to the
string [-Werror,-Wstring-plus-int]
    base = MATCH("duplex") || MATCH("data") || MATCH("description");
                                               ^~~~~~~~~~~~~~~~~~~~
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                            ~~^~~
sip_pref_util.c:335:48: note: use array indexing to silence this warning
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                              ^
sip_pref_util.c:338:12: error: adding 'int' to a string does not append to the
string [-Werror,-Wstring-plus-int]
    base = MATCH("events");
           ^~~~~~~~~~~~~~~
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                            ~~^~~
sip_pref_util.c:338:12: note: use array indexing to silence this warning
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                              ^
sip_pref_util.c:341:12: error: adding 'int' to a string does not append to the
string [-Werror,-Wstring-plus-int]
    base = MATCH("isfocus");
           ^~~~~~~~~~~~~~~~
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                            ~~^~~
sip_pref_util.c:341:12: note: use array indexing to silence this warning
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                              ^
sip_pref_util.c:344:12: error: adding 'int' to a string does not append to the
string [-Werror,-Wstring-plus-int]
    base = MATCH("language");
           ^~~~~~~~~~~~~~~~~
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                            ~~^~~
sip_pref_util.c:344:12: note: use array indexing to silence this warning
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                              ^
sip_pref_util.c:347:12: error: adding 'int' to a string does not append to the
string [-Werror,-Wstring-plus-int]
    base = MATCH("mobility") || MATCH("methods");
           ^~~~~~~~~~~~~~~~~
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                            ~~^~~
sip_pref_util.c:347:12: note: use array indexing to silence this warning
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                              ^
sip_pref_util.c:347:33: error: adding 'int' to a string does not append to the
string [-Werror,-Wstring-plus-int]
    base = MATCH("mobility") || MATCH("methods");
                                ^~~~~~~~~~~~~~~~
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                            ~~^~~
sip_pref_util.c:347:33: note: use array indexing to silence this warning
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                              ^
sip_pref_util.c:350:12: error: adding 'int' to a string does not append to the
string [-Werror,-Wstring-plus-int]
    base = MATCH("priority");
           ^~~~~~~~~~~~~~~~~
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                            ~~^~~
sip_pref_util.c:350:12: note: use array indexing to silence this warning
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                              ^
sip_pref_util.c:353:12: error: adding 'int' to a string does not append to the
string [-Werror,-Wstring-plus-int]
    base = MATCH("schemes");
           ^~~~~~~~~~~~~~~~
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                            ~~^~~
sip_pref_util.c:353:12: note: use array indexing to silence this warning
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                              ^
sip_pref_util.c:356:12: error: adding 'int' to a string does not append to the
string [-Werror,-Wstring-plus-int]
    base = MATCH("type");
           ^~~~~~~~~~~~~
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                            ~~^~~
sip_pref_util.c:356:12: note: use array indexing to silence this warning
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                              ^
sip_pref_util.c:359:12: error: adding 'int' to a string does not append to the
string [-Werror,-Wstring-plus-int]
    base = MATCH("video");
           ^~~~~~~~~~~~~~
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                            ~~^~~
sip_pref_util.c:359:12: note: use array indexing to silence this warning
sip_pref_util.c:315:31: note: expanded from macro 'MATCH'
  (su_casenmatch(param + 1, s + 1, strlen(s) - 1) && \
                              ^
18 errors generated.

http://package18.nyi.freebsd.org/data/headamd64PR236062-default/2019-03-01_06h42m53s/logs/errors/freeswitch-1.8.1_2.log


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236062
[Bug 236062] [exp-run] Against projects/clang800-import branch
-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list