> Everything seems to work but I have another issue which I will post  
> on another post.
> I will contact the CMAKE list and see where I get to ;)

Likewise, I have the same problem here, but everything works fine.

cmake(1) saying that a particular library is found in two paths /opt/ 
local/lib and /usr/lib and that it's picking /opt/local/lib for it's  
test and for linking, but can't guarantee that the library in /opt/ 
local/lib will be used over the library found in /usr/lib.  It makes  
best effort.  If you want to figure out if this is a problem with your  
binary, use ldd on the resulting binary (in my case, I'm using a boost  
install to a specific path and have LD_LIBRARY_PATH set to the  
directory where the binary exists):

% ldd myprog
../bin/myprog:
        libthr.so.3 => /lib/libthr.so.3 (0x8006cd000)
        libwt.so.14 => ./libwt.so.14 (0x8007e5000)
        libwthttp.so.6 => ./libwthttp.so.6 (0x800c3f000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x8013fa000)
        libm.so.5 => /lib/libm.so.5 (0x801606000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x801720000)
        libc.so.7 => /lib/libc.so.7 (0x80182d000)
        libboost_thread-mt.so => ./libboost_thread-mt.so (0x801a51000)
        libboost_regex-mt.so => ./libboost_regex-mt.so (0x801b66000)
        libboost_signals-mt.so => ./libboost_signals-mt.so (0x801d3e000)
        libboost_system-mt.so => ./libboost_system-mt.so (0x801e51000)
        libboost_program_options-mt.so => ./libboost_program_options-mt.so  
(0x801f55000)
        libboost_date_time-mt.so => ./libboost_date_time-mt.so (0x80209c000)
        libz.so.4 => /lib/libz.so.4 (0x8021af000)
        libboost_filesystem-mt.so => ./libboost_filesystem-mt.so (0x8022c3000)
        libicuuc.so.38 => /usr/local/lib/libicuuc.so.38 (0x8023d8000)
        libicui18n.so.38 => /usr/local/lib/libicui18n.so.38 (0x80260a000)
        libicudata.so.38 => /usr/local/lib/libicudata.so.38 (0x802860000)

On Darwin, you can use otool -L myprog:

% otool -L myprog
myprog:
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current  
version 111.1.4)
        libwt.14.dylib (compatibility version 14.0.0, current version 2.99.2)
        libwthttp.6.dylib (compatibility version 6.0.0, current version 2.99.2)
        /opt/local/lib/gcc43/libstdc++.6.dylib (compatibility version 7.0.0,  
current version 7.10.0)
        /opt/local/lib/gcc43/libgcc_s.1.dylib (compatibility version 1.0.0,  
current version 1.0.0)


-sc


>
> --- On Tue, 14/7/09, Wim Dumon <[email protected]> wrote:
>
>> From: Wim Dumon <[email protected]>
>> Subject: Re: [Wt-interest] Cannot generate a safe linker
>> To: [email protected]
>> Date: Tuesday, 14 July, 2009, 4:31 PM
>> Norman,
>>
>> I can't help you, but maybe you can post your question also
>> on the
>> cmake mailing list?
>> Is this an error (do you get a working executable) or just
>> a warning?
>>
>> Regards,
>> Wim.
>>
>> 2009/7/14 norman <[email protected]>:
>>>
>>> Hello,
>>> I recently replaced my hard disk and have now
>> installed boost 1.39 using the macports, this worked well.
>>>
>>> My problem is that when I try to cmake wt I get this
>> errors:
>>>
>>> $ cmake ../ -DBOOST_DIR=/opt/local
>> -DBOOST_VERSION=1_39 -DBOOST_COMPILER=xgcc40
>> -DDEPLOYROOT=$HOME/Sites/wt
>>>
>>> ...
>>>
>>> http://paste.lisp.org/+1SHF
>>>
>>> Where as
>>> $ ls -al /usr/lib
>>>
>>> returns this:
>>>
>>> http://paste.lisp.org/+1SHF#1
>>>
>>> and
>>> $ ls -al /opt/local/lib
>>>
>>> returns
>>>
>>> http://paste.lisp.org/+1SHF#2
>>>
>>> There are the versions of libz.dylib and libssl.dylib
>> the first installed by apple and the second by macports when
>> I built the system.
>>>
>>> Googeling returns several massages to suggest that
>> CMAKE is getting confused, but nothing concrete as such.
>>>
>>> Any advise much appreciated.
>>>
>>> Norman
>>>
>>>
>>>
>>>
>>>
>> ------------------------------------------------------------------------------
>>> Enter the BlackBerry Developer Challenge
>>> This is your chance to win up to $100,000 in prizes!
>> For a limited time,
>>> vendors submitting new applications to BlackBerry App
>> World(TM) will have
>>> the opportunity to enter the BlackBerry Developer
>> Challenge. See full prize
>>> details at: http://p.sf.net/sfu/Challenge
>>> _______________________________________________
>>> witty-interest mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/witty-interest
>>>
>>
>> ------------------------------------------------------------------------------
>> Enter the BlackBerry Developer Challenge
>> This is your chance to win up to $100,000 in prizes! For a
>> limited time,
>> vendors submitting new applications to BlackBerry App
>> World(TM) will have
>> the opportunity to enter the BlackBerry Developer
>> Challenge. See full prize
>> details at: http://p.sf.net/sfu/Challenge
>> _______________________________________________
>> witty-interest mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/witty-interest
>>
>
>
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited  
> time,
> vendors submitting new applications to BlackBerry App World(TM) will  
> have
> the opportunity to enter the BlackBerry Developer Challenge. See  
> full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>




--
Sean Chittenden
[email protected]




------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to