2
1

0002-lib-prefix.h-fix-build-with-gcc-10.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 01bcd0f7411f86eea44247bf91b48882cae35519 Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Mon, 21 Sep 2020 23:12:25 +0200
  4. Subject: [PATCH] lib/prefix.h: fix build with gcc 10
  5. Remove __packed to fix the following build failure with gcc 10 (which
  6. defaults to -fno-common):
  7. CCLD libzebra.la
  8. /tmp/instance-1/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: .libs/sockunion.o:(.bss+0x0): multiple definition of `__packed'; .libs/vty.o:(.bss+0x6c): first defined here
  9. Fixes:
  10. - http://autobuild.buildroot.org/results/82b15cff3f7b943eb93d8270790f1b8561d31d6a
  11. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  12. [Upstream status: https://bugzilla.quagga.net/show_bug.cgi?id=1014]
  13. ---
  14. lib/prefix.h | 2 +-
  15. 1 file changed, 1 insertion(+), 1 deletion(-)
  16. diff --git a/lib/prefix.h b/lib/prefix.h
  17. index 2cf0b20b..a5306eee 100644
  18. --- a/lib/prefix.h
  19. +++ b/lib/prefix.h
  20. @@ -44,7 +44,7 @@
  21. */
  22. struct ethaddr {
  23. u_char octet[ETHER_ADDR_LEN];
  24. -} __packed;
  25. +};
  26. /*
  27. --
  28. 2.28.0