* Ralf Wildenhues wrote on Tue, Jan 08, 2008 at 09:34:37PM CET:
> * Rainer Tammer wrote on Tue, Jan 08, 2008 at 05:03:30PM CET:
>
> > The first part of the test run did produce some errors:
> [...]
> > did not find the `myfunc' function
> > error was: Function not implemented (myfunc)
> > did not find the `myvar' variable
> > error was: Function not implemented (myvar)
> [...]
> > FAIL: tests/mdemo-exec.test
> [...]
> > ====================================
> > 3 of 106 tests failed
>
> Yep, I see these on AIX < 6 as well. This is a regression of HEAD over
> branch-1-5. Sigh.
branch-1-5 ltdl finds these symbols with the preopen loader.
HEAD tries with the dlopen one, and then fails.
I think this is due to the order in which lt_dlopen tries the loaders,
and for some reason or other we changed that order (deliberately?) in
HEAD over branch-1-5.
At least with this crude hack I can get the failure to disappear.
What I don't know yet is how to fix this right, nor why this patch would
even be needed: glancing at the documentation, dlopen(NULL) should just
work.
Cheers,
Ralf
Index: libltdl/loaders/dlopen.c
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/loaders/dlopen.c,v
retrieving revision 1.11
diff -u -r1.11 dlopen.c
--- libltdl/loaders/dlopen.c 4 Jul 2007 23:05:05 -0000 1.11
+++ libltdl/loaders/dlopen.c 10 Jan 2008 21:19:18 -0000
@@ -178,7 +178,13 @@
#endif
}
- module = dlopen (filename, module_flags);
+/* dlopen(NULL) does not work well on AIX */
+#ifdef _AIX
+ if (!filename)
+ module = NULL;
+ else
+#endif _AIX
+ module = dlopen (filename, module_flags);
if (!module)
{
_______________________________________________
Bug-libtool mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-libtool