Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 640492 - net-wireless/wpa_supplicant-2.6-r4 fails with src/utils/common.h:426:0: error: "__bitwise" redefined [-Werror]
Summary: net-wireless/wpa_supplicant-2.6-r4 fails with src/utils/common.h:426:0: error...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Rick Farina (Zero_Chaos)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: werror
  Show dependency tree
 
Reported: 2017-12-10 12:08 UTC by Attila Tóth
Modified: 2018-04-16 20:29 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Tóth 2017-12-10 12:08:53 UTC
In file included from ../src/drivers/driver_nl80211.c:26:0:
/var/tmp/portage/net-wireless/wpa_supplicant-2.6-r4/work/wpa_supplicant-2.6/src/utils/common.h:426:0: error: "__bitwise" redefined [-Werror]
 #define __bitwise

In file included from /usr/include/linux/sysinfo.h:4:0,
                 from /usr/include/linux/kernel.h:4,
                 from /usr/include/linux/netlink.h:4,
                 from /usr/include/libnl3/netlink/netlink.h:25,
                 from /usr/include/libnl3/netlink/genl/genl.h:15,
                 from ../src/drivers/driver_nl80211.c:17:
/usr/include/linux/types.h:21:0: note: this is the location of the previous definition
 #define __bitwise __bitwise__


Solution:
https://www.spinics.net/lists/hostap/msg03998.html

diff --git a/src/utils/common.h b/src/utils/common.h
index 46e96a65b..fec7f6013 100644
--- a/src/utils/common.h
+++ b/src/utils/common.h
@@ -435,6 +435,7 @@ void perror(const char *s);
 #define __bitwise __attribute__((bitwise))
 #else
 #define __force
+#undef __bitwise
 #define __bitwise
 #endif
Comment 1 Klaus Kusche 2017-12-25 10:31:39 UTC
Same here.
Comment 2 Rick Farina (Zero_Chaos) gentoo-dev 2018-04-16 20:29:12 UTC
this was accidentally introduced with USE=eapol_test

fixed in 2.6-r5