On Nov 24, 2009, at 8:23 PM, Martin Costabel wrote:

> Ben Abbott wrote:
> []
>> Is it possible that the wrong dylib is being loaded at run time? Is there a 
>> way to (safely) test the idea?
> 
> The other libstdc++ is loaded because it is pulled in by some of the dylibs 
> liboctinterp-3.3.50+.dylib links to, for example 
> /sw/lib/fltk-aqua/lib/libfltk_gl.1.1.dylib. You can see in which order the 
> dylibs are loaded by running octave as
> 
> env DYLD_PRINT_LIBRARIES=1 octave
> 
> Another env variables interesting in this context is DYLD_PRINT_BINDINGS (but 
> its output is enormous).
> 
> Note that I am not sure that this is really the cause of the crash.
> It would be interesting to see if others know about crashes that appear when 
> dylibs compiled with different versions of g++ are linked together.
> 
> -- 
> Martin

Looking at the libstcd++.6.dylib's for gcc4.2 and gcc4.4, it appears (to me) 
that compatibility problems are to be expected.

$ otool -L /sw/lib/gcc4.4/lib/libstdc++.6.dylib 
/sw/lib/gcc4.4/lib/libstdc++.6.dylib:
        /sw/lib/gcc4.4/lib/libstdc++.6.dylib (compatibility version 7.0.0, 
current version 7.13.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current 
version 124.1.1)
        /sw/lib/gcc4.4/lib/libgcc_s.1.dylib (compatibility version 1.0.0, 
current version 1.0.0)

$ otool -L /usr/lib/libstdc++.6.dylib 
/usr/lib/libstdc++.6.dylib:
        /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current 
version 7.9.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current 
version 123.0.0)

Is there a simple way to build fltk using gcc 4.4?

Ben

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to