[CLN-list] OS X 10.5.2 and CLN 1.2.0
Alexei Sheplyakov
varg at theor.jinr.ru
Sat Mar 1 10:58:07 CET 2008
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
Url : http://www.cebix.net/pipermail/cln-list/attachments/20080301/49ee588b/attachment.sig
More information about the CLN-list
mailing list