微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

在 Ubuntu 20.04.1 上安装 Kannel SMS gateway1.5.0

如何解决在 Ubuntu 20.04.1 上安装 Kannel SMS gateway1.5.0

我能够编译网关,但运行 make 命令时出现以下错误

    gcc -D_REENTRANT=1 -I. -Igw -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/MysqL -o gwlib/dbpool.o -c gwlib/dbpool.c
    In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,from /usr/include/stdlib.h:25,from gwlib/gwlib.h:70,from gwlib/dbpool.c:70:
    /usr/include/features.h:187:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated,use _DEFAULT_SOURCE" [-Wcpp]
  187 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated,use _DEFAULT_SOURCE"

    In file included from gwlib/gwlib.h:83,from gwlib/dbpool.c:70:
    gwlib/dbpool_MysqL.c: In function ‘MysqL_select’:
gwlib/dbpool_MysqL.c:224:48: error: ‘my_bool’ undeclared (first use in this function); did you mean ‘xr_bool’?
  224 | bind[i].is_null = gw_malloc(sizeof(my_bool));

    gwlib/gwmem.h:122:43: note: in deFinition of macro ‘gw_malloc’
  122 | #define gw_malloc(size) (gw_native_malloc(size))|                                           
gwlib/dbpool_MysqL.c:224:48: note: each undeclared identifier is reported only once for each function it appears in
  224 | bind[i].is_null = gw_malloc(sizeof(my_bool));

    gwlib/gwmem.h:122:43: note: in deFinition of macro ‘gw_malloc’
  122 | #define gw_malloc(size) (gw_native_malloc(size))

    make: *** [Makefile:230: gwlib/dbpool.o] Error 1`

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。