Wolfgang,

I could not get what you sent me to compile; however, I believe that I  
have fixed the problem (or at least fond a work around).

In line 124 of common/Make.global_options, I changed

DEAL_II_ADD_SONAME = -Wl,-dylib_install_name -Wl,$(call  
DEAL_II_SHLIB_NAME,$(1))

to

DEAL_II_ADD_SONAME = -Wl,-dynamic -Wl,-install_name -Wl,$(call  
DEAL_II_SHLIB_NAME,$(1))

While searching for information about this problem, I saw that this  
particular syntax was used somewhere else.  All of the libraries are  
now linking correctly, and the examples are running.

Additionally, I made this change on my 10.5 system, and it works as  
well.

Finally, do you know of a good reference to read more about these  
topics?  I find myself devoting a significant amount of time to this,  
and while I usually can get things working, I would like to have a  
more complete knowledge of the subject.

Thanks again for your help,

Jon



On Nov 4, 2008, at 9:55 PM, Wolfgang Bangerth wrote:

>
> Jon,
>
>> I updated, and the test still passes for -dylib_install_name, and
>> still fails for -soname.  I also still get the error when linking.
>
> I don't think I have access to one of these systems so can't try  
> this out
> myself. What the test for -dylib_install_name does is this (try  
> reproducing
> this by hand): it creates a file 'conftest.cpp' with this as content:
>  int main () {}
> and then compiles it with a command line that essentially looks like  
> this:
>  g++ -o conftest -Wl,-dylib_install_name -Wl,libbase.so.6.2.1  
> conftest.cpp
>
> Questions:
> (i) Does this command line lead to an error?
> (ii) Does it lead to an error if you add -shared to the front of the  
> command
> line?
> (iii) Does it lead to an error if you change the output file name from
> conftest to conftest.dylib? What if you also add -shared to the  
> command line?
>
> Best
> Wolfgang
>
> -------------------------------------------------------------------------
> Wolfgang Bangerth                email:            [EMAIL PROTECTED]
>                                 www: http://www.math.tamu.edu/~bangerth/
>
>


_______________________________________________

Reply via email to