fix: -DHAVE_CURL for el_runtime OTLP — resolves emit_metric linker error #8
Reference in New Issue
Block a user
Delete Branch "fix/have-curl-define"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Root cause
The staged
el_runtime.c(from el.git) wraps the entire OTLP observability section behind#ifdef HAVE_CURL:The Dockerfile compiled el_runtime.c without
-DHAVE_CURL, so those symbols were silently compiled out. The linker then couldn't find them.Fix
Add
-DHAVE_CURLto thecc -O2 -c el_runtime.cstep. libcurl IS available (installed vialibcurl4-openssl-dev), so this correctly enables the OTLP code path.Also reverts the soul-demo compile to use
el_runtime.o(the cached compiled object) now that it will contain the correct symbols.