Re: -dlopen self and optimizing away symbols

2006-08-17 Thread Howard Chu
Albert Chin wrote: On Thu, Aug 17, 2006 at 08:22:08AM +0200, Ralf Wildenhues wrote: But anyway, if you have other modules, you should specify -export-dynamic, I think. At least I can't infer from the above snippet that `-dlopen self' would be sufficient. What do you think? I agree. I think

Re: -dlopen self and optimizing away symbols

2006-08-17 Thread Albert Chin
On Thu, Aug 17, 2006 at 08:22:08AM +0200, Ralf Wildenhues wrote: > * Albert Chin wrote on Thu, Aug 17, 2006 at 07:55:14AM CEST: > > On Thu, Aug 17, 2006 at 07:42:00AM +0200, Ralf Wildenhues wrote: > > > > > But say, why is -Wl,-E not passed to the link line? It should be > > > export_dynamic_flag

Re: -dlopen self and optimizing away symbols

2006-08-17 Thread Ralf Wildenhues
Hello Gary, * Gary V. Vaughan wrote on Thu, Aug 17, 2006 at 11:41:01AM CEST: > On 16 Aug 2006, at 23:39, Albert Chin wrote: > > > >Unfortunately, the HP-UX 11.23/IA compiler, when generating > >.libs/slapd, will optimize _away_ symbols that are not used by any of > >the object files being linked >

Re: Problem with '-L' switch.

2006-08-17 Thread Ralf Wildenhues
Hello Vaclav, * Vaclav Havlik wrote on Thu, Aug 17, 2006 at 11:53:41AM CEST: > > I removed the trailing slashes from all occurences of > sys_lib_search_path_spec, but it didn't help. So please send output of the link line with --debug after you did this change (but only this change). That helps

Re: Problem with '-L' switch.

2006-08-17 Thread Vaclav Havlik
Hello Ralf. I removed the trailing slashes from all occurences of sys_lib_search_path_spec, but it didn't help. Then I removed whole '/usr/lib' from all occurences of sys_lib_search_path_spec and it didn't help either. I have a vague idea that the problem might be that there is a variable conta

Re: -dlopen self and optimizing away symbols

2006-08-17 Thread Gary V. Vaughan
Hi Albert, On 16 Aug 2006, at 23:39, Albert Chin wrote: cc -z +O2 +Onofltacc +Olit=all +Oentrysched +DD64 +Odataprefetch \ +Onolimit +We901 -Wl,+b \ -Wl,/opt/TWWfsw/openldap2325lib/hpux64:/opt/TWWfsw/libdb42/lib/ hpux64:/opt/TWWfsw/libsasl21/lib/hpux64:/opt/TWWfsw/libopenssl097/ lib/hpux