The build fails because <sparc64/intr.h> includes another header in /sys: sparc64/sparc64/intreg.h.
--8<-- /usr/bin/libtool --tag=3Ddisable-static --tag=3DCC --mode=3Dcompile cc -= DPACKAGE_NAME=3D\"aircrack-ng\" -DPACKAGE_TARNAME=3D\"aircrack-ng\" -DPACKA= GE_VERSION=3D\"1.5.2\" -DPACKAGE_STRING=3D\"aircrack-ng\ 1.5.2\" -DPACKAGE_= BUGREPORT=3D\"https://forum.aircrack-ng.org\" -DPACKAGE_URL=3D\"\" -DPACKAG= E=3D\"aircrack-ng\" -DVERSION=3D\"1.5.2\" -DSTDC_HEADERS=3D1 -DHAVE_SYS_TYP= ES_H=3D1 -DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STRING_H=3D1 -DHA= VE_MEMORY_H=3D1 -DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 -DHAVE_STDINT_H= =3D1 -DHAVE_UNISTD_H=3D1 -DHAVE_DLFCN_H=3D1 -DLT_OBJDIR=3D\".libs/\" -D_REV= ISION=3D\"1.5.2\" -DHAVE_OPENSSL_CRYPTO_H=3D1 -DHAVE_OPENSSL_CMAC_H=3D1 -DH= AVE_OPENSSL_CMAC_H=3D1 -DHAVE_PCAP_H=3D1 -DHAVE_PCAP=3D1 -DHAVE_PCRE=3D1 -D= HAVE_SQLITE3_H=3D1 -DHAVE_SQLITE3=3D1 -DHAVE_SQLITE=3D1 -DHAVE_ZLIB=3D1 -DH= AVE_PTHREAD_PRIO_INHERIT=3D1 -D_REENTRANT=3D1 -DHAVE_POSIX_MEMALIGN=3D1 -DC= ACHELINE_SIZE=3D64 -DCACHELINE_SIZE=3D64 -I. -I../.. -I../../src/include -= I../../src -D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE64_SOURCE -D_FORTIFY_SOURC= E=3D2 -Wall -O3 -std=3Dgnu99 -fno-strict-aliasing -Wpointer-arith -Wstrict= -overflow=3D2 -Wstrict-prototypes -fvisibility=3Dhidden -O2 -pipe -MT libai= rcrack_osdep_la-openbsd.lo -MD -MP -MF .deps/libaircrack_osdep_la-openbsd.T= po -c -o libaircrack_osdep_la-openbsd.lo `test -f 'openbsd.c' || echo './'`= openbsd.c cc -DPACKAGE_NAME=3D"aircrack-ng" -DPACKAGE_TARNAME=3D"aircrack-ng" -DPACKA= GE_VERSION=3D"1.5.2" -DPACKAGE_STRING=3D"aircrack-ng 1.5.2" -DPACKAGE_BUGRE= PORT=3D"https://forum.aircrack-ng.org" -DPACKAGE_URL=3D"" -DPACKAGE=3D"airc= rack-ng" -DVERSION=3D"1.5.2" -DSTDC_HEADERS=3D1 -DHAVE_SYS_TYPES_H=3D1 -DHA= VE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STRING_H=3D1 -DHAVE_MEMORY_H= =3D1 -DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 -DHAVE_STDINT_H=3D1 -DHAVE_= UNISTD_H=3D1 -DHAVE_DLFCN_H=3D1 -DLT_OBJDIR=3D".libs/" -D_REVISION=3D"1.5.2= " -DHAVE_OPENSSL_CRYPTO_H=3D1 -DHAVE_OPENSSL_CMAC_H=3D1 -DHAVE_OPENSSL_CMAC= _H=3D1 -DHAVE_PCAP_H=3D1 -DHAVE_PCAP=3D1 -DHAVE_PCRE=3D1 -DHAVE_SQLITE3_H= =3D1 -DHAVE_SQLITE3=3D1 -DHAVE_SQLITE=3D1 -DHAVE_ZLIB=3D1 -DHAVE_PTHREAD_PR= IO_INHERIT=3D1 -D_REENTRANT=3D1 -DHAVE_POSIX_MEMALIGN=3D1 -DCACHELINE_SIZE= =3D64 -DCACHELINE_SIZE=3D64 -I. -I../.. -I../../src/include -I../../src -D_= FILE_OFFSET_BITS=3D64 -D_LARGEFILE64_SOURCE -D_FORTIFY_SOURCE=3D2 -Wall -O3= -std=3Dgnu99 -fno-strict-aliasing -Wpointer-arith -Wstrict-overflow=3D2 -W= strict-prototypes -fvisibility=3Dhidden -O2 -pipe -MT libaircrack_osdep_la-= openbsd.lo -MD -MP -MF .deps/libaircrack_osdep_la-openbsd.Tpo -c openbsd.c = -fPIC -DPIC -o .libs/libaircrack_osdep_la-openbsd.o In file included from openbsd.c:37: /usr/include/net80211/ieee80211_crypto.h:111: warning: 'struct ifnet' decla= red inside parameter list /usr/include/net80211/ieee80211_crypto.h:111: warning: its scope is only th= is definition or declaration, which is probably not what you want /usr/include/net80211/ieee80211_crypto.h:112: warning: 'struct ifnet' decla= red inside parameter list In file included from openbsd.c:40: /usr/include/machine/intr.h:36:36: error: sparc64/sparc64/intreg.h: No such= file or directory In file included from openbsd.c:40: /usr/include/machine/intr.h:64: error: 'MAXINTNUM' undeclared here (not in = a function) In file included from openbsd.c:42: /usr/include/net80211/ieee80211_node.h: In function 'ieee80211_node_incref': /usr/include/net80211/ieee80211_node.h:398: warning: implicit declaration o= f function '_splraise' /usr/include/net80211/ieee80211_node.h:398: error: 'PIL_NET' undeclared (fi= rst use in this function) /usr/include/net80211/ieee80211_node.h:398: error: (Each undeclared identif= ier is reported only once /usr/include/net80211/ieee80211_node.h:398: error: for each function it app= ears in.) /usr/include/net80211/ieee80211_node.h:400: warning: implicit declaration o= f function '_splx' /usr/include/net80211/ieee80211_node.h: In function 'ieee80211_node_decref': /usr/include/net80211/ieee80211_node.h:409: error: 'PIL_NET' undeclared (fi= rst use in this function) /usr/include/net80211/ieee80211_node.h: At top level: /usr/include/net80211/ieee80211_node.h:461: warning: 'struct ifnet' declare= d inside parameter list /usr/include/net80211/ieee80211_node.h:462: warning: 'struct ifnet' declare= d inside parameter list /usr/include/net80211/ieee80211_node.h:463: warning: 'struct ifnet' declare= d inside parameter list /usr/include/net80211/ieee80211_node.h:465: warning: 'struct ifnet' declare= d inside parameter list /usr/include/net80211/ieee80211_node.h:466: warning: 'struct ifnet' declare= d inside parameter list /usr/include/net80211/ieee80211_node.h:467: warning: 'struct ifnet' declare= d inside parameter list /usr/include/net80211/ieee80211_node.h:468: warning: 'struct ifnet' declare= d inside parameter list In file included from openbsd.c:45: /usr/include/net80211/ieee80211_proto.h:60: warning: 'struct ifnet' declare= d inside parameter list /usr/include/net80211/ieee80211_proto.h:61: warning: 'struct ifnet' declare= d inside parameter list /usr/include/net80211/ieee80211_proto.h:70: warning: 'struct ifnet' declare= d inside parameter list /usr/include/net80211/ieee80211_proto.h:72: warning: 'struct rtentry' decla= red inside parameter list /usr/include/net80211/ieee80211_proto.h:72: warning: 'struct ifnet' declare= d inside parameter list /usr/include/net80211/ieee80211_proto.h:80: warning: 'struct ifnet' declare= d inside parameter list openbsd.c: In function 'do_obsd_open': openbsd.c:358: warning: assignment from incompatible pointer type Error while executing cc -DPACKAGE_NAME=3D"aircrack-ng" -DPACKAGE_TARNAME= =3D"aircrack-ng" -DPACKAGE_VERSION=3D"1.5.2" -DPACKAGE_STRING=3D"aircrack-n= g 1.5.2" -DPACKAGE_BUGREPORT=3D"https://forum.aircrack-ng.org" -DPACKAGE_UR= L=3D"" -DPACKAGE=3D"aircrack-ng" -DVERSION=3D"1.5.2" -DSTDC_HEADERS=3D1 -DH= AVE_SYS_TYPES_H=3D1 -DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STRING= _H=3D1 -DHAVE_MEMORY_H=3D1 -DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 -DHAV= E_STDINT_H=3D1 -DHAVE_UNISTD_H=3D1 -DHAVE_DLFCN_H=3D1 -DLT_OBJDIR=3D".libs/= " -D_REVISION=3D"1.5.2" -DHAVE_OPENSSL_CRYPTO_H=3D1 -DHAVE_OPENSSL_CMAC_H= =3D1 -DHAVE_OPENSSL_CMAC_H=3D1 -DHAVE_PCAP_H=3D1 -DHAVE_PCAP=3D1 -DHAVE_PCR= E=3D1 -DHAVE_SQLITE3_H=3D1 -DHAVE_SQLITE3=3D1 -DHAVE_SQLITE=3D1 -DHAVE_ZLIB= =3D1 -DHAVE_PTHREAD_PRIO_INHERIT=3D1 -D_REENTRANT=3D1 -DHAVE_POSIX_MEMALIGN= =3D1 -DCACHELINE_SIZE=3D64 -DCACHELINE_SIZE=3D64 -I. -I../.. -I../../src/in= clude -I../../src -D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE64_SOURCE -D_FORTIFY= _SOURCE=3D2 -Wall -O3 -std=3Dgnu99 -fno-strict-aliasing -Wpointer-arith -Ws= trict-overflow=3D2 -Wstrict-prototypes -fvisibility=3Dhidden -O2 -pipe -MT = libaircrack_osdep_la-openbsd.lo -MD -MP -MF .deps/libaircrack_osdep_la-open= bsd.Tpo -c openbsd.c -fPIC -DPIC -o .libs/libaircrack_osdep_la-openbsd.o gmake[3]: *** [Makefile:948: libaircrack_osdep_la-openbsd.lo] Error 1 gmake[3]: Leaving directory '/usr/ports/pobj/aircrack-ng-1.5.2/aircrack-ng-= 1.5.2/src/aircrack-osdep' gmake[2]: *** [Makefile:974: all-recursive] Error 1 gmake[2]: Leaving directory '/usr/ports/pobj/aircrack-ng-1.5.2/aircrack-ng-= 1.5.2/src/aircrack-osdep' gmake[1]: *** [Makefile:1975: all-recursive] Error 1 gmake[1]: Leaving directory '/usr/ports/pobj/aircrack-ng-1.5.2/aircrack-ng-= 1.5.2/src' gmake: *** [Makefile:582: all-recursive] Error 1 *** Error 2 in security/aircrack-ng (/usr/ports/infrastructure/mk/bsd.port.= mk:2800 '/usr/ports/pobj/aircrack-ng-1.5.2/.build_done') *** Error 1 in security/aircrack-ng (/usr/ports/infrastructure/mk/bsd.port.= mk:2466 'build') =3D=3D=3D> Exiting security/aircrack-ng with an error *** Error 1 in /usr/ports (infrastructure/mk/bsd.port.subdir.mk:137 'build') Error: job failed with 256 on localhost at 1557569485 -->8-- machine/intr.h doesn't seem needed on amd64. ok for the diff below? Index: Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/ports/security/aircrack-ng/Makefile,v retrieving revision 1.23 diff -u -p -r1.23 Makefile --- Makefile 9 Mar 2019 18:02:35 -0000 1.23 +++ Makefile 11 May 2019 19:29:29 -0000 @@ -2,7 +2,7 @@ =20 COMMENT=3D 802.11 WEP and WPA-PSK keys cracking program DISTNAME=3D aircrack-ng-1.5.2 -REVISION=3D 0 +REVISION=3D 1 CATEGORIES=3D security =20 HOMEPAGE=3D https://www.aircrack-ng.org/ Index: patches/patch-src_aircrack-osdep_openbsd_c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: patches/patch-src_aircrack-osdep_openbsd_c diff -N patches/patch-src_aircrack-osdep_openbsd_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-src_aircrack-osdep_openbsd_c 11 May 2019 19:29:29 -0000 @@ -0,0 +1,13 @@ +$OpenBSD$ + +Index: src/aircrack-osdep/openbsd.c +--- src/aircrack-osdep/openbsd.c.orig ++++ src/aircrack-osdep/openbsd.c +@@ -37,7 +37,6 @@ + #include <net80211/ieee80211_crypto.h> + #include <frame.h> + #include <sys/timeout.h> +-#include <machine/intr.h> + #undef _KERNEL + #include <net80211/ieee80211_node.h> + #include <net80211/ieee80211_ioctl.h> --=20 jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE
