[Freeswitch-users] Mod_skinny: Call for testing!
Michael Jerris
mike at jerris.com
Mon May 24 17:11:03 PDT 2010
Mathieu, we have a define for the printf specifier for switch_size_t, because it is different on different os's:
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_NOTICE, "Session %" SWITCH_SIZE_T_FMT " (%s) Ended\n",
you can use it like that, or optionally, if appropriate, cast the value to the right type when passing it to printf style commands.
Mike
On May 24, 2010, at 6:50 AM, Patrick wrote:
> On 05/21/2010 02:54 AM, Mathieu Parent wrote:
> [snip]
>
> Hi Mathieu,
>
> On Fedora 12 and FreeSWITCH git rev f89cbdd... (from yesterday) I get
> the following error:
>
> quiet_libtool: compile: gcc -DHAVE_CONFIG_H -I.
> -I../../../../src/include -I../../../../libs/xmlrpc-c
> -I/home/patrick/redhat/BUILD/freeswitch/src/include
> -I/home/patrick/redhat/BUILD/freeswitch/src/include
> -I/home/patrick/redhat/BUILD/freeswitch/libs/libteletone/src -fPIC
> -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1
> -I/home/patrick/redhat/BUILD/freeswitch/src/include
> -I/home/patrick/redhat/BUILD/freeswitch/src/include
> -I/home/patrick/redhat/BUILD/freeswitch/libs/libteletone/src -fPIC
> -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1
> -DHAVE_VISIBILITY=1 -g -ggdb -Wall -std=c99 -pedantic
> -Wdeclaration-after-statement -g -ggdb -MT
> mod_skinny_la-skinny_server.lo -MD -MP -MF
> .deps/mod_skinny_la-skinny_server.Tpo -c skinny_server.c -fPIC -DPIC -o
> .libs/mod_skinny_la-skinny_server.o
> cc1: warnings being treated as errors
> skinny_server.c: In function ‘skinny_handle_register’:
> skinny_server.c:933: error: format ‘%d’ expects type ‘int’, but argument
> 11 has type ‘long unsigned int’
> skinny_server.c: In function ‘skinny_handle_port_message’:
> skinny_server.c:1084: error: format ‘%d’ expects type ‘int’, but
> argument 11 has type ‘long unsigned int’
> skinny_server.c: In function ‘skinny_handle_keypad_button_message’:
> skinny_server.c:1104: error: format ‘%d’ expects type ‘int’, but
> argument 11 has type ‘long unsigned int’
> skinny_server.c: In function ‘skinny_handle_stimulus_message’:
> skinny_server.c:1164: error: format ‘%d’ expects type ‘int’, but
> argument 11 has type ‘long unsigned int’
> skinny_server.c: In function ‘skinny_handle_speed_dial_stat_request’:
> skinny_server.c:1271: error: format ‘%d’ expects type ‘int’, but
> argument 11 has type ‘long unsigned int’
> skinny_server.c: In function ‘skinny_handle_line_stat_request’:
> skinny_server.c:1291: error: format ‘%d’ expects type ‘int’, but
> argument 11 has type ‘long unsigned int’
> skinny_server.c: In function ‘skinny_handle_capabilities_response’:
> skinny_server.c:1501: error: format ‘%d’ expects type ‘int’, but
> argument 11 has type ‘long unsigned int’
> skinny_server.c:1509: error: format ‘%d’ expects type ‘int’, but
> argument 11 has type ‘long unsigned int’
> skinny_server.c: In function ‘skinny_handle_alarm’:
> skinny_server.c:1548: error: format ‘%d’ expects type ‘int’, but
> argument 11 has type ‘long unsigned int’
> skinny_server.c: In function
> ‘skinny_handle_open_receive_channel_ack_message’:
> skinny_server.c:1571: error: format ‘%d’ expects type ‘int’, but
> argument 11 has type ‘long unsigned int’
> skinny_server.c: In function ‘skinny_handle_soft_key_event_message’:
> skinny_server.c:1722: error: format ‘%d’ expects type ‘int’, but
> argument 11 has type ‘long unsigned int’
> skinny_server.c: In function ‘skinny_headset_status_message’:
> skinny_server.c:1847: error: format ‘%d’ expects type ‘int’, but
> argument 11 has type ‘long unsigned int’
> skinny_server.c: In function
> ‘skinny_handle_register_available_lines_message’:
> skinny_server.c:1855: error: format ‘%d’ expects type ‘int’, but
> argument 11 has type ‘long unsigned int’
> skinny_server.c: In function ‘skinny_handle_service_url_stat_request’:
> skinny_server.c:1866: error: format ‘%d’ expects type ‘int’, but
> argument 11 has type ‘long unsigned int’
> skinny_server.c: In function ‘skinny_handle_feature_stat_request’:
> skinny_server.c:1886: error: format ‘%d’ expects type ‘int’, but
> argument 11 has type ‘long unsigned int’
> make: *** [mod_skinny_la-skinny_server.lo] Error 1
More information about the FreeSWITCH-users
mailing list