termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
13.14k stars 3.01k forks source link

[Package]: ngrep #21106

Open mast3rz3ro opened 2 months ago

mast3rz3ro commented 2 months ago

Why is it worth to add this package?

Hi there,

ngrep provides more reliable way for parsing from tcpdump

Home page URL

https://github.com/jpr5/ngrep

Source code URL

https://github.com/jpr5/ngrep

Packaging policy acknowledgement

Additional information

I have tried compiling it but I'm getting this output.

Output:

make  -C regex-0.12 regex.o
make[1]: Entering directory '/data/data/com.termux/files/home/others/ngrep/regex-0.12'
cc    -c -o regex.o regex.c
regex.c:79:7: warning: incompatible redeclaration of library function 'malloc' [-Wincompatible-library-redeclaration]
   79 | char *malloc ();
      |       ^
regex.c:79:7: note: 'malloc' is a builtin with type 'void *(unsigned long)'
regex.c:80:7: warning: incompatible redeclaration of library function 'realloc' [-Wincompatible-library-redeclaration]
   80 | char *realloc ();
      |       ^
regex.c:80:7: note: 'realloc' is a builtin with type 'void *(void *, unsigned long)'
regex.c:818:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
  818 | re_set_syntax (syntax)
      | ^
regex.c:1140:25: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1140 |   compile_stack.stack = TALLOC (INIT_COMPILE_STACK_SIZE, compile_stack_elt_t);
      |                         ^
regex.c:235:36: note: expanded from macro 'TALLOC'
  235 | #define TALLOC(n, t) ((t *) malloc ((n) * sizeof (t)))
      |                                    ^
regex.c:1171:11: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1171 |           RETALLOC (bufp->buffer, INIT_BUF_SIZE, unsigned char);
      |           ^
regex.c:236:54: note: expanded from macro 'RETALLOC'
  236 | #define RETALLOC(addr, n, t) ((addr) = (t *) realloc (addr, (n) * sizeof (t)))
      |                                                      ^
regex.c:1175:26: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1175 |           bufp->buffer = TALLOC (INIT_BUF_SIZE, unsigned char);
      |                          ^
regex.c:235:36: note: expanded from macro 'TALLOC'
  235 | #define TALLOC(n, t) ((t *) malloc ((n) * sizeof (t)))
      |                                    ^
regex.c:1198:37: warning: passing arguments to 'at_begline_loc_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1198 |                 || at_begline_loc_p (pattern, p, syntax))
      |                                     ^
regex.c:1199:15: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1199 |               BUF_PUSH (begline);
      |               ^
regex.c:899:5: note: expanded from macro 'BUF_PUSH'
  899 |     GET_BUFFER_SPACE (1);                                               \
      |     ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:1213:37: warning: passing arguments to 'at_endline_loc_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1213 |                 || at_endline_loc_p (p, pend, syntax))
      |                                     ^
regex.c:1214:16: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1214 |                BUF_PUSH (endline);
      |                ^
regex.c:899:5: note: expanded from macro 'BUF_PUSH'
  899 |     GET_BUFFER_SPACE (1);                                               \
      |     ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:1307:17: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1307 |                 GET_BUFFER_SPACE (3);
      |                 ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:1319:21: warning: passing arguments to 'store_op1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1319 |                     STORE_JUMP (jump, b, laststart);
      |                     ^
regex.c:926:13: note: expanded from macro 'STORE_JUMP'
  926 |   store_op1 (op, loc, (to) - (loc) - 3)
      |             ^
regex.c:1324:19: warning: passing arguments to 'store_op1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1324 |                   STORE_JUMP (maybe_pop_jump, b, laststart - 3);
      |                   ^
regex.c:926:13: note: expanded from macro 'STORE_JUMP'
  926 |   store_op1 (op, loc, (to) - (loc) - 3)
      |             ^
regex.c:1332:13: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1332 |             GET_BUFFER_SPACE (3);
      |             ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:1333:13: warning: passing arguments to 'insert_op1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1333 |             INSERT_JUMP (keep_string_p ? on_failure_keep_string_jump
      |             ^
regex.c:934:14: note: expanded from macro 'INSERT_JUMP'
  934 |   insert_op1 (op, loc, (to) - (loc) - 3, b)
      |              ^
regex.c:1346:17: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1346 |                 GET_BUFFER_SPACE (3);
      |                 ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:1347:17: warning: passing arguments to 'insert_op1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1347 |                 INSERT_JUMP (dummy_failure_jump, laststart, laststart + 6);
      |                 ^
regex.c:934:14: note: expanded from macro 'INSERT_JUMP'
  934 |   insert_op1 (op, loc, (to) - (loc) - 3, b)
      |              ^
regex.c:1356:11: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1356 |           BUF_PUSH (anychar);
      |           ^
regex.c:899:5: note: expanded from macro 'BUF_PUSH'
  899 |     GET_BUFFER_SPACE (1);                                               \
      |     ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:1368:6: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1368 |             GET_BUFFER_SPACE (34);
      |             ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:1374:13: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1374 |             BUF_PUSH (*p == '^' ? charset_not : charset); 
      |             ^
regex.c:899:5: note: expanded from macro 'BUF_PUSH'
  899 |     GET_BUFFER_SPACE (1);                                               \
      |     ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:1382:13: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1382 |             BUF_PUSH ((1 << BYTEWIDTH) / BYTEWIDTH);
      |             ^
regex.c:899:5: note: expanded from macro 'BUF_PUSH'
  899 |     GET_BUFFER_SPACE (1);                                               \
      |     ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:1430:39: warning: passing arguments to 'compile_range' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1430 |                       = compile_range (&p, pend, translate, syntax, b);
      |                                       ^
regex.c:1441:41: warning: passing arguments to 'compile_range' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1441 |                     ret = compile_range (&p, pend, translate, syntax, b);
      |                                         ^
regex.c:1474:44: error: call to undeclared library function 'strcmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 1474 |                         boolean is_alnum = STREQ (str, "alnum");
      |                                            ^
regex.c:241:25: note: expanded from macro 'STREQ'
  241 | #define STREQ(s1, s2) ((strcmp (s1, s2) == 0))
      |                         ^
regex.c:1474:44: note: include the header <string.h> or explicitly provide a declaration for 'strcmp'
regex.c:241:25: note: expanded from macro 'STREQ'
  241 | #define STREQ(s1, s2) ((strcmp (s1, s2) == 0))
      |                         ^
regex.c:1594:19: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1594 |                   RETALLOC (compile_stack.stack, compile_stack.size << 1,
      |                   ^
regex.c:236:54: note: expanded from macro 'RETALLOC'
  236 | #define RETALLOC(addr, n, t) ((addr) = (t *) realloc (addr, (n) * sizeof (t)))
      |                                                      ^
regex.c:1618:19: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1618 |                   BUF_PUSH_3 (start_memory, regnum, 0);
      |                   ^
regex.c:916:5: note: expanded from macro 'BUF_PUSH_3'
  916 |     GET_BUFFER_SPACE (3);                                               \
      |     ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:1639:17: warning: add explicit braces to avoid dangling else [-Wdangling-else]
 1639 |                 else
      |                 ^
regex.c:1648:19: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1648 |                   BUF_PUSH (push_dummy_failure);
      |                   ^
regex.c:899:5: note: expanded from macro 'BUF_PUSH'
  899 |     GET_BUFFER_SPACE (1);                                               \
      |     ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:1652:19: warning: passing arguments to 'store_op1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1652 |                   STORE_JUMP (jump_past_alt, fixup_alt_jump, b - 1);
      |                   ^
regex.c:926:13: note: expanded from macro 'STORE_JUMP'
  926 |   store_op1 (op, loc, (to) - (loc) - 3)
      |             ^
regex.c:1659:17: warning: add explicit braces to avoid dangling else [-Wdangling-else]
 1659 |                 else
      |                 ^
regex.c:1692:21: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1692 |                     BUF_PUSH_3 (stop_memory, this_group_regnum,
      |                     ^
regex.c:916:5: note: expanded from macro 'BUF_PUSH_3'
  916 |     GET_BUFFER_SPACE (3);                                               \
      |     ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:1708:15: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1708 |               GET_BUFFER_SPACE (3);
      |               ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:1709:15: warning: passing arguments to 'insert_op1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1709 |               INSERT_JUMP (on_failure_jump, begalt, b + 6);
      |               ^
regex.c:934:14: note: expanded from macro 'INSERT_JUMP'
  934 |   insert_op1 (op, loc, (to) - (loc) - 3, b)
      |              ^
regex.c:1730:17: warning: passing arguments to 'store_op1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1730 |                 STORE_JUMP (jump_past_alt, fixup_alt_jump, b);
      |                 ^
regex.c:926:13: note: expanded from macro 'STORE_JUMP'
  926 |   store_op1 (op, loc, (to) - (loc) - 3)
      |             ^
regex.c:1736:15: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1736 |               GET_BUFFER_SPACE (3);
      |               ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:1823:22: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1823 |                      GET_BUFFER_SPACE (3);
      |                      ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:1824:22: warning: passing arguments to 'insert_op1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1824 |                      INSERT_JUMP (jump, laststart, b + 3);
      |                      ^
regex.c:934:14: note: expanded from macro 'INSERT_JUMP'
  934 |   insert_op1 (op, loc, (to) - (loc) - 3, b)
      |              ^
regex.c:1842:22: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1842 |                      GET_BUFFER_SPACE (nbytes);
      |                      ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:1849:22: warning: passing arguments to 'insert_op2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1849 |                      INSERT_JUMP2 (succeed_n, laststart,
      |                      ^
regex.c:938:14: note: expanded from macro 'INSERT_JUMP2'
  938 |   insert_op2 (op, loc, (to) - (loc) - 3, arg, b)
      |              ^
regex.c:1858:33: warning: passing arguments to 'insert_op2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1858 |                      insert_op2 (set_number_at, laststart, 5, lower_bound, b);
      |                                 ^
regex.c:1869:26: warning: passing arguments to 'store_op2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1869 |                          STORE_JUMP2 (jump_n, b, laststart + 5,
      |                          ^
regex.c:930:13: note: expanded from macro 'STORE_JUMP2'
  930 |   store_op2 (op, loc, (to) - (loc) - 3, arg)
      |             ^
regex.c:1887:37: warning: passing arguments to 'insert_op2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1887 |                          insert_op2 (set_number_at, laststart, b - laststart,
      |                                     ^
regex.c:1936:15: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1936 |               BUF_PUSH (wordchar);
      |               ^
regex.c:899:5: note: expanded from macro 'BUF_PUSH'
  899 |     GET_BUFFER_SPACE (1);                                               \
      |     ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:1942:15: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1942 |               BUF_PUSH (notwordchar);
      |               ^
regex.c:899:5: note: expanded from macro 'BUF_PUSH'
  899 |     GET_BUFFER_SPACE (1);                                               \
      |     ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:1947:15: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1947 |               BUF_PUSH (wordbeg);
      |               ^
regex.c:899:5: note: expanded from macro 'BUF_PUSH'
  899 |     GET_BUFFER_SPACE (1);                                               \
      |     ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:1951:15: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1951 |               BUF_PUSH (wordend);
      |               ^
regex.c:899:5: note: expanded from macro 'BUF_PUSH'
  899 |     GET_BUFFER_SPACE (1);                                               \
      |     ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:1955:15: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1955 |               BUF_PUSH (wordbound);
      |               ^
regex.c:899:5: note: expanded from macro 'BUF_PUSH'
  899 |     GET_BUFFER_SPACE (1);                                               \
      |     ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:1959:15: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1959 |               BUF_PUSH (notwordbound);
      |               ^
regex.c:899:5: note: expanded from macro 'BUF_PUSH'
  899 |     GET_BUFFER_SPACE (1);                                               \
      |     ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:1963:15: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1963 |               BUF_PUSH (begbuf);
      |               ^
regex.c:899:5: note: expanded from macro 'BUF_PUSH'
  899 |     GET_BUFFER_SPACE (1);                                               \
      |     ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:1967:15: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1967 |               BUF_PUSH (endbuf);
      |               ^
regex.c:899:5: note: expanded from macro 'BUF_PUSH'
  899 |     GET_BUFFER_SPACE (1);                                               \
      |     ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:1981:42: warning: passing arguments to 'group_in_compile_stack' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1981 |               if (group_in_compile_stack (compile_stack, c1))
      |                                          ^
regex.c:1985:15: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1985 |               BUF_PUSH_2 (duplicate, c1);
      |               ^
regex.c:907:5: note: expanded from macro 'BUF_PUSH_2'
  907 |     GET_BUFFER_SPACE (2);                                               \
      |     ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:2033:8: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 2033 |               BUF_PUSH_2 (exactn, 0);
      |               ^
regex.c:907:5: note: expanded from macro 'BUF_PUSH_2'
  907 |     GET_BUFFER_SPACE (2);                                               \
      |     ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:2037:4: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 2037 |           BUF_PUSH (c);
      |           ^
regex.c:899:5: note: expanded from macro 'BUF_PUSH'
  899 |     GET_BUFFER_SPACE (1);                                               \
      |     ^
regex.c:894:7: note: expanded from macro 'GET_BUFFER_SPACE'
  894 |       EXTEND_BUFFER ()
      |       ^
regex.c:959:46: note: expanded from macro 'EXTEND_BUFFER'
  959 |     bufp->buffer = (unsigned char *) realloc (bufp->buffer, bufp->allocated);\
      |                                              ^
regex.c:2047:5: warning: passing arguments to 'store_op1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 2047 |     STORE_JUMP (jump_past_alt, fixup_alt_jump, b);
      |     ^
regex.c:926:13: note: expanded from macro 'STORE_JUMP'
  926 |   store_op1 (op, loc, (to) - (loc) - 3)
      |             ^
regex.c:2052:3: error: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 2052 |   free (compile_stack.stack);
      |   ^
regex.c:2052:3: note: include the header <stdlib.h> or explicitly provide a declaration for 'free'
regex.c:1072:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 1072 | regex_compile (pattern, size, syntax, bufp)
      | ^
regex.c:2073:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 2073 | store_op1 (op, loc, arg)
      | ^
regex.c:852:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
  852 | static void store_op1 (), store_op2 ();
      |             ^
regex.c:2086:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 2086 | store_op2 (op, loc, arg1, arg2)
      | ^
regex.c:852:27: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
  852 | static void store_op1 (), store_op2 ();
      |                           ^
regex.c:2101:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 2101 | insert_op1 (op, loc, arg, end)
      | ^
regex.c:853:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
  853 | static void insert_op1 (), insert_op2 ();
      |             ^
regex.c:2120:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 2120 | insert_op2 (op, loc, arg1, arg2, end)
      | ^
regex.c:853:28: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
  853 | static void insert_op1 (), insert_op2 ();
      |                            ^
regex.c:2141:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 2141 | at_begline_loc_p (pattern, p, syntax)
      | ^
regex.c:854:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
  854 | static boolean at_begline_loc_p (), at_endline_loc_p ();
      |                ^
regex.c:2160:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 2160 | at_endline_loc_p (p, pend, syntax)
      | ^
regex.c:854:37: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
  854 | static boolean at_begline_loc_p (), at_endline_loc_p ();
      |                                     ^
regex.c:2182:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 2182 | group_in_compile_stack (compile_stack, regnum)
      | ^
regex.c:855:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
  855 | static boolean group_in_compile_stack ();
      |                ^
regex.c:2210:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 2210 | compile_range (p_ptr, pend, translate, syntax, b)
      | ^
regex.c:856:22: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
  856 | static reg_errcode_t compile_range ();
      |                      ^
regex.c:2545:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 2545 | re_compile_fastmap (bufp)
      | ^
regex.c:2797:11: error: call to undeclared library function 'abort' with type 'void (void) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 2797 |           abort (); /* We have listed all the cases.  */
      |           ^
regex.c:2797:11: note: include the header <stdlib.h> or explicitly provide a declaration for 'abort'
regex.c:2830:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 2830 | re_set_registers (bufp, regs, num_regs, starts, ends)
      | ^
regex.c:2847:33: warning: expression which evaluates to zero treated as a null pointer constant of type 'regoff_t *' (aka 'int *') [-Wnon-literal-null-conversion]
 2847 |       regs->start = regs->end = (regoff_t) 0;
      |                                 ^~~~~~~~~~~~
regex.c:2857:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 2857 | re_search (bufp, string, size, startpos, range, regs)
      | ^
regex.c:2890:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 2890 | re_search_2 (bufp, string1, size1, string2, size2, startpos, range, regs, stop)
      | ^
regex.c:3149:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 3149 | re_match (bufp, string, size, pos, regs)
      | ^
regex.c:3174:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 3174 | re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop)
      | ^
regex.c:3459:33: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 3459 |                   regs->start = TALLOC (regs->num_regs, regoff_t);
      |                                 ^
regex.c:235:36: note: expanded from macro 'TALLOC'
  235 | #define TALLOC(n, t) ((t *) malloc ((n) * sizeof (t)))
      |                                    ^
regex.c:3460:31: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 3460 |                   regs->end = TALLOC (regs->num_regs, regoff_t);
      |                               ^
regex.c:235:36: note: expanded from macro 'TALLOC'
  235 | #define TALLOC(n, t) ((t *) malloc ((n) * sizeof (t)))
      |                                    ^
regex.c:3472:23: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 3472 |                       RETALLOC (regs->start, regs->num_regs, regoff_t);
      |                       ^
regex.c:236:54: note: expanded from macro 'RETALLOC'
  236 | #define RETALLOC(addr, n, t) ((addr) = (t *) realloc (addr, (n) * sizeof (t)))
      |                                                      ^
regex.c:3473:23: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 3473 |                       RETALLOC (regs->end, regs->num_regs, regoff_t);
      |                       ^
regex.c:236:54: note: expanded from macro 'RETALLOC'
  236 | #define RETALLOC(addr, n, t) ((addr) = (t *) realloc (addr, (n) * sizeof (t)))
      |                                                      ^
regex.c:3630:43: warning: passing arguments to 'group_match_null_string_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 3630 |               = group_match_null_string_p (&p1, pend, reg_info);
      |                                           ^
regex.c:3848:38: warning: passing arguments to 'bcmp_translate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 3848 |                     ? bcmp_translate (d, d2, mcnt, translate) 
      |                                      ^
regex.c:3849:23: error: call to undeclared library function 'bcmp' with type 'int (const void *, const void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 3849 |                     : bcmp (d, d2, mcnt))
      |                       ^
regex.c:3849:23: note: include the header <strings.h> or explicitly provide a declaration for 'bcmp'
regex.c:4420:48: warning: passing arguments to 'alt_match_null_string_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 4420 |                   if (!alt_match_null_string_p (p1, p1 + mcnt - 3, 
      |                                                ^
regex.c:4450:44: warning: passing arguments to 'alt_match_null_string_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 4450 |               if (!alt_match_null_string_p (p1, p1 + mcnt, reg_info))
      |                                            ^
regex.c:4465:46: warning: passing arguments to 'common_op_match_null_string_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 4465 |           if (!common_op_match_null_string_p (&p1, end, reg_info))
      |                                              ^
regex.c:4370:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 4370 | group_match_null_string_p (p, end, reg_info)
      | ^
regex.c:3010:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
 3010 |                group_match_null_string_p ();
      |                ^
regex.c:4501:46: warning: passing arguments to 'common_op_match_null_string_p' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 4501 |           if (!common_op_match_null_string_p (&p1, end, reg_info))
      |                                              ^
regex.c:4479:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 4479 | alt_match_null_string_p (p, end, reg_info)
      | ^
regex.c:3008:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
 3008 | static boolean alt_match_null_string_p (),
      |                ^
regex.c:4516:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 4516 | common_op_match_null_string_p (p, end, reg_info)
      | ^
regex.c:3009:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
 3009 |                common_op_match_null_string_p (),
      |                ^
regex.c:4604:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 4604 | bcmp_translate (s1, s2, len, translate)
      | ^
regex.c:3007:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
 3007 | static int bcmp_translate ();
      |            ^
regex.c:4630:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 4630 | re_compile_pattern (pattern, length, bufp)
      | ^
regex.c:4663:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 4663 | re_comp (s)
      | ^
regex.c:4677:53: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 4677 |       re_comp_buf.buffer = (unsigned char *) malloc (200);
      |                                                     ^
regex.c:4682:45: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 4682 |       re_comp_buf.fastmap = (char *) malloc (1 << BYTEWIDTH);
      |                                             ^
regex.c:4693:27: error: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 4693 |   ret = regex_compile (s, strlen (s), re_syntax_options, &re_comp_buf);
      |                           ^
regex.c:4693:27: note: include the header <string.h> or explicitly provide a declaration for 'strlen'
regex.c:4701:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 4701 | re_exec (s)
      | ^
regex.c:4749:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 4749 | regcomp (preg, pattern, cflags)
      | ^
regex.c:4773:41: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 4773 |       preg->translate = (char *) malloc (CHAR_SET_SIZE);
      |                                         ^
regex.c:4824:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 4824 | regexec (preg, string, nmatch, pmatch, eflags)
      | ^
regex.c:4850:20: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 4850 |       regs.start = TALLOC (nmatch, regoff_t);
      |                    ^
regex.c:235:36: note: expanded from macro 'TALLOC'
  235 | #define TALLOC(n, t) ((t *) malloc ((n) * sizeof (t)))
      |                                    ^
regex.c:4851:18: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 4851 |       regs.end = TALLOC (nmatch, regoff_t);
      |                  ^
regex.c:235:36: note: expanded from macro 'TALLOC'
  235 | #define TALLOC(n, t) ((t *) malloc ((n) * sizeof (t)))
      |                                    ^
regex.c:4889:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 4889 | regerror (errcode, preg, errbuf, errbuf_size)
      | ^
regex.c:4919:11: error: call to undeclared library function 'strncpy' with type 'char *(char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 4919 |           strncpy (errbuf, msg, errbuf_size - 1);
      |           ^
regex.c:4919:11: note: include the header <string.h> or explicitly provide a declaration for 'strncpy'
regex.c:4923:9: error: call to undeclared library function 'strcpy' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 4923 |         strcpy (errbuf, msg);
      |         ^
regex.c:4923:9: note: include the header <string.h> or explicitly provide a declaration for 'strcpy'
regex.c:4933:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
 4933 | regfree (preg)
      | ^
108 warnings and 7 errors generated.
make[1]: *** [<builtin>: regex.o] Error 1
make[1]: Leaving directory '/data/data/com.termux/files/home/others/ngrep/regex-0.12'
make: *** [Makefile:62: regex-0.12/regex.o] Error 2
Biswa96 commented 2 months ago

The project is not actively maintained. It is a criteria for adding package which you ticked unknowingly.

mast3rz3ro commented 2 months ago

The project is not actively maintained.

Is this means ngrep can't be added ?

It is a criteria for adding package which you ticked unknowingly.

Yes, I clicked it since I believed that the issue won't be posted without enabling all check boxes.

kejkillviruss commented 2 months ago

kg install

TomJo2000 commented 2 months ago

kg install

I believe you meant pkg install. That's not going to work for ngrep, since we do not have an ngrep package. Which is the reason why this package request was opened.

TomJo2000 commented 2 months ago

Yes, I clicked it since I believed that the issue won't be posted without enabling all check boxes.

The checkboxes in the package request template are there to:

Some of them can be missing, and that is fine.