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

switch_ivr_originate.c: error: format '%lld'

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.6.11
    • Component/s: core
    • Labels:
      None
    • Environment:
      Linux 4.4.19-v7+ #906 SMP Tue Aug 23 15:53:06 BST 2016 armv7l GNU/Linux
    • CPU Architecture:
      armhf
    • Kernel:
      Linux
    • Userland:
      GNU/Linux
    • Distribution:
      Debian
    • Distribution Version:
      Debian 8 jessie
    • lsb_release:
      Hide
      $ lsb_release
      No LSB modules are available.
      Show
      $ lsb_release No LSB modules are available.
    • Compiler:
      gcc
    • Compiler Version:
      gcc (Raspbian 4.9.2-10) 4.9.2
    • FreeSWITCH GIT Revision:
      962908aa5a100185c9631d76b9bc69cd07aa657b
    • GIT Master Revision hash::
      962908aa5a100185c9631d76b9bc69cd07aa657b

      Description

      Looks like commit
      https://freeswitch.org/stash/projects/FS/repos/freeswitch/commits/962908aa5a100185c9631d76b9bc69cd07aa657b

      Broke my arm build:

      src/switch_ivr_originate.c: In function 'switch_ivr_originate':
      src/switch_ivr_originate.c:2512:6: error: format '%lld' expects argument of type 'long long int', but argument 8 has type 'time_t' [-Werror=format=]
            switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_NOTICE, "Elapsed = %"SWITCH_TIME_T_FMT", originate retry timeout.\n", elapsed);
            ^
      src/switch_ivr_originate.c:2518:6: error: format '%lld' expects argument of type 'long long int', but argument 8 has type 'time_t' [-Werror=format=]
            switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Elapsed = %"SWITCH_TIME_T_FMT", originate retry not timed out yet\n", elapsed);
            ^
      cc1: all warnings being treated as errors
      Makefile:2110: recipe for target 'libfreeswitch_la-switch_ivr_originate.lo' failed
      make[2]: *** [libfreeswitch_la-switch_ivr_originate.lo] Error 1
      make[2]: Leaving directory '/usr/src/freeswitch'
      Makefile:1398: recipe for target 'all' failed
      make[1]: *** [all] Error 2
      make[1]: Leaving directory '/usr/src/freeswitch'
      Makefile:4099: recipe for target 'current' failed
      make: *** [current] Error 2

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: