Andrew Hartung wrote:
[]

>> otool -h /sw/lib/libgmp.3.dylib
> 
> Mach header
>        magic cputype cpusubtype   filetype ncmds sizeofcmds      flags
> 0xfeedface      18        100          6     9       1324 0x00000085

cpusubtype 100 is PPC970 = G5 (run "otool -hv", it will tell you 
ppc970). So this library was compiled on (and optimised for) a G5, and 
it fails when you try to run it on a G4 or earlier.

Try if rebuilding gmp-shlibs solves your problem.

This looks like a problem with the gmp-shlibs package or perhaps a 
libtool bug.

 From the gmp build log I see that it uses the compile flag 
-force_cpusubtype_ALL when it compiles the *.o objects, but it forgets 
this flag when it links the dylibs. The flag is there on the libtool 
command line, but not on the actual linker line; libtool drops it.

Srictly speaking, gmp would need to come in cpusubtype flavors.
Even if the -force_cpusubtype_ALL were used throughout, the resulting 
binaries are not the same when compiled on G4 or on G5, because it uses 
also the -mcpu=7450 or -mcpu=970 flags, depending on the build machine.

-- 
Martin



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to