Hello! On Fri, Feb 29, 2008 at 09:13:29PM -0500, Gideon Simpson wrote:
I'm trying to compile CLN 1.2.0 on an OS X 10.5.2 x86 machine. I've let configure handle all the settings, i.e. I'm not setting an architecture or non-gnu compiler. I get the following error when building the library which seems to be related to libgmp. Any thoughts?
First of all, obligatory disclaimer: I'm not an expert.
/bin/sh ../libtool --mode=link g++ -o libcln.la -rpath /opt/lib -version-info 5:0:0 -lgmp -objectlist libcln.objectlist g++ -dynamiclib -single_module ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/libcln.5.0.0.dylib
[skipped the objects list]
/usr/local/lib/libgmp.a -install_name /opt/lib/libcln.5.dylib ^^^^^^^^ I think you need to link with the shared GMP library (instead of static one).
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
The linker seems to think in the same way. So, either recompile GMP as a shared library *and* than recompile CLN, or compile CLN as a static library (./configure --disable-shared). Best regards, Alexei -- All science is either physics or stamp collecting.