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

osx build error #16

Open
v3u3i87 opened this issue Dec 16, 2020 · 1 comment
Open

osx build error #16

v3u3i87 opened this issue Dec 16, 2020 · 1 comment

Comments

@v3u3i87
Copy link

v3u3i87 commented Dec 16, 2020

error info

depbase=`echo lwip-udhcpd/dhcpd.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
	gcc -DPACKAGE_NAME=\"tunsocks\" -DPACKAGE_TARNAME=\"tunsocks\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"tunsocks\ 1.0\" -DPACKAGE_BUGREPORT=\"russ.dill@gmail.com\" -DPACKAGE_URL=\"https://github.com/russdill/tunsocks\" -DPACKAGE=\"tunsocks\" -DVERSION=\"1.0\" -DHAVE_PCAP=1 -I.    -I./lwip/src/include -I./lwip/src/include/ipv4 -I./lwip/src/include/ipv6 -I./lwip-libevent/include -I./lwip-udhcpd -I./lwip-nat/include -I./include -Wall -Og -g -DUSE_PCAP -g -O2 -MT lwip-udhcpd/dhcpd.o -MD -MP -MF $depbase.Tpo -c -o lwip-udhcpd/dhcpd.o lwip-udhcpd/dhcpd.c &&\
	mv -f $depbase.Tpo $depbase.Po
depbase=`echo lwip-udhcpd/domain_codec.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
	gcc -DPACKAGE_NAME=\"tunsocks\" -DPACKAGE_TARNAME=\"tunsocks\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"tunsocks\ 1.0\" -DPACKAGE_BUGREPORT=\"russ.dill@gmail.com\" -DPACKAGE_URL=\"https://github.com/russdill/tunsocks\" -DPACKAGE=\"tunsocks\" -DVERSION=\"1.0\" -DHAVE_PCAP=1 -I.    -I./lwip/src/include -I./lwip/src/include/ipv4 -I./lwip/src/include/ipv6 -I./lwip-libevent/include -I./lwip-udhcpd -I./lwip-nat/include -I./include -Wall -Og -g -DUSE_PCAP -g -O2 -MT lwip-udhcpd/domain_codec.o -MD -MP -MF $depbase.Tpo -c -o lwip-udhcpd/domain_codec.o lwip-udhcpd/domain_codec.c &&\
	mv -f $depbase.Tpo $depbase.Po
depbase=`echo lwip-libevent/netif/fdif.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
	gcc -DPACKAGE_NAME=\"tunsocks\" -DPACKAGE_TARNAME=\"tunsocks\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"tunsocks\ 1.0\" -DPACKAGE_BUGREPORT=\"russ.dill@gmail.com\" -DPACKAGE_URL=\"https://github.com/russdill/tunsocks\" -DPACKAGE=\"tunsocks\" -DVERSION=\"1.0\" -DHAVE_PCAP=1 -I.    -I./lwip/src/include -I./lwip/src/include/ipv4 -I./lwip/src/include/ipv6 -I./lwip-libevent/include -I./lwip-udhcpd -I./lwip-nat/include -I./include -Wall -Og -g -DUSE_PCAP -g -O2 -MT lwip-libevent/netif/fdif.o -MD -MP -MF $depbase.Tpo -c -o lwip-libevent/netif/fdif.o lwip-libevent/netif/fdif.c &&\
	mv -f $depbase.Tpo $depbase.Po
depbase=`echo lwip-libevent/netif/slirpif.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
	gcc -DPACKAGE_NAME=\"tunsocks\" -DPACKAGE_TARNAME=\"tunsocks\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"tunsocks\ 1.0\" -DPACKAGE_BUGREPORT=\"russ.dill@gmail.com\" -DPACKAGE_URL=\"https://github.com/russdill/tunsocks\" -DPACKAGE=\"tunsocks\" -DVERSION=\"1.0\" -DHAVE_PCAP=1 -I.    -I./lwip/src/include -I./lwip/src/include/ipv4 -I./lwip/src/include/ipv6 -I./lwip-libevent/include -I./lwip-udhcpd -I./lwip-nat/include -I./include -Wall -Og -g -DUSE_PCAP -g -O2 -MT lwip-libevent/netif/slirpif.o -MD -MP -MF $depbase.Tpo -c -o lwip-libevent/netif/slirpif.o lwip-libevent/netif/slirpif.c &&\
	mv -f $depbase.Tpo $depbase.Po
depbase=`echo lwip-libevent/netif/slirpif_tcp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
	gcc -DPACKAGE_NAME=\"tunsocks\" -DPACKAGE_TARNAME=\"tunsocks\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"tunsocks\ 1.0\" -DPACKAGE_BUGREPORT=\"russ.dill@gmail.com\" -DPACKAGE_URL=\"https://github.com/russdill/tunsocks\" -DPACKAGE=\"tunsocks\" -DVERSION=\"1.0\" -DHAVE_PCAP=1 -I.    -I./lwip/src/include -I./lwip/src/include/ipv4 -I./lwip/src/include/ipv6 -I./lwip-libevent/include -I./lwip-udhcpd -I./lwip-nat/include -I./include -Wall -Og -g -DUSE_PCAP -g -O2 -MT lwip-libevent/netif/slirpif_tcp.o -MD -MP -MF $depbase.Tpo -c -o lwip-libevent/netif/slirpif_tcp.o lwip-libevent/netif/slirpif_tcp.c &&\
	mv -f $depbase.Tpo $depbase.Po
depbase=`echo lwip-libevent/netif/slirpif_udp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
	gcc -DPACKAGE_NAME=\"tunsocks\" -DPACKAGE_TARNAME=\"tunsocks\" -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"tunsocks\ 1.0\" -DPACKAGE_BUGREPORT=\"russ.dill@gmail.com\" -DPACKAGE_URL=\"https://github.com/russdill/tunsocks\" -DPACKAGE=\"tunsocks\" -DVERSION=\"1.0\" -DHAVE_PCAP=1 -I.    -I./lwip/src/include -I./lwip/src/include/ipv4 -I./lwip/src/include/ipv6 -I./lwip-libevent/include -I./lwip-udhcpd -I./lwip-nat/include -I./include -Wall -Og -g -DUSE_PCAP -g -O2 -MT lwip-libevent/netif/slirpif_udp.o -MD -MP -MF $depbase.Tpo -c -o lwip-libevent/netif/slirpif_udp.o lwip-libevent/netif/slirpif_udp.c &&\
	mv -f $depbase.Tpo $depbase.Po
lwip-libevent/netif/slirpif_udp.c:130:40: error: use of undeclared identifier 'SOCK_NONBLOCK'
                fd = socket(sa.sa_family, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_UDP);
                                                     ^
1 error generated.
make: *** [lwip-libevent/netif/slirpif_udp.o] Error 1
@v3u3i87
Copy link
Author

v3u3i87 commented Dec 16, 2020

missing file netinet/ether.h error

./include/arch/cc.h:9:10: fatal error: 'endian.h' file not found

lwip-udhcpd/dhcpd.c:24:10: fatal error: 'netinet/ether.h' file not found

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