Open
Description
./configure
make CFLAGS="-std=c99"
make error
make all-recursive
make[1]: Entering directory `/root/safeclib'
Making all in src
make[2]: Entering directory `/root/safeclib/src'
CC mem/safe_mem_constraint.lo
mem/safe_mem_constraint.c:51:5: error: unknown type name '_Thread_local'
constraint_handler_t thrd_mem_handler =
^
mem/safe_mem_constraint.c:51:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'thrd_mem_handler'
constraint_handler_t thrd_mem_handler =
^
mem/safe_mem_constraint.c: In function 'thrd_set_mem_constraint_handler_s':
mem/safe_mem_constraint.c:124:41: error: 'thrd_mem_handler' undeclared (first use in this function)
constraint_handler_t prev_handler = thrd_mem_handler;
^
mem/safe_mem_constraint.c:124:41: note: each undeclared identifier is reported only once for each function it appears in
mem/safe_mem_constraint.c: In function 'invoke_safe_mem_constraint_handler':
mem/safe_mem_constraint.c:153:17: error: 'thrd_mem_handler' undeclared (first use in this function)
if (NULL != thrd_mem_handler) {
^
mem/safe_mem_constraint.c:154:9: error: implicit declaration of function 'thrd_mem_handler' [-Werror=implicit-function-declaration]
thrd_mem_handler(msg, ptr, error);
^
mem/safe_mem_constraint.c:154:9: error: nested extern declaration of 'thrd_mem_handler' [-Werror=nested-externs]
mem/safe_mem_constraint.c:154:9: error: declaration of 'thrd_mem_handler' shadows previous non-variable [-Werror=shadow]
cc1: all warnings being treated as errors
make[2]: *** [mem/safe_mem_constraint.lo] Error 1
make[2]: Leaving directory `/root/safeclib/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/safeclib'
make: *** [all] Error 2
Metadata
Metadata
Assignees
Labels
No labels
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
rurban commentedon Mar 31, 2025
Tell me more about your system. Maybe attach your config.status
ysuLihua commentedon Mar 31, 2025
rurban commentedon Mar 31, 2025