You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configure is OK, but build appears several errors:
./configure --with-astversion=22.2.0 -with-asterisk=/Instaladores/asterisk/asterisk-22.2.0/include
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether sleep supports fractional seconds... yes
checking filesystem timestamp resolution... 0.01
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking xargs -n works... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for strip... strip
checking for rm... rm
checking for library containing iconv... none required
checking for sqlite3_open in -lsqlite3... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/time.h... yes
checking for termios.h... yes
checking whether asterisk.h in /Instaladores/asterisk/asterisk-22.2.0/include... yes
checking for asterisk.h... no
checking whether iconv.h in ../include... no
checking whether iconv.h in /usr/include... yes
checking for iconv.h... yes
checking for sqlite3.h... yes
checking for iconv use const inbuf... checking for egrep -e... /usr/bin/grep -E
no
checking for iconv_t in iconv.h... yes
checking for AST_CONTROL_SRCCHANGE in asterisk/frame.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking for ssize_t... yes
checking for uint64_t... yes
checking whether CC supports -fvisibility=hidden... yes
checking whether CC supports -fPIC... yes
checking whether CC supports -Wall... yes
checking whether CC supports -Wextra... yes
checking whether CC supports -MD -MT conftest.o -MF /dev/null -MP... yes
checking whether DESTDIR is /usr/lib/asterisk/modules... yes
checking for working memcmp... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for memmem... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strncasecmp... yes
checking for strtol... yes
checking for realpath... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating stamp-h
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
make
Makefile:76: warning: ignoring prerequisites on suffix rule definition
gcc -g -O2 -O6 -Wno-old-style-declaration -I. -std=gnu99 -DAST_MODULE_SELF_SYM=__internal_chan_quectel_self -D_GNU_SOURCE -I/Instaladores/asterisk/asterisk-22.2.0/include -I/usr/include -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT app.o -MF .app.o.d -MP -o app.o -c app.c
In file included from app.c:23:
chan_quectel.h:46:12: warning: 'writedev' defined but not used [-Wunused-variable]
46 | static int writedev = -1;
| ^~~~~~~~
chan_quectel.h:43:12: warning: 'silencethreshold' defined but not used [-Wunused-variable]
43 | static int silencethreshold = 1000;
| ^~~~~~~~~~~~~~~~
chan_quectel.h:42:12: warning: 'silencesuppression' defined but not used [-Wunused-variable]
42 | static int silencesuppression = 0;
| ^~~~~~~~~~~~~~~~~~
chan_quectel.h:38:25: warning: 'format' defined but not used [-Wunused-variable]
38 | static snd_pcm_format_t format = SND_PCM_FORMAT_S16_LE;
| ^~~~~~
gcc -g -O2 -O6 -Wno-old-style-declaration -I. -std=gnu99 -DAST_MODULE_SELF_SYM=__internal_chan_quectel_self -D_GNU_SOURCE -I/Instaladores/asterisk/asterisk-22.2.0/include -I/usr/include -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_command.o -MF .at_command.o.d -MP -o at_command.o -c at_command.c
at_command.c: In function 'at_enqueue_ussd':
at_command.c:359:38: warning: pointer targets in passing argument 3 of 'gsm7_pack' differ in signedness [-Wpointer-sign]
359 | res = gsm7_pack(code16, res, code_packed, sizeof(code_packed), 0);
| ^~~~~~~~~~~
| |
| uint8_t * {aka unsigned char *}
In file included from at_command.c:26:
char_conv.h:16:75: note: expected 'char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'}
16 | EXPORT_DECL ssize_t gsm7_pack(const uint16_t *in, size_t in_length, char *out, size_t out_size, unsigned out_padding);
| ~~~~~~^~~
at_command.c: At top level:
at_command.c:36:19: warning: 'cmd_ddsetex2' defined but not used [-Wunused-const-variable=]
36 | static const char cmd_ddsetex2[] = "AT\r";
| ^~~~~~~~~~~~
In file included from at_command.c:27:
chan_quectel.h:46:12: warning: 'writedev' defined but not used [-Wunused-variable]
46 | static int writedev = -1;
| ^~~~~~~~
chan_quectel.h:43:12: warning: 'silencethreshold' defined but not used [-Wunused-variable]
43 | static int silencethreshold = 1000;
| ^~~~~~~~~~~~~~~~
chan_quectel.h:42:12: warning: 'silencesuppression' defined but not used [-Wunused-variable]
42 | static int silencesuppression = 0;
| ^~~~~~~~~~~~~~~~~~
chan_quectel.h:38:25: warning: 'format' defined but not used [-Wunused-variable]
38 | static snd_pcm_format_t format = SND_PCM_FORMAT_S16_LE;
| ^~~~~~
gcc -g -O2 -O6 -Wno-old-style-declaration -I. -std=gnu99 -DAST_MODULE_SELF_SYM=__internal_chan_quectel_self -D_GNU_SOURCE -I/Instaladores/asterisk/asterisk-22.2.0/include -I/usr/include -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_parse.o -MF .at_parse.o.d -MP -o at_parse.o -c at_parse.c
at_parse.c: In function 'at_parse_cmgr':
at_parse.c:389:38: warning: pointer targets in passing argument 2 of 'unhex' differ in signedness [-Wpointer-sign]
389 | int pdu_length = (unhex(str, str) + 1) / 2;
| ^~~
| |
| char *
In file included from at_parse.h:11,
from at_parse.c:19:
char_conv.h:13:48: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *'
13 | EXPORT_DECL int unhex(const char *in, uint8_t *out);
| ~~~~~~~~~^~~
at_parse.c:395:33: warning: pointer targets in passing argument 1 of 'pdu_parse_sca' differ in signedness [-Wpointer-sign]
395 | res = pdu_parse_sca(str + i, pdu_length - i, sca, sca_len);
| ~~~~^~~
| |
| char *
In file included from at_parse.h:12:
pdu.h:43:40: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *'
43 | EXPORT_DECL int pdu_parse_sca(uint8_t *pdu, size_t pdu_length, char *sca, size_t sca_len);
| ~~~~~~~~~^~~
at_parse.c:401:25: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
401 | if (tpdu_length > pdu_length - i) {
| ^
at_parse.c:405:35: warning: pointer targets in passing argument 1 of 'tpdu_parse_type' differ in signedness [-Wpointer-sign]
405 | res = tpdu_parse_type(str + i, pdu_length - i, tpdu_type);
| ~~~~^~~
| |
| char *
pdu.h:44:42: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *'
44 | EXPORT_DECL int tpdu_parse_type(uint8_t *pdu, size_t pdu_length, int *type);
| ~~~~~~~~~^~~
at_parse.c:413:52: warning: pointer targets in passing argument 1 of 'tpdu_parse_status_report' differ in signedness [-Wpointer-sign]
413 | res = tpdu_parse_status_report(str + i, pdu_length - i, mr, oa, oa_len, scts, dt, st);
| ~~~~^~~
| |
| char *
pdu.h:45:51: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *'
45 | EXPORT_DECL int tpdu_parse_status_report(uint8_t *pdu, size_t pdu_length, int *mr, char *ra, size_t ra_len, char *scts, char *dt, int *st);
| ~~~~~~~~~^~~
at_parse.c:420:46: warning: pointer targets in passing argument 1 of 'tpdu_parse_deliver' differ in signedness [-Wpointer-sign]
420 | res = tpdu_parse_deliver(str + i, pdu_length - i, *tpdu_type, oa, oa_len, scts, msg16_tmp, udh);
| ~~~~^~~
| |
| char *
pdu.h:46:45: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *'
46 | EXPORT_DECL int tpdu_parse_deliver(uint8_t *pdu, size_t pdu_length, int tpdu_type, char *oa, size_t oa_len, char *scts, uint16_t *msg, pdu_udh_t *udh);
| ~~~~~~~~~^~~
at_parse.c:420:97: warning: pointer targets in passing argument 7 of 'tpdu_parse_deliver' differ in signedness [-Wpointer-sign]
420 | res = tpdu_parse_deliver(str + i, pdu_length - i, *tpdu_type, oa, oa_len, scts, msg16_tmp, udh);
| ^~~~~~~~~
| |
| int16_t * {aka short int *}
pdu.h:46:131: note: expected 'uint16_t *' {aka 'short unsigned int *'} but argument is of type 'int16_t *' {aka 'short int *'}
46 | EXPORT_DECL int tpdu_parse_deliver(uint8_t *pdu, size_t pdu_length, int tpdu_type, char *oa, size_t oa_len, char *scts, uint16_t *msg, pdu_udh_t *udh);
| ~~~~~~~~~~^~~
at_parse.c:425:36: warning: pointer targets in passing argument 1 of 'ucs2_to_utf8' differ in signedness [-Wpointer-sign]
425 | res = ucs2_to_utf8(msg16_tmp, res, msg, *msg_len);
| ^~~~~~~~~
| |
| int16_t * {aka short int *}
char_conv.h:12:50: note: expected 'const uint16_t *' {aka 'const short unsigned int *'} but argument is of type 'int16_t *' {aka 'short int *'}
12 | EXPORT_DECL ssize_t ucs2_to_utf8(const uint16_t in, size_t in_length, char out, size_t out_size);
| ~~~~~~~~~~~~~~~~^~
In file included from at_parse.c:21:
chan_quectel.h: At top level:
chan_quectel.h:46:12: warning: 'writedev' defined but not used [-Wunused-variable]
46 | static int writedev = -1;
| ^~~~~~~~
chan_quectel.h:43:12: warning: 'silencethreshold' defined but not used [-Wunused-variable]
43 | static int silencethreshold = 1000;
| ^~~~~~~~~~~~~~~~
chan_quectel.h:42:12: warning: 'silencesuppression' defined but not used [-Wunused-variable]
42 | static int silencesuppression = 0;
| ^~~~~~~~~~~~~~~~~~
chan_quectel.h:38:25: warning: 'format' defined but not used [-Wunused-variable]
38 | static snd_pcm_format_t format = SND_PCM_FORMAT_S16_LE;
| ^~~~~~
gcc -g -O2 -O6 -Wno-old-style-declaration -I. -std=gnu99 -DAST_MODULE_SELF_SYM=__internal_chan_quectel_self -D_GNU_SOURCE -I/Instaladores/asterisk/asterisk-22.2.0/include -I/usr/include -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_queue.o -MF .at_queue.o.d -MP -o at_queue.o -c at_queue.c
In file included from at_queue.c:17:
chan_quectel.h:46:12: warning: 'writedev' defined but not used [-Wunused-variable]
46 | static int writedev = -1;
| ^~~~~~~~
chan_quectel.h:43:12: warning: 'silencethreshold' defined but not used [-Wunused-variable]
43 | static int silencethreshold = 1000;
| ^~~~~~~~~~~~~~~~
chan_quectel.h:42:12: warning: 'silencesuppression' defined but not used [-Wunused-variable]
42 | static int silencesuppression = 0;
| ^~~~~~~~~~~~~~~~~~
chan_quectel.h:38:25: warning: 'format' defined but not used [-Wunused-variable]
38 | static snd_pcm_format_t format = SND_PCM_FORMAT_S16_LE;
| ^~~~~~
gcc -g -O2 -O6 -Wno-old-style-declaration -I. -std=gnu99 -DAST_MODULE_SELF_SYM=__internal_chan_quectel_self -D_GNU_SOURCE -I/Instaladores/asterisk/asterisk-22.2.0/include -I/usr/include -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_read.o -MF .at_read.o.d -MP -o at_read.o -c at_read.c
at_read.c:105:109: warning: argument 4 of type 'struct iovec[2]' with mismatched bound [-Warray-parameter=]
105 | EXPORT_DEF int at_read_result_iov (const char * dev, int * read_result, struct ringbuffer rb, struct iovec iov[2])
| ~~~~~~~~~~~~~^~~~~~
In file included from at_read.c:25:
at_read.h:16:112: note: previously declared as 'struct iovec '
16 | EXPORT_DECL int at_read_result_iov (const char * dev, int * read_result, struct ringbuffer rb, struct iovec * iov);
| ~~~~~~~~~~~~~~~^~~
In file included from at_read.c:24:
chan_quectel.h:46:12: warning: 'writedev' defined but not used [-Wunused-variable]
46 | static int writedev = -1;
| ^~~~~~~~
chan_quectel.h:43:12: warning: 'silencethreshold' defined but not used [-Wunused-variable]
43 | static int silencethreshold = 1000;
| ^~~~~~~~~~~~~~~~
chan_quectel.h:42:12: warning: 'silencesuppression' defined but not used [-Wunused-variable]
42 | static int silencesuppression = 0;
| ^~~~~~~~~~~~~~~~~~
chan_quectel.h:38:25: warning: 'format' defined but not used [-Wunused-variable]
38 | static snd_pcm_format_t format = SND_PCM_FORMAT_S16_LE;
| ^~~~~~
gcc -g -O2 -O6 -Wno-old-style-declaration -I. -std=gnu99 -DAST_MODULE_SELF_SYM=__internal_chan_quectel_self -D_GNU_SOURCE -I/Instaladores/asterisk/asterisk-22.2.0/include -I/usr/include -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_response.o -MF .at_response.o.d -MP -o at_response.o -c at_response.c
at_response.c: In function 'at_response_rcend':
at_response.c:92:61: warning: unused parameter 'str' [-Wunused-parameter]
92 | static int at_response_rcend (struct pvt * pvt, const char str)
| ~~~~~~~~~~~~^~~
at_response.c: In function 'at_response_cmgr':
at_response.c:1525:45: warning: passing argument 1 of 'at_parse_cmgr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
1525 | res = at_parse_cmgr(str, len, &tpdu_type, sca, sizeof(sca), oa, sizeof(oa), scts, &mr, &st, dt, msg, &msg_len, &udh);
| ^~~
In file included from at_response.c:24:
at_parse.h:20:37: note: expected 'char *' but argument is of type 'const char *'
20 | EXPORT_DECL int at_parse_cmgr(char *str, size_t len, int *tpdu_type, char *sca, size_t sca_len, char *oa, size_t oa_len, char *scts, int *mr, int *st, char *dt, char *msg, size_t *msg_len, pdu_udh_t *udh);
| ~~~~~~^~~
at_response.c: In function 'at_response_cusd':
at_response.c:1707:48: warning: pointer targets in passing argument 2 of 'unhex' differ in signedness [-Wpointer-sign]
1707 | int cusd_nibbles = unhex(cusd, cusd);
| ^~~~
| |
| char *
In file included from at_parse.h:11:
char_conv.h:13:48: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *'
13 | EXPORT_DECL int unhex(const char *in, uint8_t *out);
| ~~~~~~~~~^~~
at_response.c:1715:25: warning: comparison of integer expressions of different signedness: 'ssize_t' {aka 'long int'} and 'long unsigned int' [-Wsign-compare]
1715 | if (res > sizeof(cusd_utf8_str) - 1) {
| ^
at_response.c:1721:48: warning: pointer targets in passing argument 2 of 'unhex' differ in signedness [-Wpointer-sign]
1721 | int cusd_nibbles = unhex(cusd, cusd);
| ^~~~
| |
| char *
char_conv.h:13:48: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *'
13 | EXPORT_DECL int unhex(const char *in, uint8_t *out);
| ~~~~~~~~~^~~
at_response.c:1722:36: error: passing argument 1 of 'ucs2_to_utf8' from incompatible pointer type [-Wincompatible-pointer-types]
1722 | res = ucs2_to_utf8(cusd, (cusd_nibbles + 1) / 4, cusd_utf8_str, sizeof(cusd_utf8_str) - 1);
| ^~~~
| |
| char *
char_conv.h:12:50: note: expected 'const uint16_t *' {aka 'const short unsigned int *'} but argument is of type 'char *'
12 | EXPORT_DECL ssize_t ucs2_to_utf8(const uint16_t *in, size_t in_length, char out, size_t out_size);
| ~~~~~~~~~~~~~~~~^~
at_response.c: At top level:
at_response.c:2023:54: warning: argument 2 of type 'const struct iovec[2]' with mismatched bound [-Warray-parameter=]
2023 | int at_response (struct pvt pvt, const struct iovec iov[2], int iovcnt, at_res_t at_res)
| ~~~~~~~~~~~~~~~~~~~^~~~~~
In file included from at_response.c:20:
at_response.h:104:68: note: previously declared as 'const struct iovec '
104 | EXPORT_DECL int at_response (struct pvt pvt, const struct iovec * iov, int iovcnt, at_res_t at_res);
| ~~~~~~~~~~~~~~~~~~~~~^~~
at_response.c: In function 'at_response':
at_response.c:2055:17: warning: enumeration value 'COMPATIBILITY_RES_START_AT_MINUSONE' not handled in switch [-Wswitch]
2055 | switch (at_res)
| ^~~~~~
In file included from at_response.c:23:
chan_quectel.h: At top level:
chan_quectel.h:46:12: warning: 'writedev' defined but not used [-Wunused-variable]
46 | static int writedev = -1;
| ^~~~~~~~
chan_quectel.h:43:12: warning: 'silencethreshold' defined but not used [-Wunused-variable]
43 | static int silencethreshold = 1000;
| ^~~~~~~~~~~~~~~~
chan_quectel.h:42:12: warning: 'silencesuppression' defined but not used [-Wunused-variable]
42 | static int silencesuppression = 0;
| ^~~~~~~~~~~~~~~~~~
chan_quectel.h:38:25: warning: 'format' defined but not used [-Wunused-variable]
38 | static snd_pcm_format_t format = SND_PCM_FORMAT_S16_LE;
| ^~~~~~
make: *** [Makefile:76: at_response.o] Error 1
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Configure is OK, but build appears several errors:
./configure --with-astversion=22.2.0 -with-asterisk=/Instaladores/asterisk/asterisk-22.2.0/include
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether sleep supports fractional seconds... yes
checking filesystem timestamp resolution... 0.01
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking xargs -n works... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for strip... strip
checking for rm... rm
checking for library containing iconv... none required
checking for sqlite3_open in -lsqlite3... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/time.h... yes
checking for termios.h... yes
checking whether asterisk.h in /Instaladores/asterisk/asterisk-22.2.0/include... yes
checking for asterisk.h... no
checking whether iconv.h in ../include... no
checking whether iconv.h in /usr/include... yes
checking for iconv.h... yes
checking for sqlite3.h... yes
checking for iconv use const inbuf... checking for egrep -e... /usr/bin/grep -E
no
checking for iconv_t in iconv.h... yes
checking for AST_CONTROL_SRCCHANGE in asterisk/frame.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking for ssize_t... yes
checking for uint64_t... yes
checking whether CC supports -fvisibility=hidden... yes
checking whether CC supports -fPIC... yes
checking whether CC supports -Wall... yes
checking whether CC supports -Wextra... yes
checking whether CC supports -MD -MT conftest.o -MF /dev/null -MP... yes
checking whether DESTDIR is /usr/lib/asterisk/modules... yes
checking for working memcmp... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for memmem... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strncasecmp... yes
checking for strtol... yes
checking for realpath... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating stamp-h
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
make
Makefile:76: warning: ignoring prerequisites on suffix rule definition
gcc -g -O2 -O6 -Wno-old-style-declaration -I. -std=gnu99 -DAST_MODULE_SELF_SYM=__internal_chan_quectel_self -D_GNU_SOURCE -I/Instaladores/asterisk/asterisk-22.2.0/include -I/usr/include -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT app.o -MF .app.o.d -MP -o app.o -c app.c
In file included from app.c:23:
chan_quectel.h:46:12: warning: 'writedev' defined but not used [-Wunused-variable]
46 | static int writedev = -1;
| ^~~~~~~~
chan_quectel.h:43:12: warning: 'silencethreshold' defined but not used [-Wunused-variable]
43 | static int silencethreshold = 1000;
| ^~~~~~~~~~~~~~~~
chan_quectel.h:42:12: warning: 'silencesuppression' defined but not used [-Wunused-variable]
42 | static int silencesuppression = 0;
| ^~~~~~~~~~~~~~~~~~
chan_quectel.h:38:25: warning: 'format' defined but not used [-Wunused-variable]
38 | static snd_pcm_format_t format = SND_PCM_FORMAT_S16_LE;
| ^~~~~~
gcc -g -O2 -O6 -Wno-old-style-declaration -I. -std=gnu99 -DAST_MODULE_SELF_SYM=__internal_chan_quectel_self -D_GNU_SOURCE -I/Instaladores/asterisk/asterisk-22.2.0/include -I/usr/include -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_command.o -MF .at_command.o.d -MP -o at_command.o -c at_command.c
at_command.c: In function 'at_enqueue_ussd':
at_command.c:359:38: warning: pointer targets in passing argument 3 of 'gsm7_pack' differ in signedness [-Wpointer-sign]
359 | res = gsm7_pack(code16, res, code_packed, sizeof(code_packed), 0);
| ^~~~~~~~~~~
| |
| uint8_t * {aka unsigned char *}
In file included from at_command.c:26:
char_conv.h:16:75: note: expected 'char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'}
16 | EXPORT_DECL ssize_t gsm7_pack(const uint16_t *in, size_t in_length, char *out, size_t out_size, unsigned out_padding);
| ~~~~~~^~~
at_command.c: At top level:
at_command.c:36:19: warning: 'cmd_ddsetex2' defined but not used [-Wunused-const-variable=]
36 | static const char cmd_ddsetex2[] = "AT\r";
| ^~~~~~~~~~~~
In file included from at_command.c:27:
chan_quectel.h:46:12: warning: 'writedev' defined but not used [-Wunused-variable]
46 | static int writedev = -1;
| ^~~~~~~~
chan_quectel.h:43:12: warning: 'silencethreshold' defined but not used [-Wunused-variable]
43 | static int silencethreshold = 1000;
| ^~~~~~~~~~~~~~~~
chan_quectel.h:42:12: warning: 'silencesuppression' defined but not used [-Wunused-variable]
42 | static int silencesuppression = 0;
| ^~~~~~~~~~~~~~~~~~
chan_quectel.h:38:25: warning: 'format' defined but not used [-Wunused-variable]
38 | static snd_pcm_format_t format = SND_PCM_FORMAT_S16_LE;
| ^~~~~~
gcc -g -O2 -O6 -Wno-old-style-declaration -I. -std=gnu99 -DAST_MODULE_SELF_SYM=__internal_chan_quectel_self -D_GNU_SOURCE -I/Instaladores/asterisk/asterisk-22.2.0/include -I/usr/include -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_parse.o -MF .at_parse.o.d -MP -o at_parse.o -c at_parse.c
at_parse.c: In function 'at_parse_cmgr':
at_parse.c:389:38: warning: pointer targets in passing argument 2 of 'unhex' differ in signedness [-Wpointer-sign]
389 | int pdu_length = (unhex(str, str) + 1) / 2;
| ^~~
| |
| char *
In file included from at_parse.h:11,
from at_parse.c:19:
char_conv.h:13:48: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *'
13 | EXPORT_DECL int unhex(const char *in, uint8_t *out);
| ~~~~~~~~~^~~
at_parse.c:395:33: warning: pointer targets in passing argument 1 of 'pdu_parse_sca' differ in signedness [-Wpointer-sign]
395 | res = pdu_parse_sca(str + i, pdu_length - i, sca, sca_len);
| ~~~~^~~
| |
| char *
In file included from at_parse.h:12:
pdu.h:43:40: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *'
43 | EXPORT_DECL int pdu_parse_sca(uint8_t *pdu, size_t pdu_length, char *sca, size_t sca_len);
| ~~~~~~~~~^~~
at_parse.c:401:25: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
401 | if (tpdu_length > pdu_length - i) {
| ^
at_parse.c:405:35: warning: pointer targets in passing argument 1 of 'tpdu_parse_type' differ in signedness [-Wpointer-sign]
405 | res = tpdu_parse_type(str + i, pdu_length - i, tpdu_type);
| ~~~~^~~
| |
| char *
pdu.h:44:42: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *'
44 | EXPORT_DECL int tpdu_parse_type(uint8_t *pdu, size_t pdu_length, int *type);
| ~~~~~~~~~^~~
at_parse.c:413:52: warning: pointer targets in passing argument 1 of 'tpdu_parse_status_report' differ in signedness [-Wpointer-sign]
413 | res = tpdu_parse_status_report(str + i, pdu_length - i, mr, oa, oa_len, scts, dt, st);
| ~~~~^~~
| |
| char *
pdu.h:45:51: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *'
45 | EXPORT_DECL int tpdu_parse_status_report(uint8_t *pdu, size_t pdu_length, int *mr, char *ra, size_t ra_len, char *scts, char *dt, int *st);
| ~~~~~~~~~^~~
at_parse.c:420:46: warning: pointer targets in passing argument 1 of 'tpdu_parse_deliver' differ in signedness [-Wpointer-sign]
420 | res = tpdu_parse_deliver(str + i, pdu_length - i, *tpdu_type, oa, oa_len, scts, msg16_tmp, udh);
| ~~~~^~~
| |
| char *
pdu.h:46:45: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *'
46 | EXPORT_DECL int tpdu_parse_deliver(uint8_t *pdu, size_t pdu_length, int tpdu_type, char *oa, size_t oa_len, char *scts, uint16_t *msg, pdu_udh_t *udh);
| ~~~~~~~~~^~~
at_parse.c:420:97: warning: pointer targets in passing argument 7 of 'tpdu_parse_deliver' differ in signedness [-Wpointer-sign]
420 | res = tpdu_parse_deliver(str + i, pdu_length - i, *tpdu_type, oa, oa_len, scts, msg16_tmp, udh);
| ^~~~~~~~~
| |
| int16_t * {aka short int *}
pdu.h:46:131: note: expected 'uint16_t *' {aka 'short unsigned int *'} but argument is of type 'int16_t *' {aka 'short int *'}
46 | EXPORT_DECL int tpdu_parse_deliver(uint8_t *pdu, size_t pdu_length, int tpdu_type, char *oa, size_t oa_len, char *scts, uint16_t *msg, pdu_udh_t *udh);
| ~~~~~~~~~~^~~
at_parse.c:425:36: warning: pointer targets in passing argument 1 of 'ucs2_to_utf8' differ in signedness [-Wpointer-sign]
425 | res = ucs2_to_utf8(msg16_tmp, res, msg, *msg_len);
| ^~~~~~~~~
| |
| int16_t * {aka short int *}
char_conv.h:12:50: note: expected 'const uint16_t *' {aka 'const short unsigned int *'} but argument is of type 'int16_t *' {aka 'short int *'}
12 | EXPORT_DECL ssize_t ucs2_to_utf8(const uint16_t in, size_t in_length, char out, size_t out_size);
| ~~~~~~~~~~~~~~~~^~
In file included from at_parse.c:21:
chan_quectel.h: At top level:
chan_quectel.h:46:12: warning: 'writedev' defined but not used [-Wunused-variable]
46 | static int writedev = -1;
| ^~~~~~~~
chan_quectel.h:43:12: warning: 'silencethreshold' defined but not used [-Wunused-variable]
43 | static int silencethreshold = 1000;
| ^~~~~~~~~~~~~~~~
chan_quectel.h:42:12: warning: 'silencesuppression' defined but not used [-Wunused-variable]
42 | static int silencesuppression = 0;
| ^~~~~~~~~~~~~~~~~~
chan_quectel.h:38:25: warning: 'format' defined but not used [-Wunused-variable]
38 | static snd_pcm_format_t format = SND_PCM_FORMAT_S16_LE;
| ^~~~~~
gcc -g -O2 -O6 -Wno-old-style-declaration -I. -std=gnu99 -DAST_MODULE_SELF_SYM=__internal_chan_quectel_self -D_GNU_SOURCE -I/Instaladores/asterisk/asterisk-22.2.0/include -I/usr/include -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_queue.o -MF .at_queue.o.d -MP -o at_queue.o -c at_queue.c
In file included from at_queue.c:17:
chan_quectel.h:46:12: warning: 'writedev' defined but not used [-Wunused-variable]
46 | static int writedev = -1;
| ^~~~~~~~
chan_quectel.h:43:12: warning: 'silencethreshold' defined but not used [-Wunused-variable]
43 | static int silencethreshold = 1000;
| ^~~~~~~~~~~~~~~~
chan_quectel.h:42:12: warning: 'silencesuppression' defined but not used [-Wunused-variable]
42 | static int silencesuppression = 0;
| ^~~~~~~~~~~~~~~~~~
chan_quectel.h:38:25: warning: 'format' defined but not used [-Wunused-variable]
38 | static snd_pcm_format_t format = SND_PCM_FORMAT_S16_LE;
| ^~~~~~
gcc -g -O2 -O6 -Wno-old-style-declaration -I. -std=gnu99 -DAST_MODULE_SELF_SYM=__internal_chan_quectel_self -D_GNU_SOURCE -I/Instaladores/asterisk/asterisk-22.2.0/include -I/usr/include -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_read.o -MF .at_read.o.d -MP -o at_read.o -c at_read.c
at_read.c:105:109: warning: argument 4 of type 'struct iovec[2]' with mismatched bound [-Warray-parameter=]
105 | EXPORT_DEF int at_read_result_iov (const char * dev, int * read_result, struct ringbuffer rb, struct iovec iov[2])
| ~~~~~~~~~~~~~^~~~~~
In file included from at_read.c:25:
at_read.h:16:112: note: previously declared as 'struct iovec '
16 | EXPORT_DECL int at_read_result_iov (const char * dev, int * read_result, struct ringbuffer rb, struct iovec * iov);
| ~~~~~~~~~~~~~~~^~~
In file included from at_read.c:24:
chan_quectel.h:46:12: warning: 'writedev' defined but not used [-Wunused-variable]
46 | static int writedev = -1;
| ^~~~~~~~
chan_quectel.h:43:12: warning: 'silencethreshold' defined but not used [-Wunused-variable]
43 | static int silencethreshold = 1000;
| ^~~~~~~~~~~~~~~~
chan_quectel.h:42:12: warning: 'silencesuppression' defined but not used [-Wunused-variable]
42 | static int silencesuppression = 0;
| ^~~~~~~~~~~~~~~~~~
chan_quectel.h:38:25: warning: 'format' defined but not used [-Wunused-variable]
38 | static snd_pcm_format_t format = SND_PCM_FORMAT_S16_LE;
| ^~~~~~
gcc -g -O2 -O6 -Wno-old-style-declaration -I. -std=gnu99 -DAST_MODULE_SELF_SYM=__internal_chan_quectel_self -D_GNU_SOURCE -I/Instaladores/asterisk/asterisk-22.2.0/include -I/usr/include -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_response.o -MF .at_response.o.d -MP -o at_response.o -c at_response.c
at_response.c: In function 'at_response_rcend':
at_response.c:92:61: warning: unused parameter 'str' [-Wunused-parameter]
92 | static int at_response_rcend (struct pvt * pvt, const char str)
| ~~~~~~~~~~~~^~~
at_response.c: In function 'at_response_cmgr':
at_response.c:1525:45: warning: passing argument 1 of 'at_parse_cmgr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
1525 | res = at_parse_cmgr(str, len, &tpdu_type, sca, sizeof(sca), oa, sizeof(oa), scts, &mr, &st, dt, msg, &msg_len, &udh);
| ^~~
In file included from at_response.c:24:
at_parse.h:20:37: note: expected 'char *' but argument is of type 'const char *'
20 | EXPORT_DECL int at_parse_cmgr(char *str, size_t len, int *tpdu_type, char *sca, size_t sca_len, char *oa, size_t oa_len, char *scts, int *mr, int *st, char *dt, char *msg, size_t *msg_len, pdu_udh_t *udh);
| ~~~~~~^~~
at_response.c: In function 'at_response_cusd':
at_response.c:1707:48: warning: pointer targets in passing argument 2 of 'unhex' differ in signedness [-Wpointer-sign]
1707 | int cusd_nibbles = unhex(cusd, cusd);
| ^~~~
| |
| char *
In file included from at_parse.h:11:
char_conv.h:13:48: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *'
13 | EXPORT_DECL int unhex(const char *in, uint8_t *out);
| ~~~~~~~~~^~~
at_response.c:1715:25: warning: comparison of integer expressions of different signedness: 'ssize_t' {aka 'long int'} and 'long unsigned int' [-Wsign-compare]
1715 | if (res > sizeof(cusd_utf8_str) - 1) {
| ^
at_response.c:1721:48: warning: pointer targets in passing argument 2 of 'unhex' differ in signedness [-Wpointer-sign]
1721 | int cusd_nibbles = unhex(cusd, cusd);
| ^~~~
| |
| char *
char_conv.h:13:48: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'char *'
13 | EXPORT_DECL int unhex(const char *in, uint8_t *out);
| ~~~~~~~~~^~~
at_response.c:1722:36: error: passing argument 1 of 'ucs2_to_utf8' from incompatible pointer type [-Wincompatible-pointer-types]
1722 | res = ucs2_to_utf8(cusd, (cusd_nibbles + 1) / 4, cusd_utf8_str, sizeof(cusd_utf8_str) - 1);
| ^~~~
| |
| char *
char_conv.h:12:50: note: expected 'const uint16_t *' {aka 'const short unsigned int *'} but argument is of type 'char *'
12 | EXPORT_DECL ssize_t ucs2_to_utf8(const uint16_t *in, size_t in_length, char out, size_t out_size);
| ~~~~~~~~~~~~~~~~^~
at_response.c: At top level:
at_response.c:2023:54: warning: argument 2 of type 'const struct iovec[2]' with mismatched bound [-Warray-parameter=]
2023 | int at_response (struct pvt pvt, const struct iovec iov[2], int iovcnt, at_res_t at_res)
| ~~~~~~~~~~~~~~~~~~~^~~~~~
In file included from at_response.c:20:
at_response.h:104:68: note: previously declared as 'const struct iovec '
104 | EXPORT_DECL int at_response (struct pvt pvt, const struct iovec * iov, int iovcnt, at_res_t at_res);
| ~~~~~~~~~~~~~~~~~~~~~^~~
at_response.c: In function 'at_response':
at_response.c:2055:17: warning: enumeration value 'COMPATIBILITY_RES_START_AT_MINUSONE' not handled in switch [-Wswitch]
2055 | switch (at_res)
| ^~~~~~
In file included from at_response.c:23:
chan_quectel.h: At top level:
chan_quectel.h:46:12: warning: 'writedev' defined but not used [-Wunused-variable]
46 | static int writedev = -1;
| ^~~~~~~~
chan_quectel.h:43:12: warning: 'silencethreshold' defined but not used [-Wunused-variable]
43 | static int silencethreshold = 1000;
| ^~~~~~~~~~~~~~~~
chan_quectel.h:42:12: warning: 'silencesuppression' defined but not used [-Wunused-variable]
42 | static int silencesuppression = 0;
| ^~~~~~~~~~~~~~~~~~
chan_quectel.h:38:25: warning: 'format' defined but not used [-Wunused-variable]
38 | static snd_pcm_format_t format = SND_PCM_FORMAT_S16_LE;
| ^~~~~~
make: *** [Makefile:76: at_response.o] Error 1
Beta Was this translation helpful? Give feedback.
All reactions