.dli_sname of Dl_info may be NULL even if dladdr() is succeeded.
correct the length modifier of printf format string for the size_t argment.
-fPIC is required to create a shared object on some environment.
append -Wall to CPPFLAGS.