2 * Test required functions are exported from the pam_winbind.so library
8 /* Symbol list to check */
10 static char *symlist[] = {
12 "pam_sm_authenticate",
19 int main(int argc, char **argv)
27 printf("FAIL: usage '%s sharedlibname'\n", argv[0]);
31 handle = dlopen(argv[1], RTLD_NOW);
34 printf("FAIL: could not dlopen library: %s\n", dlerror());
40 for (i = 0; symlist[i] != NULL; i++) {
41 sym = dlsym(handle, symlist[i]);
43 printf("FAIL: could not resolve symbol '%s': %s\n",
44 symlist[i], dlerror());
47 printf("loaded symbol '%s' ok\n", symlist[i]);