13 h = dlopen ("${ORIGIN}/testobj1.so", RTLD_LAZY);
15 error (EXIT_FAILURE, 0, "while loading `%s': %s", "testobj1.so",
18 fp = dlsym (h, "obj1func1");
20 error (EXIT_FAILURE, 0, "getting `obj1func1' in `%s': %s",
21 "testobj1.so", dlerror ());
24 printf ("fp(10) = %d\n", res);
27 error (EXIT_FAILURE, 0, "while close `%s': %s",
28 "testobj1.so", dlerror ());
34 extern int foo (int a);