temporary fix for build errors 86/294186/1 tizen_dev_1.7
authorDongkyun Son <dongkyun.s@samsung.com>
Wed, 14 Jun 2023 05:07:37 +0000 (14:07 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Wed, 14 Jun 2023 05:30:30 +0000 (14:30 +0900)
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 <dongkyun.s@samsung.com>
packaging/libabigail.spec
tests/lib/catch.hpp

index cd0850c..5605583 100644 (file)
@@ -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
index fdb046f..d64fd1a 100644 (file)
@@ -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 = "<unknown signal>";
@@ -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