gcc -pthread -Wall -Wextra -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations dlfcn/dladdr.c -o dlfcn/dladdr -D_POSIX_C_SOURCE=202405L -lm -lpthread -lrt -lxnet -lsocket -latomic In file included from dlfcn/dladdr.c:1: /usr/include/dlfcn.h:59:9: error: unknown type name ‘mmapobj_result_t’ 59 | mmapobj_result_t *dlm_maps; /* mapping information */ | ^~~~~~~~~~~~~~~~ dlfcn/dladdr.c:5:57: error: initialization of ‘int (*)(const void * restrict, Dl_info_t * restrict)’ {aka ‘int (*)(const void * restrict, struct dl_info * restrict)’} from incompatible pointer type ‘int (*)(void *, Dl_info *)’ {aka ‘int (*)(void *, struct dl_info *)’} [-Wincompatible-pointer-types] 5 | int (*foo)(const void *restrict, Dl_info_t *restrict) = dladdr; | ^~~~~~