It's generally a good idea to move /usr/local/lib out of the way (e.g. temporarily change its name) when compiling things with fink. Fink has no way of preventing things in /usr/local/lib from overriding things which fink is trying to find within its own distribution area, and the results are unpredictable.
-- Dave On Nov 12, 2009, at 8:39 AM, Peter Skands wrote: > Hi. > > I'm trying to install cernlib-2005 on Snow Leopard (10.6). Currently, > sudo fink install cernlib-2005 > fails since cernlib-2005 depends on gcc44, which in turn fails to > compile on my > system. The installation of gcc44 gets quite far, but then fails > somewhere in > java, with the message (see below for full output): > > ld: absolute addressing (perhaps -mdynamic-no-pic) used in > ___gmpn_add_n from > /usr/local/lib/libgmp.a(add_n.o) not allowed in slidable image. Use > '-read_only_relocs suppress' to enable text relocs > > Q1: is gcc44 supposed to work without problems on 10.6 (i.e., is my > /usr/local/lib/libgmp.a the culprit)? > > Q2: since I really only need cernlib, is it possible to get an > alternative > version of cernlib-2005 which only requires the standard C compiler > you get with > XCode (4.2) ? > > The following is the last output commands from the gcc44 > installation, including > the failure: > > /bin/sh ../../../libtool --tag=CC --mode=link > /sw/src/fink.build/gcc44-4.4.1-1000/darwin_objdir/./gcc/xgcc > -B/sw/src/fink.build/gcc44-4.4.1-1000/darwin_objdir/./gcc/ > -B/sw/lib/gcc4.4/i686-apple-darwin10/bin/ > -B/sw/lib/gcc4.4/i686-apple-darwin10/lib/ -isystem > /sw/lib/gcc4.4/i686-apple-darwin10/include -isystem > /sw/lib/gcc4.4/i686-apple-darwin10/sys-include -W -Wall -Wmissing- > declarations > -Wwrite-strings -Wmissing-prototypes -Wno-long-long -I/usr/include - > g -O2 > -version-info 0:0:0 -no-undefined -lgmp -o libjavamath.la -rpath > /sw/lib/gcc4.4/lib/gcj-4.4.1-10 -version-info 0:0:0 -no-undefined - > lgmp > -avoid-version gnu_java_math_GMP.lo ../../../native/jni/classpath/ > jcl.lo > libtool: link: /sw/src/fink.build/gcc44-4.4.1-1000/darwin_objdir/./ > gcc/xgcc > -B/sw/src/fink.build/gcc44-4.4.1-1000/darwin_objdir/./gcc/ > -B/sw/lib/gcc4.4/i686-apple-darwin10/bin/ > -B/sw/lib/gcc4.4/i686-apple-darwin10/lib/ -isystem > /sw/lib/gcc4.4/i686-apple-darwin10/include -isystem > /sw/lib/gcc4.4/i686-apple-darwin10/sys-include -dynamiclib -o > .libs/libjavamath.dylib .libs/gnu_java_math_GMP.o > ../../../native/jni/classpath/.libs/jcl.o /usr/local/lib/libgmp.a > -install_name /sw/lib/gcc4.4/lib/gcj-4.4.1-10/libjavamath.dylib - > Wl,-single_module > ld: absolute addressing (perhaps -mdynamic-no-pic) used in > ___gmpn_add_n from > /usr/local/lib/libgmp.a(add_n.o) not allowed in slidable image. Use > '-read_only_relocs suppress' to enable text relocs > collect2: ld returned 1 exit status > make[6]: *** [libjavamath.la] Error 1 > make[5]: *** [all-recursive] Error 1 > make[4]: *** [all-recursive] Error 1 > make[3]: *** [all-recursive] Error 1 > make[2]: *** [all-recursive] Error 1 > make[1]: *** [all-target-libjava] Error 2 > make: *** [all] Error 2 > ### execution of /var/tmp/tmp.1.Riv867 failed, exit code 2 > Removing runtime build-lock... > Removing build-lock package... > /sw/bin/dpkg-lockwait -r fink-buildlock-gcc44-4.4.1-1000 > (Reading database ... 52202 files and directories currently > installed.) > Removing fink-buildlock-gcc44-4.4.1-1000 ... > Failed: phase compiling: gcc44-4.4.1-1000 failed > > Best regards, > Peter Skands > > ------------------------------------------------------------------------------ > 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-devel mailing list > Fink-devel@lists.sourceforge.net > http://news.gmane.org/gmane.os.apple.fink.devel > Subscription management: > https://lists.sourceforge.net/lists/listinfo/fink-devel ------------------------------------------------------------------------------ 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-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel