bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: support AIX 6.1 in config.rpath


From: Ralf Wildenhues
Subject: Re: support AIX 6.1 in config.rpath
Date: Thu, 10 Jan 2008 22:20:30 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

* 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)
     {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]