#include #include #include int main(int argc, char **argv) { void *handle, *fn; handle = dlopen("libgnutls-extra.so", RTLD_NOW|RTLD_LOCAL); if (!handle) abort(); fn = dlsym(handle, "gnutls_malloc"); if (!handle) abort(); puts("ok"); return 0; }