[Freeswitch-users] make gsmopen Error
Sergey Safarov
s.safarov at gmail.com
Mon Sep 28 11:07:27 MSD 2015
Error confirmed on CentOS 7
[build at build ~]$ cd
/home/build/rpmbuild/BUILD/freeswitch-1.7.0/src/mod/endpoints/mod_gsmopen/
[build at build mod_gsmopen]$ make
make all-am
make[1]: Entering directory
`/home/build/rpmbuild/BUILD/freeswitch-1.7.0/src/mod/endpoints/mod_gsmopen'
CXX mod_gsmopen_la-mod_gsmopen.lo
In file included from /usr/include/ctb-0.16/linux/serport.h:12:0,
from /usr/include/ctb-0.16/serport.h:15,
from /usr/include/ctb-0.16/ctb.h:12,
from gsmopen.h:103,
from mod_gsmopen.cpp:34:
/usr/include/ctb-0.16/serportx.h: In member function 'char*
ctb::SerialPort_DCS::GetSettings()':
/usr/include/ctb-0.16/serportx.h:178:10: error: '_snprintf' was not
declared in this scope
baud);
^
mod_gsmopen.cpp: In function 'switch_call_cause_t
channel_outgoing_channel(switch_core_session_t*, switch_event_t*,
switch_caller_profile_t*, switch_core_session_t**, switch_memory_pool_t**,
switch_originate_flag_t, switch_call_cause_t*)':
mod_gsmopen.cpp:1066:83: error: '_snprintf' was not declared in this scope
snprintf(name, sizeof(name), "gsmopen/%s",
outbound_profile->destination_number);
^
mod_gsmopen.cpp: In function 'switch_status_t gsmopen_dump_function(const
char*, switch_core_session_t*, switch_stream_handle_t*)':
mod_gsmopen.cpp:2444:63: error: '_snprintf' was not declared in this scope
snprintf(value, sizeof(value) - 1, "%d", tech_pvt->active);
^
mod_gsmopen.cpp:2509:61: error: '_snprintf' was not declared in this scope
snprintf(value, sizeof(value) - 1, "%d", tech_pvt->active);
^
mod_gsmopen.cpp: In function 'int dump_event_full(private_t*, int, int,
const char*)':
mod_gsmopen.cpp:2839:55: error: '_snprintf' was not declared in this scope
snprintf(value, sizeof(value) - 1, "%d", alarm_code);
^
mod_gsmopen.cpp:2845:60: error: '_snprintf' was not declared in this scope
snprintf(value, sizeof(value) - 1, "%d", tech_pvt->active);
^
mod_gsmopen.cpp: In function 'void find_ttyusb_devices(private_t*, const
char*)':
mod_gsmopen.cpp:3076:72: error: '_snprintf' was not declared in this scope
len = snprintf(path, sizeof(path)-1, "%s/%s", dirname, entry->d_name);
^
make[1]: *** [mod_gsmopen_la-mod_gsmopen.lo] Error 1
make[1]: Leaving directory
`/home/build/rpmbuild/BUILD/freeswitch-1.7.0/src/mod/endpoints/mod_gsmopen'
make: *** [all] Error 2
[build at build mod_gsmopen]$ uname -a
Linux build.rcsnet.ru 3.10.0-229.7.2.el7.x86_64 #1 SMP Tue Jun 23 22:06:11
UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[build at build mod_gsmopen]$ rpm -qa | grep kernel-devel
kernel-devel-3.10.0-229.14.1.el7.x86_64
kernel-devel-3.10.0-229.1.2.el7.x86_64
kernel-devel-3.10.0-229.7.2.el7.x86_64
On Mon, Sep 28, 2015 at 9:44 AM, Shabbir abbasi <shabbirabbasi92 at gmail.com>
wrote:
>
> Centos 6.7 final Linux localhost.localdomain 3.10.40-1.el6.elrepo.i686
> i have downloaded FREESWITCH MASTER branch yesterday,
>
>
> cd /usr/src/freeswitch/src/mod/endpoints/mod_gsmopen/libctb-0.16/build
> make DEBUG=0 GPIB=0
> g++ -c -o release/ctb_lib_portscan.o -DNDEBUG -D_THREAD_SAFE -pthread -O0
> -I../include -MTrelease/ctb_lib_portscan.o -MF`echo
> release/ctb_lib_portscan.o | sed -e 's,\.o$,.d,'` -MD -MP
> ../src/portscan.cpp
> In file included from ../include/ctb-0.16/linux/serport.h:12,
> from ../include/ctb-0.16/serport.h:15,
> from ../include/ctb-0.16/ctb.h:12,
> from ../src/portscan.cpp:1:
> ../include/ctb-0.16/serportx.h: In member function ‘char*
> ctb::SerialPort_DCS::GetSettings()’:
> ../include/ctb-0.16/serportx.h:178: error: ‘_snprintf’ was not declared in
> this scope
> make: *** [release/ctb_lib_portscan.o] Error 1
>
>
> any solution ?
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150928/f45dbadb/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list