Uploaded image for project: 'FreeSWITCH'
  1. FreeSWITCH
  2. FS-10027

src/switch_msrp.c: format error with function msrp_send_file_function

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.8
    • Component/s: core
    • Security Level: public
    • Labels:
      None
    • Environment:
      raspberry pi 2
    • CPU Architecture:
      armhf
    • Kernel:
      Linux
    • uname:
      4.4.38-v7+ #938 SMP Thu Dec 15 15:22:21 GMT 2016 armv7l GNU/Linux
    • Userland:
      GNU/Linux
    • Distribution:
      Debian
    • Distribution Version:
      Debian 8 jessie
    • Compiler:
      gcc
    • Compiler Version:
      gcc version 4.9.2 (Raspbian 4.9.2-10)
    • FreeSWITCH GIT Revision:
      git~20170126T174345Z~e5cfaf5db8~32bit
    • GIT Master Revision hash::
      git~20170126T174345Z~e5cfaf5db8~32bit

      Description

      See https://freeswitch.org/jira/browse/FS-9617 for build failure on same c file.

      This time it's much further down:

      {noformat}
        CC libfreeswitch_la-switch_curl.lo
        CC libfreeswitch_la-switch_hashtable.lo
        CC libfreeswitch_la-switch_utf8.lo
        CC libfreeswitch_la-switch_msrp.lo
      src/switch_msrp.c: In function ‘msrp_send_file_function’:
      src/switch_msrp.c:1669:3: error: format ‘%ld’ expects argument of type ‘long int’, but argument 8 has type ‘switch_size_t’ [-Werror=format=]
         switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG1, "%ld bytes sent\n", len);
         ^
      cc1: all warnings being treated as errors
      Makefile:2300: recipe for target 'libfreeswitch_la-switch_msrp.lo' failed
      make[2]: *** [libfreeswitch_la-switch_msrp.lo] Error 1
      make[2]: Leaving directory '/usr/src/freeswitch'
      Makefile:1411: recipe for target 'all' failed
      make[1]: *** [all] Error 2
      make[1]: Leaving directory '/usr/src/freeswitch'
      Makefile:4128: recipe for target 'current' failed
      make: *** [current] Error 2
      {noformat}


      Looks like the file switch_msrp.c was modified on 1 January, 2017 but I have a more recent version of freeswitch running right now.

      https://freeswitch.org/stash/projects/FS/repos/freeswitch/commits/08603c7e89bdb91f40b8910782f6f7f3d67dbc39#src/switch_msrp.c

        Attachments

          Activity

            People

            • Assignee:
              mikej Mike Jerris
              Reporter:
              jungleboogie sean
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: