-dlopen self on AIX

2006-09-06 Thread Albert Chin
Does -dlopen self work on AIX? While building epiphany-1.6.5 on this platform, seems that not all the correct symbols are being exported. On AIX 5.3, dlopen_self=no. If -dlopen self is specified, then the following code is executed (from the 1.5 branch): if test "$dlself" = yes; then

Re: -dlopen self on AIX

2005-10-30 Thread Albert Chin
On Sun, Oct 30, 2005 at 12:10:23PM -0800, Howard Chu wrote: > Albert Chin wrote: > > [snip ...] > > > >Dynamic module support in openldap-2.3.x isn't working on AIX for the > >above reason. Using -bexpall or -bE when linking the main binary does > >work though. While the main binary, slapd, doesn't

Re: -dlopen self on AIX

2005-10-30 Thread Albert Chin
On Sun, Oct 30, 2005 at 12:16:01PM -0600, Albert Chin wrote: > On Sun, Oct 30, 2005 at 11:56:30AM -0600, Albert Chin wrote: > > On Sun, Oct 30, 2005 at 11:14:14AM -0600, Albert Chin wrote: > > > [snip ...] > > > > > > This means the method libtool uses to sup

Re: -dlopen self on AIX

2005-10-30 Thread Howard Chu
Albert Chin wrote: On Sun, Oct 30, 2005 at 11:38:26AM -0800, Howard Chu wrote: Albert Chin wrote: On Sun, Oct 30, 2005 at 11:14:14AM -0600, Albert Chin wrote: [snip ...] This means the method libtool uses to support -dlopen self on AIX won't work (by building a list of symbols into

Re: -dlopen self on AIX

2005-10-30 Thread Albert Chin
On Sun, Oct 30, 2005 at 11:38:26AM -0800, Howard Chu wrote: > Albert Chin wrote: > >On Sun, Oct 30, 2005 at 11:14:14AM -0600, Albert Chin wrote: > >>[snip ...] > >> > >>This means the method libtool uses to support -dlopen self on AIX > >>won't w

Re: -dlopen self on AIX

2005-10-30 Thread Howard Chu
with names exported from other shared objects. The default is noexpall. This means the method libtool uses to support -dlopen self on AIX won't work (by building a list of symbols into some xxS.o file and linking it with the executable). The real solution is to -bE the symbol list.

Re: -dlopen self on AIX

2005-10-30 Thread Howard Chu
Bob Friesenhahn wrote: On Sun, 30 Oct 2005, Albert Chin wrote: Seems the openldap folks should really use -export-dynamic, which isn't defined for AIX. We could make it -bexpall but as documented in the previous mail, it doesn't export everything. So, should we create a new variable, export_dyn

Re: -dlopen self on AIX

2005-10-30 Thread Howard Chu
Albert Chin wrote: On Sun, Oct 30, 2005 at 11:14:14AM -0600, Albert Chin wrote: [snip ...] This means the method libtool uses to support -dlopen self on AIX won't work (by building a list of symbols into some xxS.o file and linking it with the executable). The real solution is to -b

Re: -dlopen self on AIX

2005-10-30 Thread Bob Friesenhahn
On Sun, 30 Oct 2005, Albert Chin wrote: Seems the openldap folks should really use -export-dynamic, which isn't defined for AIX. We could make it -bexpall but as documented in the previous mail, it doesn't export everything. So, should we create a new variable, export_dynamic_cmds? If so, and te

Re: -dlopen self on AIX

2005-10-30 Thread Albert Chin
On Sun, Oct 30, 2005 at 11:56:30AM -0600, Albert Chin wrote: > On Sun, Oct 30, 2005 at 11:14:14AM -0600, Albert Chin wrote: > > [snip ...] > > > > This means the method libtool uses to support -dlopen self on AIX > > won't work (by building a list of symbols into

Re: -dlopen self on AIX

2005-10-30 Thread Albert Chin
On Sun, Oct 30, 2005 at 11:14:14AM -0600, Albert Chin wrote: > [snip ...] > > This means the method libtool uses to support -dlopen self on AIX > won't work (by building a list of symbols into some xxS.o file and > linking it with the executable). The real solution is to -

-dlopen self on AIX

2005-10-30 Thread Albert Chin
from other shared objects. The default is noexpall. This means the method libtool uses to support -dlopen self on AIX won't work (by building a list of symbols into some xxS.o file and linking it with the executable). The real solution is to -bE the symbol list. What's the cleanest