Re: [Fink-devel] libtbb4 library has bad install_name usage

2017-03-15 Thread Abdulla Kamar
Hi Hanspeter

My apologies but I don't use Fink anymore, and am moving to Linux for
development. That seems like a reasonable fix to me, thanks for
investigating it.

On Wed., 15 Mar. 2017, 9:15 pm Hanspeter Niederstrasser, <
f...@snaggledworks.com> wrote:

> Abdulla,
>
> libtbbmalloc_proxy.4.0.dylib from libttb4 package links to
> libtbbmalloc.dylib, but doesn't use the full correct install_name from
> that library. This causes runtime failure for anything linking to
> libtbbmalloc_proxy.4.0.dylib.
>
> $ otool -L /sw/lib/libtbbmalloc_proxy.4.0.dylib
> /sw/lib/libtbbmalloc_proxy.4.0.dylib:
> /sw/lib/libtbbmalloc_proxy.4.0.dylib (compatibility version 0.0.0,
> current version 0.0.0)
> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
> version 1226.10.1)
> libtbbmalloc.dylib (compatibility version 0.0.0, current version
> 0.0.0)
> /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
> version
> 120.1.0)
>
> This is fixable by adding the following command to installscript after
> the "for I" loop:
>
> install_name_tool -change libtbbmalloc.dylib
> %p/lib/libtbbmalloc.4.0.dylib %i/lib/libtbbmalloc_proxy.4.0.dylib
>
> This is an upstream discussion about the underlying cause:
>
> https://software.intel.com/en-us/forums/intel-threading-building-blocks/topic/505370
>
> Hanspeter
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
https://sourceforge.net/p/fink/mailman/fink-devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

[Fink-devel] libtbb4 library has bad install_name usage

2017-03-15 Thread Hanspeter Niederstrasser
Abdulla,

libtbbmalloc_proxy.4.0.dylib from libttb4 package links to 
libtbbmalloc.dylib, but doesn't use the full correct install_name from 
that library. This causes runtime failure for anything linking to 
libtbbmalloc_proxy.4.0.dylib.

$ otool -L /sw/lib/libtbbmalloc_proxy.4.0.dylib
/sw/lib/libtbbmalloc_proxy.4.0.dylib:
/sw/lib/libtbbmalloc_proxy.4.0.dylib (compatibility version 0.0.0, 
current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current 
version 1226.10.1)
libtbbmalloc.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 
120.1.0)

This is fixable by adding the following command to installscript after 
the "for I" loop:

install_name_tool -change libtbbmalloc.dylib 
%p/lib/libtbbmalloc.4.0.dylib %i/lib/libtbbmalloc_proxy.4.0.dylib

This is an upstream discussion about the underlying cause:
https://software.intel.com/en-us/forums/intel-threading-building-blocks/topic/505370

Hanspeter

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
https://sourceforge.net/p/fink/mailman/fink-devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel