From: Dongkyun Son Date: Wed, 14 Jun 2023 05:07:37 +0000 (+0900) Subject: temporary fix for build errors X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_dev_1.7;p=platform%2Fupstream%2Flibabigail.git temporary fix for build errors 1) ebl_syscall_abi.c:37:64: error: argument 5 of type 'int *' declared as a pointer [-Werror=array-parameter=] 2) catch.h:6543:33: error: size of array ‘altStackMem’ is not an integral constant-expression wip: update version-up with elfutils Change-Id: I07a592ebd7175eaa785b6ff2e64e041a9f1b6733 Signed-off-by: Dongkyun Son --- diff --git a/packaging/libabigail.spec b/packaging/libabigail.spec index cd0850c3..56055836 100644 --- a/packaging/libabigail.spec +++ b/packaging/libabigail.spec @@ -35,6 +35,7 @@ to infer interesting conclusions about these differences. %setup -q -b 1 %build +export CFLAGS="$CFLAGS -Wno-error=array-parameter" # Internal fresh GPLv3 elfutils may only be used inside build environment # # DO NOT EXPORT THESE BINARIES diff --git a/tests/lib/catch.hpp b/tests/lib/catch.hpp index fdb046fe..d64fd1a5 100644 --- a/tests/lib/catch.hpp +++ b/tests/lib/catch.hpp @@ -6540,7 +6540,7 @@ namespace Catch { static bool isSet; static struct sigaction oldSigActions [sizeof(signalDefs)/sizeof(SignalDefs)]; static stack_t oldSigStack; - static char altStackMem[SIGSTKSZ]; + static char altStackMem[32768]; static void handleSignal( int sig ) { std::string name = ""; @@ -6560,7 +6560,7 @@ namespace Catch { isSet = true; stack_t sigStack; sigStack.ss_sp = altStackMem; - sigStack.ss_size = SIGSTKSZ; + sigStack.ss_size = 32768; sigStack.ss_flags = 0; sigaltstack(&sigStack, &oldSigStack); struct sigaction sa = { 0 }; @@ -6591,7 +6591,7 @@ namespace Catch { bool FatalConditionHandler::isSet = false; struct sigaction FatalConditionHandler::oldSigActions[sizeof(signalDefs)/sizeof(SignalDefs)] = {}; stack_t FatalConditionHandler::oldSigStack = {}; - char FatalConditionHandler::altStackMem[SIGSTKSZ] = {}; + char FatalConditionHandler::altStackMem[32768] = {}; } // namespace Catch