ivanvza / arpy

Mac OSX ARP spoof (MiTM) tool that can also plug into Gource
MIT License
262 stars 53 forks source link

Does not install on Mac OS 10.12 #7

Open sean256 opened 7 years ago

sean256 commented 7 years ago
./configure && make && make install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i386-apple-darwin16.3.0
checking host system type... i386-apple-darwin16.3.0
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for a BSD-compatible install... /usr/bin/install -c
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
rm: conftest.dSYM: is a directory
checking dependency style of g++... none
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm -B output from gcc object... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
checking if gcc supports -fno-rtti -fno-exceptions... rm: conftest.dSYM: is a directory
yes
checking for gcc option to produce PIC... -fno-common
checking if gcc PIC flag -fno-common works... rm: conftest.dSYM: is a directory
yes
checking if gcc static flag -static works... rm: conftest.dSYM: is a directory
no
checking if gcc supports -c -o file.o... rm: conftest.dSYM: is a directory
yes
checking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin16.3.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
rm: conftest.dSYM: is a directory
checking for ld used by g++... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common
checking if g++ PIC flag -fno-common works... rm: conftest.dSYM: is a directory
yes
checking if g++ static flag -static works... rm: conftest.dSYM: is a directory
no
checking if g++ supports -c -o file.o... rm: conftest.dSYM: is a directory
yes
checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin16.3.0 dyld
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for Python... checking for gethostbyname... yes
checking for socket... yes
checking for putmsg in -lstr... no
checking for open_mib in -lnm... no
checking for Check... no
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking sys/bufmod.h usability... no
checking sys/bufmod.h presence... no
checking for sys/bufmod.h... no
checking sys/dlpi.h usability... no
checking sys/dlpi.h presence... no
checking for sys/dlpi.h... no
checking sys/dlpihdr.h usability... no
checking sys/dlpihdr.h presence... no
checking for sys/dlpihdr.h... no
checking sys/dlpi_ext.h usability... no
checking sys/dlpi_ext.h presence... no
checking for sys/dlpi_ext.h... no
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/mib.h usability... no
checking sys/mib.h presence... no
checking for sys/mib.h... no
checking sys/ndd_var.h usability... no
checking sys/ndd_var.h presence... no
checking for sys/ndd_var.h... no
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking sys/sysctl.h usability... yes
checking sys/sysctl.h presence... yes
checking for sys/sysctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking net/bpf.h usability... yes
checking net/bpf.h presence... yes
checking for net/bpf.h... yes
checking net/if.h usability... yes
checking net/if.h presence... yes
checking for net/if.h... yes
checking net/if_var.h usability... yes
checking net/if_var.h presence... yes
checking for net/if_var.h... yes
checking net/if_arp.h usability... yes
checking net/if_arp.h presence... yes
checking for net/if_arp.h... yes
checking net/if_dl.h usability... yes
checking net/if_dl.h presence... yes
checking for net/if_dl.h... yes
checking net/pfilt.h usability... no
checking net/pfilt.h presence... no
checking for net/pfilt.h... no
checking net/pfvar.h usability... no
checking net/pfvar.h presence... no
checking for net/pfvar.h... no
checking net/radix.h usability... no
checking net/radix.h presence... no
checking for net/radix.h... no
checking net/raw.h usability... no
checking net/raw.h presence... no
checking for net/raw.h... no
checking net/route.h usability... yes
checking net/route.h presence... yes
checking for net/route.h... yes
checking netinet/in_var.h usability... no
checking netinet/in_var.h presence... yes
configure: WARNING: netinet/in_var.h: present but cannot be compiled
configure: WARNING: netinet/in_var.h:     check for missing prerequisite headers?
configure: WARNING: netinet/in_var.h: see the Autoconf documentation
configure: WARNING: netinet/in_var.h:     section "Present But Cannot Be Compiled"
configure: WARNING: netinet/in_var.h: proceeding with the preprocessor's result
configure: WARNING: netinet/in_var.h: in the future, the compiler will take precedence
configure: WARNING:     ## ------------------------------------------ ##
configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING:     ## ------------------------------------------ ##
checking for netinet/in_var.h... yes
checking net/if_tun.h usability... no
checking net/if_tun.h presence... no
checking for net/if_tun.h... no
checking linux/if_tun.h usability... no
checking linux/if_tun.h presence... no
checking for linux/if_tun.h... no
checking netinet/ip_fw.h usability... no
checking netinet/ip_fw.h presence... no
checking for netinet/ip_fw.h... no
checking linux/ip_fw.h usability... no
checking linux/ip_fw.h presence... no
checking for linux/ip_fw.h... no
checking linux/ip_fwchains.h usability... no
checking linux/ip_fwchains.h presence... no
checking for linux/ip_fwchains.h... no
checking linux/netfilter_ipv4/ipchains_core.h usability... no
checking linux/netfilter_ipv4/ipchains_core.h presence... no
checking for linux/netfilter_ipv4/ipchains_core.h... no
checking ip_fil_compat.h usability... no
checking ip_fil_compat.h presence... no
checking for ip_fil_compat.h... no
checking netinet/ip_fil_compat.h usability... no
checking netinet/ip_fil_compat.h presence... no
checking for netinet/ip_fil_compat.h... no
checking ip_compat.h usability... no
checking ip_compat.h presence... no
checking for ip_compat.h... no
checking netinet/ip_compat.h usability... no
checking netinet/ip_compat.h presence... no
checking for netinet/ip_compat.h... no
checking ip_fil.h usability... no
checking ip_fil.h presence... no
checking for ip_fil.h... no
checking netinet/ip_fil.h usability... no
checking netinet/ip_fil.h presence... no
checking for netinet/ip_fil.h... no
checking hpsecurity.h usability... no
checking hpsecurity.h presence... no
checking for hpsecurity.h... no
checking stropts.h usability... no
checking stropts.h presence... no
checking for stropts.h... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for pid_t... yes
checking for size_t... yes
checking for sockaddr_in6 struct in <netinet/in.h>... yes
checking for sa_len in sockaddr struct... yes
checking for arp_dev in arpreq struct... no
checking for rt_msghdr struct in <net/route.h>... yes
checking whether gcc needs -traditional... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
no
checking for working memcmp... yes
checking for err... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for strsep... yes
checking for Berkeley Packet Filter... yes
checking for Linux proc filesystem... no
checking for Linux PF_PACKET sockets... no
checking for SNMP MIB2 STREAMS... no
checking for route(7) STREAMS... no
checking for arp(7) ioctls... rm: conftest.dSYM: is a directory
no
checking for raw IP sockets ip_{len,off} host byte ordering... yes
checking for cooked raw IP sockets... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating dnet-config
config.status: creating include/Makefile
config.status: creating include/dnet/Makefile
config.status: creating man/Makefile
config.status: creating src/Makefile
config.status: creating python/Makefile
config.status: creating python/setup.py
config.status: creating test/Makefile
config.status: creating test/check/Makefile
config.status: creating test/dnet/Makefile
config.status: creating include/config.h
config.status: include/config.h is unchanged
config.status: executing depfiles commands
config.status: executing default commands
Making all in include
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in dnet
make[3]: Nothing to be done for `all'.
Making all in man
make[1]: Nothing to be done for `all'.
Making all in src
make[1]: Nothing to be done for `all'.
Making all in python
make[1]: Nothing to be done for `all'.
Making all in test
Making all in check
make[2]: Nothing to be done for `all'.
Making all in dnet
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all-am'.
make[1]: Nothing to be done for `all-am'.
Making install in include
Making install in dnet
make[3]: Nothing to be done for `install-exec-am'.
/bin/sh ../../config/mkinstalldirs /usr/local/include/dnet
 /usr/bin/install -c -m 644 addr.h /usr/local/include/dnet/addr.h
 /usr/bin/install -c -m 644 arp.h /usr/local/include/dnet/arp.h
 /usr/bin/install -c -m 644 blob.h /usr/local/include/dnet/blob.h
 /usr/bin/install -c -m 644 eth.h /usr/local/include/dnet/eth.h
 /usr/bin/install -c -m 644 fw.h /usr/local/include/dnet/fw.h
 /usr/bin/install -c -m 644 icmp.h /usr/local/include/dnet/icmp.h
 /usr/bin/install -c -m 644 intf.h /usr/local/include/dnet/intf.h
 /usr/bin/install -c -m 644 ip.h /usr/local/include/dnet/ip.h
 /usr/bin/install -c -m 644 ip6.h /usr/local/include/dnet/ip6.h
 /usr/bin/install -c -m 644 os.h /usr/local/include/dnet/os.h
 /usr/bin/install -c -m 644 rand.h /usr/local/include/dnet/rand.h
 /usr/bin/install -c -m 644 route.h /usr/local/include/dnet/route.h
 /usr/bin/install -c -m 644 tcp.h /usr/local/include/dnet/tcp.h
 /usr/bin/install -c -m 644 tun.h /usr/local/include/dnet/tun.h
 /usr/bin/install -c -m 644 udp.h /usr/local/include/dnet/udp.h
make[3]: Nothing to be done for `install-exec-am'.
/bin/sh ../config/mkinstalldirs /usr/local/include
 /usr/bin/install -c -m 644 dnet.h /usr/local/include/dnet.h
Making install in man
make[2]: Nothing to be done for `install-exec-am'.
/bin/sh ../config/mkinstalldirs /usr/local/man/man3
mkdir -p -- /usr/local/man/man3
mkdir: /usr/local/man/man3: Permission denied
make[2]: *** [install-man3] Error 1
make[1]: *** [install-am] Error 2
make: *** [install-recursive] Error 1
melvinsh commented 7 years ago

Something seems to be wrong with your /usr/local permissions. Try running brew doctor and follow the instructions.

jerryyip commented 7 years ago

Can't install libdnet too

$ make
Making all in include
/Library/Developer/CommandLineTools/usr/bin/make  all-recursive
Making all in dnet
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in man
make[1]: Nothing to be done for `all'.
Making all in src
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../include  -I../include   -g -O2 -Wall -c -o addr-util.lo `test -f 'addr-util.c' || echo './'`addr-util.c
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g -O2 -Wall -c addr-util.c  -fno-common -DPIC -o .libs/addr-util.o
In file included from addr-util.c:9:
../include/config.h:286:5: warning: incompatible redeclaration of library
      function 'strlcat' [-Wincompatible-library-redeclaration]
int     strlcat(char *, const char *, int);
        ^
../include/config.h:286:5: note: 'strlcat' is a builtin with type 'unsigned long
      (char *, const char *, unsigned long)'
../include/config.h:290:5: warning: incompatible redeclaration of library
      function 'strlcpy' [-Wincompatible-library-redeclaration]
int     strlcpy(char *, const char *, int);
        ^
../include/config.h:290:5: note: 'strlcpy' is a builtin with type 'unsigned long
      (char *, const char *, unsigned long)'
In file included from addr-util.c:13:
/usr/include/string.h:162:9: error: conflicting types for 'strlcat'
size_t   strlcat(char *__dst, const char *__source, size_t __size);
         ^
../include/config.h:286:5: note: previous declaration is here
int     strlcat(char *, const char *, int);
        ^
In file included from addr-util.c:13:
/usr/include/string.h:163:9: error: conflicting types for 'strlcpy'
size_t   strlcpy(char *__dst, const char *__source, size_t __size);
         ^
../include/config.h:290:5: note: previous declaration is here
int     strlcpy(char *, const char *, int);
        ^
2 warnings and 2 errors generated.
make[1]: *** [addr-util.lo] Error 1
make: *** [all-recursive] Error 1
jerryyip commented 7 years ago

It works now.

I removed config.h in ../incude

Then

make clean & make
cd python
python setup.py install
skysider commented 7 years ago

brew install libdnet

roussieau commented 7 years ago

I have the same issue.

$ make Making all in include /Library/Developer/CommandLineTools/usr/bin/make all-recursive Making all in dnet make[3]: Nothing to be done for all'. Making all in man make[1]: Nothing to be done forall'. Making all in src make[1]: Nothing to be done for all'. Making all in python make[1]: Nothing to be done forall'. Making all in test Making all in check make[2]: Nothing to be done for all'. Making all in dnet make[2]: Nothing to be done forall'. make[2]: Nothing to be done for all-am'. make[1]: Nothing to be done forall-am'.