Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

can not compile opentracing in ubuntu. because of SIGSTKSZ #147

Open
springile opened this issue Jan 31, 2023 · 1 comment
Open

can not compile opentracing in ubuntu. because of SIGSTKSZ #147

springile opened this issue Jan 31, 2023 · 1 comment

Comments

@springile
Copy link

springile commented Jan 31, 2023

Hi

I try to compile opentracing in ubuntu,( from image of aflplusplus/aflplusplus)

I got this error:

In file included from /usr/include/signal.h:328,
from /tmp/opentracing-cpp-1.6.0/3rd_party/include/opentracing/catch2/catch.hpp:6456,
from /tmp/opentracing-cpp-1.6.0/mocktracer/test/tracer_test.cpp:9:
/tmp/opentracing-cpp-1.6.0/3rd_party/include/opentracing/catch2/catch.hpp:6631:45: error: size of array 'altStackMem' is not an integral constant-expression
6631 | char FatalConditionHandler::altStackMem[SIGSTKSZ] = {};
| ^~~~~~~~
make[2]: *** [mocktracer/test/CMakeFiles/mocktracer_tracer_test.dir/build.make:76: mocktracer/test/CMakeFiles/mocktracer_tracer_test.dir/tracer_test.cpp.o] E rror 1
make[1]: *** [CMakeFiles/Makefile2:1067: mocktracer/test/CMakeFiles/mocktracer_tracer_test.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

It seems glibc does not support SIGSTKSZ any more.

Do you have a fix for this ?

Thanks.

@hundong2
Copy link

https://src.fedoraproject.org/rpms/catch1/blob/059104ba87494c0b5ebe16844ec190f253e51cac/f/catch1-sigstksz.patch
DynamoRIO/dynamorio#5434

I referenced the following. The build works, but I think I need to find out the exact reason...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants