Compiling with musl gives: 'Error relocating – secure_getenv: symbol not found' – Debian
I am trying to compile a simple C program using a musl toolchain v1.2.1 on x86_64 Debian. The program secgetenv.c is as follows: #define _GNU_SOURCE #include <stdlib.h> #include <stdio.h> int main() { char *res; res = secure_getenv("TEST_ENV_VAR"); fprintf(stdout, "%sn", res);…