On 11/05/2019 22:26, Jeremie Courreges-Anglas wrote:

The build fails because <sparc64/intr.h> includes another header in
/sys: sparc64/sparc64/intreg.h.

--8<--
/usr/bin/libtool --tag=disable-static  --tag=CC   --mode=compile cc -DPACKAGE_NAME=\"aircrack-ng\" -DPACKAGE_TARNAME=\"aircrack-ng\" 
-DPACKAGE_VERSION=\"1.5.2\" -DPACKAGE_STRING=\"aircrack-ng\ 1.5.2\" -DPACKAGE_BUGREPORT=\"https://forum.aircrack-ng.org\"; 
-DPACKAGE_URL=\"\" -DPACKAGE=\"aircrack-ng\" -DVERSION=\"1.5.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" 
-D_REVISION=\"1.5.2\" -DHAVE_OPENSSL_CRYPTO_H=1 -DHAVE_OPENSSL_CMAC_H=1 -DHAVE_OPENSSL_CMAC_H=1 -DHAVE_PCAP_H=1 -DHAVE_PCAP=1 -DHAVE_PCRE=1 -DHAVE_SQLITE3_H=1 
-DHAVE_SQLITE3=1 -DHAVE_SQLITE=1 -DHAVE_ZLIB=1 -DHAVE_PTHREAD_PRIO_INHERIT=1 -D_REENTRANT=1 -DHAVE_POSIX_MEMALIGN=1 -DCACHELINE_SIZE=64 -DCACHELINE_SIZE=64 -I.  -I../.. 
-I../../src/include -I../../src  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_FORTIFY_SOURCE=2  -Wall -O3 -std=gnu99 -fno-strict-aliasing -Wpointer-arith -Wstrict-overflow=2 
-Wstrict-prototypes -fvisibility=hidden -O2 -pipe -MT libaircrack_osdep_la-openbsd.lo -MD -MP -MF .deps/libaircrack_osdep_la-openbsd.Tpo -c -o libaircrack_osdep_la-openbsd.lo 
`test -f 'openbsd.c' || echo './'`openbsd.c
cc -DPACKAGE_NAME="aircrack-ng" -DPACKAGE_TARNAME="aircrack-ng" -DPACKAGE_VERSION="1.5.2" -DPACKAGE_STRING="aircrack-ng 1.5.2" 
-DPACKAGE_BUGREPORT="https://forum.aircrack-ng.org"; -DPACKAGE_URL="" -DPACKAGE="aircrack-ng" -DVERSION="1.5.2" -DSTDC_HEADERS=1 
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
-DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -D_REVISION="1.5.2" -DHAVE_OPENSSL_CRYPTO_H=1 -DHAVE_OPENSSL_CMAC_H=1 -DHAVE_OPENSSL_CMAC_H=1 -DHAVE_PCAP_H=1 
-DHAVE_PCAP=1 -DHAVE_PCRE=1 -DHAVE_SQLITE3_H=1 -DHAVE_SQLITE3=1 -DHAVE_SQLITE=1 -DHAVE_ZLIB=1 -DHAVE_PTHREAD_PRIO_INHERIT=1 -D_REENTRANT=1 -DHAVE_POSIX_MEMALIGN=1 
-DCACHELINE_SIZE=64 -DCACHELINE_SIZE=64 -I. -I../.. -I../../src/include -I../../src -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_FORTIFY_SOURCE=2 -Wall -O3 -std=gnu99 
-fno-strict-aliasing -Wpointer-arith -Wstrict-overflow=2 -Wstrict-prototypes -fvisibility=hidden -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' declared 
inside parameter list
/usr/include/net80211/ieee80211_crypto.h:111: warning: its scope is only this 
definition or declaration, which is probably not what you want
/usr/include/net80211/ieee80211_crypto.h:112: warning: 'struct ifnet' declared 
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 of 
function '_splraise'
/usr/include/net80211/ieee80211_node.h:398: error: 'PIL_NET' undeclared (first 
use in this function)
/usr/include/net80211/ieee80211_node.h:398: error: (Each undeclared identifier 
is reported only once
/usr/include/net80211/ieee80211_node.h:398: error: for each function it appears 
in.)
/usr/include/net80211/ieee80211_node.h:400: warning: implicit declaration of 
function '_splx'
/usr/include/net80211/ieee80211_node.h: In function 'ieee80211_node_decref':
/usr/include/net80211/ieee80211_node.h:409: error: 'PIL_NET' undeclared (first 
use in this function)
/usr/include/net80211/ieee80211_node.h: At top level:
/usr/include/net80211/ieee80211_node.h:461: warning: 'struct ifnet' declared 
inside parameter list
/usr/include/net80211/ieee80211_node.h:462: warning: 'struct ifnet' declared 
inside parameter list
/usr/include/net80211/ieee80211_node.h:463: warning: 'struct ifnet' declared 
inside parameter list
/usr/include/net80211/ieee80211_node.h:465: warning: 'struct ifnet' declared 
inside parameter list
/usr/include/net80211/ieee80211_node.h:466: warning: 'struct ifnet' declared 
inside parameter list
/usr/include/net80211/ieee80211_node.h:467: warning: 'struct ifnet' declared 
inside parameter list
/usr/include/net80211/ieee80211_node.h:468: warning: 'struct ifnet' declared 
inside parameter list
In file included from openbsd.c:45:
/usr/include/net80211/ieee80211_proto.h:60: warning: 'struct ifnet' declared 
inside parameter list
/usr/include/net80211/ieee80211_proto.h:61: warning: 'struct ifnet' declared 
inside parameter list
/usr/include/net80211/ieee80211_proto.h:70: warning: 'struct ifnet' declared 
inside parameter list
/usr/include/net80211/ieee80211_proto.h:72: warning: 'struct rtentry' declared 
inside parameter list
/usr/include/net80211/ieee80211_proto.h:72: warning: 'struct ifnet' declared 
inside parameter list
/usr/include/net80211/ieee80211_proto.h:80: warning: 'struct ifnet' declared 
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="aircrack-ng" -DPACKAGE_TARNAME="aircrack-ng" -DPACKAGE_VERSION="1.5.2" -DPACKAGE_STRING="aircrack-ng 
1.5.2" -DPACKAGE_BUGREPORT="https://forum.aircrack-ng.org"; -DPACKAGE_URL="" -DPACKAGE="aircrack-ng" -DVERSION="1.5.2" -DSTDC_HEADERS=1 
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
-DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -D_REVISION="1.5.2" -DHAVE_OPENSSL_CRYPTO_H=1 -DHAVE_OPENSSL_CMAC_H=1 -DHAVE_OPENSSL_CMAC_H=1 -DHAVE_PCAP_H=1 
-DHAVE_PCAP=1 -DHAVE_PCRE=1 -DHAVE_SQLITE3_H=1 -DHAVE_SQLITE3=1 -DHAVE_SQLITE=1 -DHAVE_ZLIB=1 -DHAVE_PTHREAD_PRIO_INHERIT=1 -D_REENTRANT=1 -DHAVE_POSIX_MEMALIGN=1 
-DCACHELINE_SIZE=64 -DCACHELINE_SIZE=64 -I. -I../.. -I../../src/include -I../../src -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_FORTIFY_SOURCE=2 -Wall -O3 -std=gnu99 
-fno-strict-aliasing -Wpointer-arith -Wstrict-overflow=2 -Wstrict-prototypes -fvisibility=hidden -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
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')
===> 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?

ok benoit@



Index: Makefile
===================================================================
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 @@
COMMENT= 802.11 WEP and WPA-PSK keys cracking program
  DISTNAME=             aircrack-ng-1.5.2
-REVISION=              0
+REVISION=              1
  CATEGORIES=           security
HOMEPAGE= https://www.aircrack-ng.org/
Index: patches/patch-src_aircrack-osdep_openbsd_c
===================================================================
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>


Reply via email to