17 p1
= dlopen ("dblloadmod1.so", RTLD_LAZY
);
20 printf ("cannot load dblloadmod1.so: %s\n", dlerror ());
24 p2
= dlopen ("dblloadmod2.so", RTLD_LAZY
);
27 printf ("cannot load dblloadmod2.so: %s\n", dlerror ());
31 if (dlclose (p1
) != 0)
33 printf ("error while closing dblloadmod1.so: %s\n", dlerror ());
37 fp
= dlsym (p2
, "xyzzy");
40 printf ("cannot get function \"xyzzy\": %s\n", dlerror ());
46 if (dlclose (p2
) != 0)
48 printf ("error while closing dblloadmod2.so: %s\n", dlerror ());