GithubHelp home page GithubHelp logo

Comments (3)

3xitLight avatar 3xitLight commented on July 29, 2024 3

removing `__packed' from radiotap/radiotap.h fixed it.

patch:

From 771899b4f78ecfa9fe068015cad3f1783e766c92 Mon Sep 17 00:00:00 2001
From: 3XITLiGHT <[email protected]>
Date: Wed, 20 May 2020 07:39:25 +0200
Subject: [PATCH]  radiotap: remove `__packed` from struct
 ieee80211_radiotap_header declaration

Fix compilation error on GCC 10 due to multiple definitions of __packed

Signed-off-by: 3XITLiGHT <[email protected]>
---
 radiotap.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/radiotap.h b/radiotap.h
index 2055194..b9af740 100644
--- a/radiotap.h
+++ b/radiotap.h
@@ -50,7 +50,7 @@ struct ieee80211_radiotap_header {
 	 * @it_present: (first) present word
 	 */
 	uint32_t it_present;
-} __packed;
+};
 
 /* version is always 0 */
 #define PKTHDR_RADIOTAP_VERSION	0
-- 
2.26.2

from owl.

schmittner avatar schmittner commented on July 29, 2024 1

This was a problem with radiotap-library as they use __packed instead of __attribute__((__packed__)). My pull request radiotap/radiotap-library#6 was just merged and solves this problem (#32) and #34.

from owl.

adamdicarlo avatar adamdicarlo commented on July 29, 2024

This happened for me when installing from AUR, and this patch fixes it. Thanks! My system is on gcc 10.1.0.

from owl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.