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

Compilation error on GCC 10 due to multiple definitions of __packed #2281

Closed
abdelmoumen-eddaoudy opened this issue Nov 21, 2021 · 2 comments

Comments

@abdelmoumen-eddaoudy
Copy link

abdelmoumen-eddaoudy commented Nov 21, 2021

Details

  • Starting from the upcoming GCC release 10, the default of -fcommon option will change to -fno-common - this leads to build errors:
Making all in scripts
make[2]: Entering directory '/root/aircrack-ng-1.6/scripts'
make[3]: Entering directory '/root/aircrack-ng-1.6/scripts'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/root/aircrack-ng-1.6/scripts'
make[2]: Leaving directory '/root/aircrack-ng-1.6/scripts'
make[2]: Entering directory '/root/aircrack-ng-1.6'
  CCLD     libaircrack-osdep.la
/usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/../../../../x86_64-alpine-linux-musl/bin/ld: ./.libs/libradiotap.a(radiotap.o):(.bss+0x0):
multiple definition of `__packed'; lib/osdep/.libs/libaircrack_osdep_la-linux.o:(.bss+0x18): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:2991: libaircrack-osdep.la] Error 1
make[2]: Leaving directory '/root/aircrack-ng-1.6'
make[1]: *** [Makefile:4805: all-recursive] Error 1
make[1]: Leaving directory '/root/aircrack-ng-1.6'
make: *** [Makefile:2580: all] Error 2
@abdelmoumen-eddaoudy
Copy link
Author

This was a problem with radiotap-library as they use __packed instead of __attribute__((__packed__)).

@gemesa
Copy link
Contributor

gemesa commented Jan 18, 2023

This issue is already fixed in radiotap/radiotap-library, see this PR and in aircrack-ng/aircrack-ng also, see this commit. Issue can be closed if you agree @Mister-X-

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

3 participants