Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to make on macOS10.13 #13

Open
Zhxhh opened this issue Mar 11, 2019 · 0 comments
Open

Failed to make on macOS10.13 #13

Zhxhh opened this issue Mar 11, 2019 · 0 comments

Comments

@Zhxhh
Copy link

Zhxhh commented Mar 11, 2019

  • I have installed the requirement,cmake,libpcap,libnet.

  • I followed the INSTALL.max.txt.

When I am trying to use the make command,I got the error as follows:

[ 11%] Building C object src/CMakeFiles/netdiscover.dir/main.c.o
[ 22%] Building C object src/CMakeFiles/netdiscover.dir/ifaces.c.o
/Users/jz/Documents/ctf/tools/netdiscover/src/ifaces.c:207:20: error: use of
      undeclared identifier 'SIOCGIFHWADDR'
      if (ioctl(fd,SIOCGIFHWADDR,&ifr)==-1) {
                   ^
/Users/jz/Documents/ctf/tools/netdiscover/src/ifaces.c:215:15: error: no member
      named 'ifr_hwaddr' in 'struct ifreq'
      if (ifr.ifr_hwaddr.sa_family!=ARPHRD_ETHER) {
          ~~~ ^
/Users/jz/Documents/ctf/tools/netdiscover/src/ifaces.c:220:46: error: no member
      named 'ifr_hwaddr' in 'struct ifreq'
      unsigned char* mac=(unsigned char*)ifr.ifr_hwaddr.sa_data;
                                         ~~~ ^
3 errors generated.
make[2]: *** [src/CMakeFiles/netdiscover.dir/ifaces.c.o] Error 1
make[1]: *** [src/CMakeFiles/netdiscover.dir/all] Error 2
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant