From caed4ef7171e1f02fd64b328ca437fa3be8c2fcc Mon Sep 17 00:00:00 2001 From: wumiaont Date: Thu, 15 Feb 2024 12:47:13 -0500 Subject: [PATCH 1/2] Fix compile issues with bookworm and openssl 3.0 --- debian/rules | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 681b857a3..60d8b46fd 100755 --- a/debian/rules +++ b/debian/rules @@ -7,7 +7,14 @@ include /usr/share/dpkg/default.mk # The build system doesn't use CPPFLAGS, pass them to CFLAGS/CXXFLAGS to # enable the missing (hardening) flags -DEB_CFLAGS_MAINT_APPEND = -MMD -Wall $(shell dpkg-buildflags --get CPPFLAGS) -Wno-error=array-bounds $(warning WARNING: Building with -Wno-error=array-bounds) +# Added no-deprecated-declarations use-after-free and no-discarded-qualifiers +# to resolve the compile errors with bookworm. There are deprecated APIs with +# openssl 3.0 which are used by wpa supplicant. We can remove those flags when +# there are solutions ready. +DEB_CFLAGS_MAINT_APPEND = -MMD -Wall $(shell dpkg-buildflags --get CPPFLAGS) -Wno-error=array-bounds $(warning WARNING: Building with -Wno-error=array-bounds) \ + -Wno-deprecated-declarations $(warning WARNING: Building with -Wno-deprecated-declarations) \ + -Wno-use-after-free $(warning WARNING: Building with -Wno-use-after-free) \ + -Wno-discarded-qualifiers $(warning WARNING: Building with -Wno-discarded-qualifiers) DEB_CXXFLAGS_MAINT_APPEND = $(shell dpkg-buildflags --get CPPFLAGS) DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed export DEB_CFLAGS_MAINT_APPEND DEB_CXXFLAGS_MAINT_APPEND DEB_LDFLAGS_MAINT_APPEND From 7406f4ba418eed00b2c587ae2c76de0eceffad6d Mon Sep 17 00:00:00 2001 From: wumiaont Date: Thu, 15 Feb 2024 13:05:05 -0500 Subject: [PATCH 2/2] Fix compile issues with debian bookworm --- debian/rules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/rules b/debian/rules index 60d8b46fd..c5ef6d6da 100755 --- a/debian/rules +++ b/debian/rules @@ -13,8 +13,8 @@ include /usr/share/dpkg/default.mk # there are solutions ready. DEB_CFLAGS_MAINT_APPEND = -MMD -Wall $(shell dpkg-buildflags --get CPPFLAGS) -Wno-error=array-bounds $(warning WARNING: Building with -Wno-error=array-bounds) \ -Wno-deprecated-declarations $(warning WARNING: Building with -Wno-deprecated-declarations) \ - -Wno-use-after-free $(warning WARNING: Building with -Wno-use-after-free) \ - -Wno-discarded-qualifiers $(warning WARNING: Building with -Wno-discarded-qualifiers) + -Wno-use-after-free $(warning WARNING: Building with -Wno-use-after-free) \ + -Wno-discarded-qualifiers $(warning WARNING: Building with -Wno-discarded-qualifiers) DEB_CXXFLAGS_MAINT_APPEND = $(shell dpkg-buildflags --get CPPFLAGS) DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed export DEB_CFLAGS_MAINT_APPEND DEB_CXXFLAGS_MAINT_APPEND DEB_LDFLAGS_MAINT_APPEND