[Freeswitch-dev] Fixed bug

Oleg Khovayko khovayko at gmail.com
Tue Aug 27 19:19:22 MSD 2013


Hi,

I built fresh FreeSWITCH from git. OS FreeBSD 9.1.

Got compilation error:


cc1: warnings being treated as errors
tport_type_ws.c: In function 'tport_recv_stream_ws':
tport_type_ws.c:231: warning: format '%ld' expects type 'long int', but 
argument 11 has type 'ssize_t'
gmake[9]: *** [tport_type_ws.lo] Error 1
gmake[8]: *** [all] Error 2
gmake[7]: *** [all-recursive] Error 1
gmake[6]: *** [all-recursive] Error 1
gmake[5]: *** [all] Error 2
gmake[4]: *** 
[/usr/src/freeswitch-upstream/libs/sofia-sip/libsofia-sip-ua/libsofia-sip-ua.la] 
Error 2
gmake[3]: *** [mod_sofia-install] Error 1
gmake[2]: *** [install-recursive] Error 1
gmake[1]: *** [install-recursive] Error 1
gmake: *** [install] Error 2
[root at olegh /usr/src/freeswitch-upstream]#


Found and fixed wrong conversion in the file (see bold (long) below):

./libs/sofia-sip/libsofia-sip-ua/tport/tport_type_ws.c

231           SU_DEBUG_1(("%s(%p): su_getmsgsize(): %s (%d) N=%ld\n", 
__func__, (void *)self,
232                                   su_strerror(err), err, *(long)*N));


Please, forward to appropriate maintainer.

Thanks,
Oleg






Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-dev mailing list