Coder Social home page Coder Social logo

Comments (23)

ThomasHabets avatar ThomasHabets commented on June 5, 2024 1

Ok, looks like Termux sets __ANDROID_API__ to 24, while e.g. getrandom() requires at least 28.

And while the libc in the environment has cap_init, it doesn't have the header files that go along with it.

I just pused a possible fix. @yyy33 could you try again?

from arping.

ThomasHabets avatar ThomasHabets commented on June 5, 2024

Could you attach the config.log file generated when you ran ./configure?

from arping.

yyy33 avatar yyy33 commented on June 5, 2024

Could you attach the config.log file generated when you ran ./configure?

This is the log

checking build system type... aarch64-unknown-linux-gnu
checking host system type... aarch64-unknown-linux-gnu
checking target system type... aarch64-unknown-linux-gnu
checking for a BSD-compatible install... /data/data/com.termux/files/usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /data/data/com.termux/files/usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
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... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking for sqrt in -lm... yes
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... no
checking for cap_init in -lcap... yes
checking for clock_gettime in -lrt... yes
checking for libnet_name_resolve in -lnet... no
checking for libnet_init in -lnet... yes
checking for pcap_open_live in -lpcap... yes
checking for library containing clock_gettime... none required
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 sys/time.h... yes
checking for sys/select.h... yes
checking for sys/socket.h... yes
checking for grep that handles long lines and -e... /data/data/com.termux/files/usr/bin/grep
checking for egrep... /data/data/com.termux/files/usr/bin/grep -E
checking for arpa/inet.h... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for getopt.h... yes
checking for time.h... yes
checking for grp.h... yes
checking for sys/time.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/param.h... yes
checking for sys/capability.h... no
checking for stdint.h... (cached) yes
checking for libnet.h... yes
checking for win32/libnet.h... no
checking for sys/random.h... yes
checking for net/bpf.h... no
checking for pwd.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for working volatile... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking how to run the C preprocessor... gcc -E
checking whether gcc needs -traditional... no
checking types of arguments for select... int,fd_set *,struct timeval *
checking return type of signal handlers... void
checking for gettimeofday... yes
checking for memset... yes
checking for select... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strstr... yes
checking for getifaddrs... yes
checking for cap_init... yes
checking for pcap_create... yes
checking for pcap_list_tstamp_types... yes
checking for pcap_set_immediate_mode... yes
checking for pledge... no
checking for unveil... no
checking for pcap_findalldevs... yes
checking for getrandom... yes
checking for libnet_init signature has const... yes
checking for libnet_name2addr4 signature has const... yes
checking for gcc options needed to detect all undeclared functions... -fno-builtin
checking whether CLOCK_MONOTONIC is declared... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

  arping version 2.22
  Prefix.........: /data/data/com.termux/files/home/aa
  Debug Build....: 
  C Compiler.....: gcc -g -O2  -D_DEFAULT_SOURCE=1
  Linker.........:   -lpcap -lnet -lrt -lcap -lm 


from arping.

ThomasHabets avatar ThomasHabets commented on June 5, 2024

That's not config.log, it's just the output of the command.

from arping.

yyy33 avatar yyy33 commented on June 5, 2024

That's not config.log, it's just the output of the command.

sorry,i find it

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by arping configure 2.22, which was
generated by GNU Autoconf 2.71.  Invocation command line was

  $ ./configure --prefix=/data/data/com.termux/files/home/aa

## --------- ##
## Platform. ##
## --------- ##

hostname = localhost
uname -m = aarch64
uname -r = 4.9.148
uname -s = Linux
uname -v = #1 SMP PREEMPT Sat May 30 18:07:01 CST 2020

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /data/data/com.termux/files/usr/bin/


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2467: looking for aux files: compile missing install-sh config.guess config.sub
configure:2480:  trying ./
configure:2509:   ./compile found
configure:2509:   ./missing found
configure:2491:   ./install-sh found
configure:2509:   ./config.guess found
configure:2509:   ./config.sub found
configure:2627: checking build system type
configure:2642: result: aarch64-unknown-linux-gnu
configure:2662: checking host system type
configure:2676: result: aarch64-unknown-linux-gnu
configure:2696: checking target system type
configure:2710: result: aarch64-unknown-linux-gnu
configure:2754: checking for a BSD-compatible install
configure:2827: result: /data/data/com.termux/files/usr/bin/install -c
configure:2838: checking whether build environment is sane
configure:2893: result: yes
configure:3052: checking for a race-free mkdir -p
configure:3096: result: /data/data/com.termux/files/usr/bin/mkdir -p
configure:3103: checking for gawk
configure:3124: found /data/data/com.termux/files/usr/bin/gawk
configure:3135: result: gawk
configure:3146: checking whether make sets $(MAKE)
configure:3169: result: yes
configure:3199: checking whether make supports nested variables
configure:3217: result: yes
configure:3354: checking whether to enable maintainer-specific portions of Makefiles
configure:3364: result: no
configure:3444: checking for gcc
configure:3465: found /data/data/com.termux/files/usr/bin/gcc
configure:3476: result: gcc
configure:3829: checking for C compiler version
configure:3838: gcc --version >&5
clang version 12.0.1
Target: aarch64-unknown-linux-android24
Thread model: posix
InstalledDir: /data/data/com.termux/files/usr/bin
configure:3849: $? = 0
configure:3838: gcc -v >&5
clang version 12.0.1
Target: aarch64-unknown-linux-android24
Thread model: posix
InstalledDir: /data/data/com.termux/files/usr/bin
configure:3849: $? = 0
configure:3838: gcc -V >&5
clang-12: error: argument to '-V' is missing (expected 1 value)
clang-12: error: no input files
configure:3849: $? = 1
configure:3838: gcc -qversion >&5
clang-12: error: unknown argument '-qversion'; did you mean '--version'?
clang-12: error: no input files
configure:3849: $? = 1
configure:3838: gcc -version >&5
clang-12: error: unknown argument '-version'; did you mean '--version'?
clang-12: error: no input files
configure:3849: $? = 1
configure:3869: checking whether the C compiler works
configure:3891: gcc    conftest.c  >&5
configure:3895: $? = 0
configure:3945: result: yes
configure:3948: checking for C compiler default output file name
configure:3950: result: a.out
configure:3956: checking for suffix of executables
configure:3963: gcc -o conftest    conftest.c  >&5
configure:3967: $? = 0
configure:3990: result: 
configure:4012: checking whether we are cross compiling
configure:4020: gcc -o conftest    conftest.c  >&5
configure:4024: $? = 0
configure:4031: ./conftest
configure:4035: $? = 0
configure:4050: result: no
configure:4055: checking for suffix of object files
configure:4078: gcc -c   conftest.c >&5
configure:4082: $? = 0
configure:4104: result: o
configure:4108: checking whether the compiler supports GNU C
configure:4128: gcc -c   conftest.c >&5
configure:4128: $? = 0
configure:4138: result: yes
configure:4149: checking whether gcc accepts -g
configure:4170: gcc -c -g  conftest.c >&5
configure:4170: $? = 0
configure:4214: result: yes
configure:4234: checking for gcc option to enable C11 features
configure:4249: gcc  -c -g -O2  conftest.c >&5
configure:4249: $? = 0
configure:4267: result: none needed
configure:4383: checking whether gcc understands -c and -o together
configure:4406: gcc -c conftest.c -o conftest2.o
configure:4409: $? = 0
configure:4406: gcc -c conftest.c -o conftest2.o
configure:4409: $? = 0
configure:4421: result: yes
configure:4441: checking whether make supports the include directive
configure:4456: make -f confmf.GNU && cat confinc.out
this is the am__doit target
configure:4459: $? = 0
configure:4478: result: yes (GNU style)
configure:4504: checking dependency style of gcc
configure:4616: result: gcc3
configure:4632: checking whether make sets $(MAKE)
configure:4655: result: yes
configure:4673: checking for sqrt in -lm
configure:4696: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lm   >&5
conftest.c:15:6: warning: incompatible redeclaration of library function 'sqrt' [-Wincompatible-library-redeclaration]
char sqrt ();
     ^
conftest.c:15:6: note: 'sqrt' is a builtin with type 'double (double)'
1 warning generated.
configure:4696: $? = 0
configure:4706: result: yes
configure:4716: checking for socket in -lsocket
configure:4739: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lsocket  -lm  >&5
/data/data/com.termux/files/usr/bin/ld: cannot find -lsocket
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
configure:4739: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "arping"
| #define PACKAGE_TARNAME "arping"
| #define PACKAGE_VERSION "2.22"
| #define PACKAGE_STRING "arping 2.22"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE "arping"
| #define VERSION "2.22"
| #define HAVE_LIBM 1
| /* end confdefs.h.  */
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| char socket ();
| int
| main (void)
| {
| return socket ();
|   ;
|   return 0;
| }
configure:4749: result: no
configure:4759: checking for gethostbyname in -lnsl
configure:4782: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lnsl  -lm  >&5
/data/data/com.termux/files/usr/bin/ld: cannot find -lnsl
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
configure:4782: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "arping"
| #define PACKAGE_TARNAME "arping"
| #define PACKAGE_VERSION "2.22"
| #define PACKAGE_STRING "arping 2.22"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE "arping"
| #define VERSION "2.22"
| #define HAVE_LIBM 1
| /* end confdefs.h.  */
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| char gethostbyname ();
| int
| main (void)
| {
| return gethostbyname ();
|   ;
|   return 0;
| }
configure:4792: result: no
configure:4802: checking for cap_init in -lcap
configure:4825: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lcap  -lm  >&5
configure:4825: $? = 0
configure:4835: result: yes
configure:4845: checking for clock_gettime in -lrt
configure:4868: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lrt  -lcap -lm  >&5
configure:4868: $? = 0
configure:4878: result: yes
configure:4888: checking for libnet_name_resolve in -lnet
configure:4911: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lnet  -lrt -lcap -lm  >&5
/data/data/com.termux/files/usr/bin/ld: /data/data/com.termux/files/usr/tmp/conftest-e3d5c3.o: in function `main':
/data/data/com.termux/files/home/arping/conftest.c:22: undefined reference to `libnet_name_resolve'
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
configure:4911: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "arping"
| #define PACKAGE_TARNAME "arping"
| #define PACKAGE_VERSION "2.22"
| #define PACKAGE_STRING "arping 2.22"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE "arping"
| #define VERSION "2.22"
| #define HAVE_LIBM 1
| #define HAVE_LIBCAP 1
| #define HAVE_LIBRT 1
| /* end confdefs.h.  */
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| char libnet_name_resolve ();
| int
| main (void)
| {
| return libnet_name_resolve ();
|   ;
|   return 0;
| }
configure:4921: result: no
configure:4928: checking for libnet_init in -lnet
configure:4951: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lnet  -lrt -lcap -lm  >&5
configure:4951: $? = 0
configure:4961: result: yes
configure:4973: checking for pcap_open_live in -lpcap
configure:4996: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lpcap  -lnet -lrt -lcap -lm  >&5
configure:4996: $? = 0
configure:5006: result: yes
configure:5018: checking for library containing clock_gettime
configure:5048: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lpcap -lnet -lrt -lcap -lm  >&5
configure:5048: $? = 0
configure:5068: result: none required
configure:5085: checking for stdio.h
configure:5085: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5085: $? = 0
configure:5085: result: yes
configure:5085: checking for stdlib.h
configure:5085: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5085: $? = 0
configure:5085: result: yes
configure:5085: checking for string.h
configure:5085: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5085: $? = 0
configure:5085: result: yes
configure:5085: checking for inttypes.h
configure:5085: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5085: $? = 0
configure:5085: result: yes
configure:5085: checking for stdint.h
configure:5085: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5085: $? = 0
configure:5085: result: yes
configure:5085: checking for strings.h
configure:5085: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5085: $? = 0
configure:5085: result: yes
configure:5085: checking for sys/stat.h
configure:5085: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5085: $? = 0
configure:5085: result: yes
configure:5085: checking for sys/types.h
configure:5085: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5085: $? = 0
configure:5085: result: yes
configure:5085: checking for unistd.h
configure:5085: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5085: $? = 0
configure:5085: result: yes
configure:5085: checking for sys/time.h
configure:5085: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5085: $? = 0
configure:5085: result: yes
configure:5085: checking for sys/select.h
configure:5085: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5085: $? = 0
configure:5085: result: yes
configure:5085: checking for sys/socket.h
configure:5085: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5085: $? = 0
configure:5085: result: yes
configure:5110: checking for grep that handles long lines and -e
configure:5174: result: /data/data/com.termux/files/usr/bin/grep
configure:5179: checking for egrep
configure:5247: result: /data/data/com.termux/files/usr/bin/grep -E
configure:5253: checking for arpa/inet.h
configure:5253: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5253: $? = 0
configure:5253: result: yes
configure:5259: checking for netinet/in.h
configure:5259: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5259: $? = 0
configure:5259: result: yes
configure:5265: checking for stdlib.h
configure:5265: result: yes
configure:5271: checking for sys/socket.h
configure:5271: result: yes
configure:5277: checking for getopt.h
configure:5277: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5277: $? = 0
configure:5277: result: yes
configure:5283: checking for time.h
configure:5283: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5283: $? = 0
configure:5283: result: yes
configure:5289: checking for grp.h
configure:5289: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5289: $? = 0
configure:5289: result: yes
configure:5295: checking for sys/time.h
configure:5295: result: yes
configure:5301: checking for sys/types.h
configure:5301: result: yes
configure:5307: checking for sys/param.h
configure:5307: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5307: $? = 0
configure:5307: result: yes
configure:5313: checking for sys/capability.h
configure:5313: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
conftest.c:67:10: fatal error: 'sys/capability.h' file not found
#include <sys/capability.h>
         ^~~~~~~~~~~~~~~~~~
1 error generated.
configure:5313: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "arping"
| #define PACKAGE_TARNAME "arping"
| #define PACKAGE_VERSION "2.22"
| #define PACKAGE_STRING "arping 2.22"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE "arping"
| #define VERSION "2.22"
| #define HAVE_LIBM 1
| #define HAVE_LIBCAP 1
| #define HAVE_LIBRT 1
| #define HAVE_LIBNET 1
| #define HAVE_LIBPCAP 1
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define STDC_HEADERS 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_TIME_H 1
| #define HAVE_GRP_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_PARAM_H 1
| /* end confdefs.h.  */
| #include <stddef.h>
| #ifdef HAVE_STDIO_H
| # include <stdio.h>
| #endif
| #ifdef HAVE_STDLIB_H
| # include <stdlib.h>
| #endif
| #ifdef HAVE_STRING_H
| # include <string.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <sys/capability.h>
configure:5313: result: no
configure:5319: checking for stdint.h
configure:5319: result: yes
configure:5325: checking for libnet.h
configure:5325: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5325: $? = 0
configure:5325: result: yes
configure:5331: checking for win32/libnet.h
configure:5331: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
conftest.c:69:10: fatal error: 'win32/libnet.h' file not found
#include <win32/libnet.h>
         ^~~~~~~~~~~~~~~~
1 error generated.
configure:5331: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "arping"
| #define PACKAGE_TARNAME "arping"
| #define PACKAGE_VERSION "2.22"
| #define PACKAGE_STRING "arping 2.22"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE "arping"
| #define VERSION "2.22"
| #define HAVE_LIBM 1
| #define HAVE_LIBCAP 1
| #define HAVE_LIBRT 1
| #define HAVE_LIBNET 1
| #define HAVE_LIBPCAP 1
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define STDC_HEADERS 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_TIME_H 1
| #define HAVE_GRP_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_LIBNET_H 1
| /* end confdefs.h.  */
| #include <stddef.h>
| #ifdef HAVE_STDIO_H
| # include <stdio.h>
| #endif
| #ifdef HAVE_STDLIB_H
| # include <stdlib.h>
| #endif
| #ifdef HAVE_STRING_H
| # include <string.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <win32/libnet.h>
configure:5331: result: no
configure:5337: checking for sys/random.h
configure:5337: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5337: $? = 0
configure:5337: result: yes
configure:5343: checking for net/bpf.h
configure:5343: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
conftest.c:70:10: fatal error: 'net/bpf.h' file not found
#include <net/bpf.h>
         ^~~~~~~~~~~
1 error generated.
configure:5343: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "arping"
| #define PACKAGE_TARNAME "arping"
| #define PACKAGE_VERSION "2.22"
| #define PACKAGE_STRING "arping 2.22"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE "arping"
| #define VERSION "2.22"
| #define HAVE_LIBM 1
| #define HAVE_LIBCAP 1
| #define HAVE_LIBRT 1
| #define HAVE_LIBNET 1
| #define HAVE_LIBPCAP 1
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define STDC_HEADERS 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_TIME_H 1
| #define HAVE_GRP_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_LIBNET_H 1
| #define HAVE_SYS_RANDOM_H 1
| /* end confdefs.h.  */
| #include <stddef.h>
| #ifdef HAVE_STDIO_H
| # include <stdio.h>
| #endif
| #ifdef HAVE_STDLIB_H
| # include <stdlib.h>
| #endif
| #ifdef HAVE_STRING_H
| # include <string.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <net/bpf.h>
configure:5343: result: no
configure:5349: checking for pwd.h
configure:5349: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5349: $? = 0
configure:5349: result: yes
configure:5355: checking for unistd.h
configure:5355: result: yes
configure:5369: checking for an ANSI C-conforming const
configure:5436: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5436: $? = 0
configure:5444: result: yes
configure:5462: checking for working volatile
configure:5482: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5482: $? = 0
configure:5490: result: yes
configure:5498: checking for uint8_t
configure:5498: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5498: $? = 0
configure:5498: result: yes
configure:5510: checking for uint16_t
configure:5510: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5510: $? = 0
configure:5510: result: yes
configure:5520: checking for uint32_t
configure:5520: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5520: $? = 0
configure:5520: result: yes
configure:5532: checking for uint64_t
configure:5532: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5532: $? = 0
configure:5532: result: yes
configure:5551: checking how to run the C preprocessor
configure:5577: gcc -E  -D_DEFAULT_SOURCE=1 conftest.c
configure:5577: $? = 0
configure:5592: gcc -E  -D_DEFAULT_SOURCE=1 conftest.c
conftest.c:45:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
         ^~~~~~~~~~~~~~~~~~
1 error generated.
configure:5592: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "arping"
| #define PACKAGE_TARNAME "arping"
| #define PACKAGE_VERSION "2.22"
| #define PACKAGE_STRING "arping 2.22"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE "arping"
| #define VERSION "2.22"
| #define HAVE_LIBM 1
| #define HAVE_LIBCAP 1
| #define HAVE_LIBRT 1
| #define HAVE_LIBNET 1
| #define HAVE_LIBPCAP 1
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define STDC_HEADERS 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_TIME_H 1
| #define HAVE_GRP_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_LIBNET_H 1
| #define HAVE_SYS_RANDOM_H 1
| #define HAVE_PWD_H 1
| #define HAVE_UNISTD_H 1
| #define TIME_WITH_SYS_TIME 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5619: result: gcc -E
configure:5633: gcc -E  -D_DEFAULT_SOURCE=1 conftest.c
configure:5633: $? = 0
configure:5648: gcc -E  -D_DEFAULT_SOURCE=1 conftest.c
conftest.c:45:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
         ^~~~~~~~~~~~~~~~~~
1 error generated.
configure:5648: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "arping"
| #define PACKAGE_TARNAME "arping"
| #define PACKAGE_VERSION "2.22"
| #define PACKAGE_STRING "arping 2.22"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE "arping"
| #define VERSION "2.22"
| #define HAVE_LIBM 1
| #define HAVE_LIBCAP 1
| #define HAVE_LIBRT 1
| #define HAVE_LIBNET 1
| #define HAVE_LIBPCAP 1
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define STDC_HEADERS 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_TIME_H 1
| #define HAVE_GRP_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_LIBNET_H 1
| #define HAVE_SYS_RANDOM_H 1
| #define HAVE_PWD_H 1
| #define HAVE_UNISTD_H 1
| #define TIME_WITH_SYS_TIME 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5680: checking whether gcc needs -traditional
conftest.c:45:10: fatal error: 'sgtty.h' file not found
#include <sgtty.h>
         ^~~~~~~~~
1 error generated.
configure:5717: result: no
configure:5727: checking types of arguments for select
configure:5757: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:5757: $? = 0
configure:5767: result: int,fd_set *,struct timeval *
configure:5792: checking return type of signal handlers
configure:5811: gcc -c -g -O2  -D_DEFAULT_SOURCE=1 conftest.c >&5
conftest.c:54:8: error: indirection requires pointer operand ('void' invalid)
return *(signal (0, 0)) (0) == 1;
       ^~~~~~~~~~~~~~~~~~~~
1 error generated.
configure:5811: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "arping"
| #define PACKAGE_TARNAME "arping"
| #define PACKAGE_VERSION "2.22"
| #define PACKAGE_STRING "arping 2.22"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE "arping"
| #define VERSION "2.22"
| #define HAVE_LIBM 1
| #define HAVE_LIBCAP 1
| #define HAVE_LIBRT 1
| #define HAVE_LIBNET 1
| #define HAVE_LIBPCAP 1
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define STDC_HEADERS 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_TIME_H 1
| #define HAVE_GRP_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_LIBNET_H 1
| #define HAVE_SYS_RANDOM_H 1
| #define HAVE_PWD_H 1
| #define HAVE_UNISTD_H 1
| #define TIME_WITH_SYS_TIME 1
| #define SELECT_TYPE_ARG1 int
| #define SELECT_TYPE_ARG234 (fd_set *)
| #define SELECT_TYPE_ARG5 (struct timeval *)
| /* end confdefs.h.  */
| #include <sys/types.h>
| #include <signal.h>
| 
| int
| main (void)
| {
| return *(signal (0, 0)) (0) == 1;
|   ;
|   return 0;
| }
configure:5819: result: void
configure:5825: checking for gettimeofday
configure:5825: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lpcap -lnet -lrt -lcap -lm  >&5
configure:5825: $? = 0
configure:5825: result: yes
configure:5831: checking for memset
configure:5831: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lpcap -lnet -lrt -lcap -lm  >&5
conftest.c:66:6: warning: incompatible redeclaration of library function 'memset' [-Wincompatible-library-redeclaration]
char memset ();
     ^
conftest.c:66:6: note: 'memset' is a builtin with type 'void *(void *, int, unsigned long)'
1 warning generated.
configure:5831: $? = 0
configure:5831: result: yes
configure:5837: checking for select
configure:5837: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lpcap -lnet -lrt -lcap -lm  >&5
configure:5837: $? = 0
configure:5837: result: yes
configure:5843: checking for strchr
configure:5843: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lpcap -lnet -lrt -lcap -lm  >&5
conftest.c:68:6: warning: incompatible redeclaration of library function 'strchr' [-Wincompatible-library-redeclaration]
char strchr ();
     ^
conftest.c:68:6: note: 'strchr' is a builtin with type 'char *(const char *, int)'
1 warning generated.
configure:5843: $? = 0
configure:5843: result: yes
configure:5849: checking for strdup
configure:5849: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lpcap -lnet -lrt -lcap -lm  >&5
conftest.c:69:6: warning: incompatible redeclaration of library function 'strdup' [-Wincompatible-library-redeclaration]
char strdup ();
     ^
conftest.c:69:6: note: 'strdup' is a builtin with type 'char *(const char *)'
1 warning generated.
configure:5849: $? = 0
configure:5849: result: yes
configure:5855: checking for strerror
configure:5855: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lpcap -lnet -lrt -lcap -lm  >&5
conftest.c:70:6: warning: incompatible redeclaration of library function 'strerror' [-Wincompatible-library-redeclaration]
char strerror ();
     ^
conftest.c:70:6: note: 'strerror' is a builtin with type 'char *(int)'
1 warning generated.
configure:5855: $? = 0
configure:5855: result: yes
configure:5861: checking for strstr
configure:5861: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lpcap -lnet -lrt -lcap -lm  >&5
conftest.c:71:6: warning: incompatible redeclaration of library function 'strstr' [-Wincompatible-library-redeclaration]
char strstr ();
     ^
conftest.c:71:6: note: 'strstr' is a builtin with type 'char *(const char *, const char *)'
1 warning generated.
configure:5861: $? = 0
configure:5861: result: yes
configure:5867: checking for getifaddrs
configure:5867: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lpcap -lnet -lrt -lcap -lm  >&5
configure:5867: $? = 0
configure:5867: result: yes
configure:5873: checking for cap_init
configure:5873: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lpcap -lnet -lrt -lcap -lm  >&5
configure:5873: $? = 0
configure:5873: result: yes
configure:5879: checking for pcap_create
configure:5879: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lpcap -lnet -lrt -lcap -lm  >&5
configure:5879: $? = 0
configure:5879: result: yes
configure:5885: checking for pcap_list_tstamp_types
configure:5885: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lpcap -lnet -lrt -lcap -lm  >&5
configure:5885: $? = 0
configure:5885: result: yes
configure:5891: checking for pcap_set_immediate_mode
configure:5891: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lpcap -lnet -lrt -lcap -lm  >&5
configure:5891: $? = 0
configure:5891: result: yes
configure:5897: checking for pledge
configure:5897: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lpcap -lnet -lrt -lcap -lm  >&5
/data/data/com.termux/files/usr/bin/ld: /data/data/com.termux/files/usr/tmp/conftest-6586f9.o: in function `main':
/data/data/com.termux/files/home/arping/conftest.c:88: undefined reference to `pledge'
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
configure:5897: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "arping"
| #define PACKAGE_TARNAME "arping"
| #define PACKAGE_VERSION "2.22"
| #define PACKAGE_STRING "arping 2.22"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE "arping"
| #define VERSION "2.22"
| #define HAVE_LIBM 1
| #define HAVE_LIBCAP 1
| #define HAVE_LIBRT 1
| #define HAVE_LIBNET 1
| #define HAVE_LIBPCAP 1
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define STDC_HEADERS 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_TIME_H 1
| #define HAVE_GRP_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_LIBNET_H 1
| #define HAVE_SYS_RANDOM_H 1
| #define HAVE_PWD_H 1
| #define HAVE_UNISTD_H 1
| #define TIME_WITH_SYS_TIME 1
| #define SELECT_TYPE_ARG1 int
| #define SELECT_TYPE_ARG234 (fd_set *)
| #define SELECT_TYPE_ARG5 (struct timeval *)
| #define RETSIGTYPE void
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_MEMSET 1
| #define HAVE_SELECT 1
| #define HAVE_STRCHR 1
| #define HAVE_STRDUP 1
| #define HAVE_STRERROR 1
| #define HAVE_STRSTR 1
| #define HAVE_GETIFADDRS 1
| #define HAVE_CAP_INIT 1
| #define HAVE_PCAP_CREATE 1
| #define HAVE_PCAP_LIST_TSTAMP_TYPES 1
| #define HAVE_PCAP_SET_IMMEDIATE_MODE 1
| /* end confdefs.h.  */
| /* Define pledge to an innocuous variant, in case <limits.h> declares pledge.
|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
| #define pledge innocuous_pledge
| 
| /* System header to define __stub macros and hopefully few prototypes,
|    which can conflict with char pledge (); below.  */
| 
| #include <limits.h>
| #undef pledge
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char pledge ();
| /* The GNU C library defines this for functions which it implements
|     to always fail with ENOSYS.  Some functions are actually named
|     something starting with __ and the normal name is an alias.  */
| #if defined __stub_pledge || defined __stub___pledge
| choke me
| #endif
| 
| int
| main (void)
| {
| return pledge ();
|   ;
|   return 0;
| }
configure:5897: result: no
configure:5903: checking for unveil
configure:5903: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lpcap -lnet -lrt -lcap -lm  >&5
/data/data/com.termux/files/usr/bin/ld: /data/data/com.termux/files/usr/tmp/conftest-4cddf2.o: in function `main':
/data/data/com.termux/files/home/arping/conftest.c:88: undefined reference to `unveil'
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
configure:5903: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "arping"
| #define PACKAGE_TARNAME "arping"
| #define PACKAGE_VERSION "2.22"
| #define PACKAGE_STRING "arping 2.22"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE "arping"
| #define VERSION "2.22"
| #define HAVE_LIBM 1
| #define HAVE_LIBCAP 1
| #define HAVE_LIBRT 1
| #define HAVE_LIBNET 1
| #define HAVE_LIBPCAP 1
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define STDC_HEADERS 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_TIME_H 1
| #define HAVE_GRP_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_LIBNET_H 1
| #define HAVE_SYS_RANDOM_H 1
| #define HAVE_PWD_H 1
| #define HAVE_UNISTD_H 1
| #define TIME_WITH_SYS_TIME 1
| #define SELECT_TYPE_ARG1 int
| #define SELECT_TYPE_ARG234 (fd_set *)
| #define SELECT_TYPE_ARG5 (struct timeval *)
| #define RETSIGTYPE void
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_MEMSET 1
| #define HAVE_SELECT 1
| #define HAVE_STRCHR 1
| #define HAVE_STRDUP 1
| #define HAVE_STRERROR 1
| #define HAVE_STRSTR 1
| #define HAVE_GETIFADDRS 1
| #define HAVE_CAP_INIT 1
| #define HAVE_PCAP_CREATE 1
| #define HAVE_PCAP_LIST_TSTAMP_TYPES 1
| #define HAVE_PCAP_SET_IMMEDIATE_MODE 1
| /* end confdefs.h.  */
| /* Define unveil to an innocuous variant, in case <limits.h> declares unveil.
|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
| #define unveil innocuous_unveil
| 
| /* System header to define __stub macros and hopefully few prototypes,
|    which can conflict with char unveil (); below.  */
| 
| #include <limits.h>
| #undef unveil
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char unveil ();
| /* The GNU C library defines this for functions which it implements
|     to always fail with ENOSYS.  Some functions are actually named
|     something starting with __ and the normal name is an alias.  */
| #if defined __stub_unveil || defined __stub___unveil
| choke me
| #endif
| 
| int
| main (void)
| {
| return unveil ();
|   ;
|   return 0;
| }
configure:5903: result: no
configure:5909: checking for pcap_findalldevs
configure:5909: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lpcap -lnet -lrt -lcap -lm  >&5
configure:5909: $? = 0
configure:5909: result: yes
configure:5915: checking for getrandom
configure:5915: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lpcap -lnet -lrt -lcap -lm  >&5
configure:5915: $? = 0
configure:5915: result: yes
configure:5967: checking for libnet_init signature has const
configure:5985: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lpcap -lnet -lrt -lcap -lm  >&5
configure:5985: $? = 0
configure:5995: result: yes
configure:6003: checking for libnet_name2addr4 signature has const
configure:6021: gcc -o conftest -g -O2  -D_DEFAULT_SOURCE=1  conftest.c -lpcap -lnet -lrt -lcap -lm  >&5
configure:6021: $? = 0
configure:6031: result: yes
configure:6041: checking for gcc options needed to detect all undeclared functions
configure:6063: gcc -c -g -O2   -D_DEFAULT_SOURCE=1 conftest.c >&5
conftest.c:69:8: warning: implicitly declaring library function 'strchr' with type 'char *(const char *, int)' [-Wimplicit-function-declaration]
(void) strchr;
       ^
conftest.c:69:8: note: include the header <string.h> or explicitly provide a declaration for 'strchr'
1 warning generated.
configure:6063: $? = 0
configure:6063: gcc -c -g -O2 -fno-builtin  -D_DEFAULT_SOURCE=1 conftest.c >&5
conftest.c:69:8: error: use of undeclared identifier 'strchr'
(void) strchr;
       ^
1 error generated.
configure:6063: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "arping"
| #define PACKAGE_TARNAME "arping"
| #define PACKAGE_VERSION "2.22"
| #define PACKAGE_STRING "arping 2.22"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE "arping"
| #define VERSION "2.22"
| #define HAVE_LIBM 1
| #define HAVE_LIBCAP 1
| #define HAVE_LIBRT 1
| #define HAVE_LIBNET 1
| #define HAVE_LIBPCAP 1
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define STDC_HEADERS 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_TIME_H 1
| #define HAVE_GRP_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_LIBNET_H 1
| #define HAVE_SYS_RANDOM_H 1
| #define HAVE_PWD_H 1
| #define HAVE_UNISTD_H 1
| #define TIME_WITH_SYS_TIME 1
| #define SELECT_TYPE_ARG1 int
| #define SELECT_TYPE_ARG234 (fd_set *)
| #define SELECT_TYPE_ARG5 (struct timeval *)
| #define RETSIGTYPE void
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_MEMSET 1
| #define HAVE_SELECT 1
| #define HAVE_STRCHR 1
| #define HAVE_STRDUP 1
| #define HAVE_STRERROR 1
| #define HAVE_STRSTR 1
| #define HAVE_GETIFADDRS 1
| #define HAVE_CAP_INIT 1
| #define HAVE_PCAP_CREATE 1
| #define HAVE_PCAP_LIST_TSTAMP_TYPES 1
| #define HAVE_PCAP_SET_IMMEDIATE_MODE 1
| #define HAVE_PCAP_FINDALLDEVS 1
| #define HAVE_GETRANDOM 1
| #define HAVE_LIBNET_INIT_CONST 1
| #define HAVE_LIBNET_NAME2ADDR4_CONST 1
| /* end confdefs.h.  */
| 
| int
| main (void)
| {
| (void) strchr;
|   ;
|   return 0;
| }
configure:6090: gcc -c -g -O2 -fno-builtin  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:6090: $? = 0
configure:6107: result: -fno-builtin
configure:6121: checking whether CLOCK_MONOTONIC is declared
configure:6121: gcc -c -g -O2 -fno-builtin  -D_DEFAULT_SOURCE=1 conftest.c >&5
configure:6121: $? = 0
configure:6121: result: yes
configure:6278: checking that generated files are newer than configure
configure:6284: result: done
configure:6315: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by arping config.status 2.22, which was
generated by GNU Autoconf 2.71.  Invocation command line was

  CONFIG_FILES    = 
  CONFIG_HEADERS  = 
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status 

on localhost

config.status:913: creating Makefile
config.status:913: creating src/Makefile
config.status:913: creating doc/Makefile
config.status:913: creating config.h
config.status:1094: config.h is unchanged
config.status:1142: executing depfiles commands
config.status:1217: cd src       && sed -e '/# am--include-marker/d' Makefile         | make -f - am--depfiles
make: Nothing to be done for 'am--depfiles'.
config.status:1224: $? = 0

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build='aarch64-unknown-linux-gnu'
ac_cv_c_compiler_gnu='yes'
ac_cv_c_const='yes'
ac_cv_c_uint16_t='yes'
ac_cv_c_uint32_t='yes'
ac_cv_c_uint64_t='yes'
ac_cv_c_uint8_t='yes'
ac_cv_c_undeclared_builtin_options='-fno-builtin'
ac_cv_c_volatile='yes'
ac_cv_env_CC_set=''
ac_cv_env_CC_value=''
ac_cv_env_CFLAGS_set=''
ac_cv_env_CFLAGS_value=''
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
ac_cv_env_CPP_set=''
ac_cv_env_CPP_value=''
ac_cv_env_LDFLAGS_set=''
ac_cv_env_LDFLAGS_value=''
ac_cv_env_LIBS_set=''
ac_cv_env_LIBS_value=''
ac_cv_env_build_alias_set=''
ac_cv_env_build_alias_value=''
ac_cv_env_host_alias_set=''
ac_cv_env_host_alias_value=''
ac_cv_env_target_alias_set=''
ac_cv_env_target_alias_value=''
ac_cv_func_cap_init='yes'
ac_cv_func_getifaddrs='yes'
ac_cv_func_getrandom='yes'
ac_cv_func_gettimeofday='yes'
ac_cv_func_memset='yes'
ac_cv_func_pcap_create='yes'
ac_cv_func_pcap_findalldevs='yes'
ac_cv_func_pcap_list_tstamp_types='yes'
ac_cv_func_pcap_set_immediate_mode='yes'
ac_cv_func_pledge='no'
ac_cv_func_select='yes'
ac_cv_func_select_args='int,fd_set *,struct timeval *'
ac_cv_func_setvbuf_reversed='no'
ac_cv_func_strchr='yes'
ac_cv_func_strdup='yes'
ac_cv_func_strerror='yes'
ac_cv_func_strstr='yes'
ac_cv_func_unveil='no'
ac_cv_have_decl_CLOCK_MONOTONIC='yes'
ac_cv_have_libnet_init_const='yes'
ac_cv_have_libnet_name2addr4_const='yes'
ac_cv_header_arpa_inet_h='yes'
ac_cv_header_getopt_h='yes'
ac_cv_header_grp_h='yes'
ac_cv_header_inttypes_h='yes'
ac_cv_header_libnet_h='yes'
ac_cv_header_net_bpf_h='no'
ac_cv_header_netinet_in_h='yes'
ac_cv_header_pwd_h='yes'
ac_cv_header_stdint_h='yes'
ac_cv_header_stdio_h='yes'
ac_cv_header_stdlib_h='yes'
ac_cv_header_string_h='yes'
ac_cv_header_strings_h='yes'
ac_cv_header_sys_capability_h='no'
ac_cv_header_sys_param_h='yes'
ac_cv_header_sys_random_h='yes'
ac_cv_header_sys_select_h='yes'
ac_cv_header_sys_socket_h='yes'
ac_cv_header_sys_stat_h='yes'
ac_cv_header_sys_time_h='yes'
ac_cv_header_sys_types_h='yes'
ac_cv_header_time_h='yes'
ac_cv_header_unistd_h='yes'
ac_cv_header_win32_libnet_h='no'
ac_cv_host='aarch64-unknown-linux-gnu'
ac_cv_lib_cap_cap_init='yes'
ac_cv_lib_m_sqrt='yes'
ac_cv_lib_net_libnet_init='yes'
ac_cv_lib_net_libnet_name_resolve='no'
ac_cv_lib_nsl_gethostbyname='no'
ac_cv_lib_pcap_pcap_open_live='yes'
ac_cv_lib_rt_clock_gettime='yes'
ac_cv_lib_socket_socket='no'
ac_cv_objext='o'
ac_cv_path_EGREP='/data/data/com.termux/files/usr/bin/grep -E'
ac_cv_path_GREP='/data/data/com.termux/files/usr/bin/grep'
ac_cv_path_install='/data/data/com.termux/files/usr/bin/install -c'
ac_cv_path_mkdir='/data/data/com.termux/files/usr/bin/mkdir'
ac_cv_prog_AWK='gawk'
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC='gcc'
ac_cv_prog_cc_c11=''
ac_cv_prog_cc_g='yes'
ac_cv_prog_cc_stdc=''
ac_cv_prog_gcc_traditional='no'
ac_cv_prog_make_make_set='yes'
ac_cv_search_clock_gettime='none required'
ac_cv_target='aarch64-unknown-linux-gnu'
ac_cv_type_signal='void'
am_cv_CC_dependencies_compiler_type='gcc3'
am_cv_make_support_nested_variables='yes'
am_cv_prog_cc_c_o='yes'

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} '\''/data/data/com.termux/files/home/arping/missing'\'' aclocal-1.16'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AUTOCONF='${SHELL} '\''/data/data/com.termux/files/home/arping/missing'\'' autoconf'
AUTOHEADER='${SHELL} '\''/data/data/com.termux/files/home/arping/missing'\'' autoheader'
AUTOMAKE='${SHELL} '\''/data/data/com.termux/files/home/arping/missing'\'' automake-1.16'
AWK='gawk'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CPP='gcc -E'
CPPFLAGS=' -D_DEFAULT_SOURCE=1'
CSCOPE='cscope'
CTAGS='ctags'
CYGPATH_W='echo'
DEFS='-DHAVE_CONFIG_H'
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/data/data/com.termux/files/usr/bin/grep -E'
ETAGS='etags'
EXEEXT=''
GREP='/data/data/com.termux/files/usr/bin/grep'
HAVE_CLOCK_MONOTONIC_FALSE='#'
HAVE_CLOCK_MONOTONIC_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=' ${LIBOBJDIR}findif_getifaddrs$U.o'
LIBS='-lpcap -lnet -lrt -lcap -lm '
LTLIBOBJS=' ${LIBOBJDIR}findif_getifaddrs$U.lo'
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} '\''/data/data/com.termux/files/home/arping/missing'\'' makeinfo'
MKDIR_P='/data/data/com.termux/files/usr/bin/mkdir -p'
OBJEXT='o'
PACKAGE='arping'
PACKAGE_BUGREPORT='[email protected]'
PACKAGE_NAME='arping'
PACKAGE_STRING='arping 2.22'
PACKAGE_TARNAME='arping'
PACKAGE_URL=''
PACKAGE_VERSION='2.22'
PATH_SEPARATOR=':'
SET_MAKE=''
SHELL='/data/data/com.termux/files/usr/bin/sh'
STRIP=''
VERSION='2.22'
ac_ct_CC='gcc'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE='#'
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='aarch64-unknown-linux-gnu'
build_alias=''
build_cpu='aarch64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host='aarch64-unknown-linux-gnu'
host_alias=''
host_cpu='aarch64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /data/data/com.termux/files/home/arping/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/data/data/com.termux/files/home/aa'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='aarch64-unknown-linux-gnu'
target_alias=''
target_cpu='aarch64'
target_os='linux-gnu'
target_vendor='unknown'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "arping"
#define PACKAGE_TARNAME "arping"
#define PACKAGE_VERSION "2.22"
#define PACKAGE_STRING "arping 2.22"
#define PACKAGE_BUGREPORT "[email protected]"
#define PACKAGE_URL ""
#define PACKAGE "arping"
#define VERSION "2.22"
#define HAVE_LIBM 1
#define HAVE_LIBCAP 1
#define HAVE_LIBRT 1
#define HAVE_LIBNET 1
#define HAVE_LIBPCAP 1
#define HAVE_STDIO_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_STRINGS_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_UNISTD_H 1
#define HAVE_SYS_TIME_H 1
#define HAVE_SYS_SELECT_H 1
#define HAVE_SYS_SOCKET_H 1
#define STDC_HEADERS 1
#define HAVE_ARPA_INET_H 1
#define HAVE_NETINET_IN_H 1
#define HAVE_STDLIB_H 1
#define HAVE_SYS_SOCKET_H 1
#define HAVE_GETOPT_H 1
#define HAVE_TIME_H 1
#define HAVE_GRP_H 1
#define HAVE_SYS_TIME_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_PARAM_H 1
#define HAVE_STDINT_H 1
#define HAVE_LIBNET_H 1
#define HAVE_SYS_RANDOM_H 1
#define HAVE_PWD_H 1
#define HAVE_UNISTD_H 1
#define TIME_WITH_SYS_TIME 1
#define SELECT_TYPE_ARG1 int
#define SELECT_TYPE_ARG234 (fd_set *)
#define SELECT_TYPE_ARG5 (struct timeval *)
#define RETSIGTYPE void
#define HAVE_GETTIMEOFDAY 1
#define HAVE_MEMSET 1
#define HAVE_SELECT 1
#define HAVE_STRCHR 1
#define HAVE_STRDUP 1
#define HAVE_STRERROR 1
#define HAVE_STRSTR 1
#define HAVE_GETIFADDRS 1
#define HAVE_CAP_INIT 1
#define HAVE_PCAP_CREATE 1
#define HAVE_PCAP_LIST_TSTAMP_TYPES 1
#define HAVE_PCAP_SET_IMMEDIATE_MODE 1
#define HAVE_PCAP_FINDALLDEVS 1
#define HAVE_GETRANDOM 1
#define HAVE_LIBNET_INIT_CONST 1
#define HAVE_LIBNET_NAME2ADDR4_CONST 1
#define HAVE_CLOCK_MONOTONIC 1

configure: exit 0

from arping.

ThomasHabets avatar ThomasHabets commented on June 5, 2024

Strange. I just installed termux to try this out. How do you get git and stuff on there? Do you need to root the phone?

from arping.

yyy33 avatar yyy33 commented on June 5, 2024

Strange. I just installed termux to try this out. How do you get git and stuff on there? Do you need to root the phone?

Yes it needed the root and then I installed the related package

pkg install git libnet libpcap automake autoconf 

from arping.

yyy33 avatar yyy33 commented on June 5, 2024

Strange. I just installed termux to try this out. How do you get git and stuff on there? Do you need to root the phone?

I was wrong without needing a root to install the package

from arping.

ThomasHabets avatar ThomasHabets commented on June 5, 2024

I tried that, but I'm getting errors from the package mirror.
Screenshot_20211130-105653

from arping.

ThomasHabets avatar ThomasHabets commented on June 5, 2024

I've filed termux/termux-packages#8094 in case what's preventing me troubleshooting is on Termux's end.

from arping.

yyy33 avatar yyy33 commented on June 5, 2024

I tried that, but I'm getting errors from the package mirror. Screenshot_20211130-105653

I think it might be the web reason that termux-change-repo. This command can choose the mirror source can you try choosing the mirror of your country

from arping.

yyy33 avatar yyy33 commented on June 5, 2024

I tried that, but I'm getting errors from the package mirror. Screenshot_20211130-105653

Screenshot_20211130_191343_com termux

from arping.

ThomasHabets avatar ThomasHabets commented on June 5, 2024

Looks like the Termux on the app store is an old version. Installing clang gives me a broken one (it won't even start when I run clang manually.

$ cc
CANNOT LINK EXECUTABLE "cc": cannot locate symbol "__emutls_get_address" referenced by "/data/data/com.termux/files/usr/lib/libclang-cpp.so"

I'm not going to sideload a newer version. Do you know anything else I could do to get a working compiler?

from arping.

Grimler91 avatar Grimler91 commented on June 5, 2024

@ThomasHabets upgrading all packages (apt upgrade) will solve this, clang is linked against a newer libc++ version than the libc++ package that is installed.

After upgrading we seem to have some issues with autoreconf currently though: termux/termux-packages#8095

from arping.

ThomasHabets avatar ThomasHabets commented on June 5, 2024

@Grimler91 thanks! Looks like I have a working env now.

from arping.

yyy33 avatar yyy33 commented on June 5, 2024

Ok, looks like Termux sets __ANDROID_API__ to 24, while e.g. getrandom() requires at least 28.

And while the libc in the environment has cap_init, it doesn't have the header files that go along with it.

I just pused a possible fix. @yyy33 could you try again?

I ve compiled successfully now and thank you very much

from arping.

yyy33 avatar yyy33 commented on June 5, 2024

Ok, looks like Termux sets __ANDROID_API__ to 24, while e.g. getrandom() requires at least 28.

And while the libc in the environment has cap_init, it doesn't have the header files that go along with it.

I just pused a possible fix. @yyy33 could you try again?

It seems that successful compilation is not available
Screenshot_20211201_181344_com termux

from arping.

Grimler91 avatar Grimler91 commented on June 5, 2024

With a debug build of arping and libnet gdb shows:

# gdb -ex r --args ./src/arping 10.10.10.1
GNU gdb (GDB) 10.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "aarch64-linux-android".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./src/arping...
Starting program: /data/data/com.termux/files/home/arping/build/src/arping 10.10.10.1

Program received signal SIGSEGV, Segmentation fault.
0x0000007fb696f1c4 in libnet_ifaddrlist (ipaddrp=0x7ffffff370, dev=0x0, errbuf=0x7e76959cdc "") at /home/grimler/.termux-build/libnet/src/src/libnet_if_addr.c:114
114	/home/grimler/.termux-build/libnet/src/src/libnet_if_addr.c: (undocumented errno 2).
(gdb) bt
#0  0x0000007fb696f1c4 in libnet_ifaddrlist (ipaddrp=0x7ffffff370, dev=0x0, errbuf=0x7e76959cdc "") at /home/grimler/.termux-build/libnet/src/src/libnet_if_addr.c:114
#1  0x0000007fb696f364 in libnet_select_device (l=0x7e76959c50) at /home/grimler/.termux-build/libnet/src/src/libnet_if_addr.c:429
#2  0x0000007fb696f7f4 in libnet_init (injection_type=0, device=0x0, err_buf=0x7ffffff4a4 "") at /home/grimler/.termux-build/libnet/src/src/libnet_init.c:75
#3  0x000000555555a9e0 in do_libnet_init (inifname=0x0, recursive=0) at ../../src/arping.c:687
#4  0x000000555555c4a0 in arping_main (argc=2, argv=0x7ffffffb48) at ../../src/arping.c:2065
#5  0x000000555555ea20 in main (argc=2, argv=0x7ffffffb48) at ../../src/arping_main.c:31

from arping.

ThomasHabets avatar ThomasHabets commented on June 5, 2024

What if you explicitly specify the interface name with -i ?

from arping.

ThomasHabets avatar ThomasHabets commented on June 5, 2024

But this looks like libnet is not working great in this environment. If -i wlan0 (or whatever) doesn't fix it, then not much more I can do. Especially since I noticed today that opening Termux gives me a message saying they plan to delete Termux from not only the Play store but also everyone's phone, in favour of the F-Droid app store. So that leaves me not being able to replicate this anymore.

from arping.

Grimler91 avatar Grimler91 commented on June 5, 2024

What if you explicitly specify the interface name with -i ?

Works better, just trying with wlan0 then gives me

# ./src/arping -i wlan0 10.10.10.1
arping: libnet_get_hwaddr(): socket: Permission denied

even though I am running as root. Maybe it would work with an eth0 interface through an usb->eth adapter.

they plan to delete Termux from not only the Play store but also everyone's phone

We want to encourage everyone to use latest version rather than an outdated version (that potentially has security issues), but for now any messages about forcible uninstallation are just empty threats

in favour of the F-Droid app store. So that leaves me not being able to replicate this anymore.

You can download the fdroid apk straight from their website: https://f-droid.org/repo/com.termux_117.apk, but I understand if you do not want to spend time on a weird platform like android :)

from arping.

ThomasHabets avatar ThomasHabets commented on June 5, 2024

It's more that I have a company phone with policies frowning upon anything but the Play store. Not technically forbidding it though. But to properly test I'd also need a rooted phone, and rooting it is a no-no.

Try adding -s 00:11:22:33:44:55 too. I don't know why getting the MAC address would fail, but apparently it does.

It should work with wlan0 just as well as eth0. The whole mobile ecosystem is foreign to me, but it's possible that even when rooted it doesn't allow the required raw sockets.

from arping.

Hexsir3 avatar Hexsir3 commented on June 5, 2024

U need to change repository of the termux app..
By this command below:
$termux-change-repo

😋😋

from arping.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.