Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#63754 closed defect (fixed)

aircrack-ng Build Error on macOS Monterey - :Detailed

Reported by: YKPCLN Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: monterey Cc:
Port: aircrack-ng

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Have a building problem while installing Aircrack-ng.

Error Command : /opt/local/bin/gmake -j4 -w all

Errors :

errorerrorerror: : : unable to open output file 'lib/osdep/.libs/libaircrack_osdep_la-osdep.o': 'No such file or directory'unable to open output file 'lib/osdep/.libs/libaircrack_osdep_la-file.o': 'No such file or directory'

In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/cstddef:37:
./version:1:1: error: expected unqualified-id

In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/initializer_list:46:
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/cstddef:49:9: error: no member named 'ptrdiff_t' in the global namespace

In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/type_traits:421:
./version:1:1: error: expected unqualified-id

In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/utility:205:
./version:1:1: error: expected unqualified-id

In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/exception:85:
./version:1:1: error: expected unqualified-id

In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/new:95:
./version:1:1: error: expected unqualified-id

In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/limits:121:
./version:1:1: error: expected unqualified-id

In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/iterator:424:
./version:1:1: error: expected unqualified-id

In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/memory:676:
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/iterator:559:13: error: unknown type name 'ptrdiff_t'

/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/iterator:620:56: error: unknown type name 'ptrdiff_t'

/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/iterator:986:66: error: unknown type name 'ptrdiff_t'

/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/iterator:986:54: error: template parameter missing a default argument

In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/tuple:154:
./version:1:1: error: expected unqualified-id

In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/__memory/allocator_traits.h:15:
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/__memory/pointer_traits.h:63:34: error: unknown type name 'ptrdiff_t'

/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/__memory/pointer_traits.h:139:13: error: unknown type name 'ptrdiff_t'

./version:1:1: error: expected unqualified-id

./version:1:1: error: expected unqualified-id

/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/atomic:1055:73: error: unknown type name 'ptrdiff_t'

/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/atomic:1060:65: error: unknown type name 'ptrdiff_t'

fatal error: too many errors emitted, stopping now [-ferror-limit=]

Change History (5)

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: monterey added; #build #build-error #gmake #gmake-error #error removed
Milestone: MacPorts Future
Owner: set to ryandesign
Priority: HighNormal
Status: newaccepted

Ok, looks like the typical conflict between the VERSION text file common to many open source projects and the <version> header new in C++20. I'll report the problem to the developers of aircrack-ng and will work around it in MacPorts.

comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Upstream has already fixed it by renaming their VERSION file to AC_VERSION in https://github.com/aircrack-ng/aircrack-ng/commit/35169a66becf48fd014cb5124da3b61b4d25d812 but there hasn't been a new version released yet.

comment:3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

I thought I had already worked around this two years ago in [045d74b0585a13d3963bb4842a31a5ab4c7ed8f1/macports-ports] but I appear to have been unsuccessful. Let me take another look.

comment:4 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In fc65d53dc398f8216b837889b3b5e5f41e9b9473/macports-ports (master):

aircrack-ng: Re-fix conflict with version header

Closes: #63754

comment:5 Changed 3 years ago by YKPCLN

Thank you so much, I tried again and it's working now.

Kind regards,

Note: See TracTickets for help on using tickets.