<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hi!<DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>I have a problem linking with the gmp libraries, even though make check returns no error. I get</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>% gcc -o arbitrary arbitrary.c -lgmp -lm</DIV><DIV>/usr/bin/ld: /usr/local/lib/libgmp.dylib bad magic number (not a Mach-O file)</DIV><DIV>collect2: ld returned 1 exit status</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>or, with --disable-shared:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>% gcc -o arbitrary arbitrary.c -lgmp -lm</DIV><DIV>/usr/bin/ld: truncated or malformed archive: /usr/local/lib/libgmp.a (ranlib structures in table of contents extends past the end of the table of contents, can't load from it)</DIV><DIV>collect2: ld returned 1 exit status</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>I don't know if it is related, but during make install I get:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>% make install</DIV><DIV>[...]</DIV><DIV> /bin/sh ./libtool --mode=install /usr/bin/install -c 'libgmp.la' '/usr/local/lib/libgmp.la'</DIV><DIV>/usr/bin/install -c .libs/libgmp.lai /usr/local/lib/libgmp.la</DIV><DIV>/usr/bin/install -c .libs/libgmp.a /usr/local/lib/libgmp.a</DIV><DIV>ranlib /usr/local/lib/libgmp.a</DIV><DIV>ranlib: file: /usr/local/lib/libgmp.a(mp_clz_tab.o) has no symbols</DIV><DIV>ranlib: file: /usr/local/lib/libgmp.a(obprintf.o) has no symbols</DIV><DIV>ranlib: file: /usr/local/lib/libgmp.a(obvprintf.o) has no symbols</DIV><DIV>ranlib: file: /usr/local/lib/libgmp.a(obprntffuns.o) has no symbols</DIV><DIV>ranlib: file: /usr/local/lib/libgmp.a(repl-vsnprintf.o) has no symbols</DIV><DIV>chmod 644 /usr/local/lib/libgmp.a</DIV><DIV>----------------------------------------------------------------------</DIV><DIV>Libraries have been installed in:</DIV><DIV> /usr/local/lib</DIV><DIV>[...]</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>gmp version 4.2.1</DIV><DIV>gcc version 4.0.1 (Apple Computer, Inc. build 5247)</DIV><DIV>Mac OS X 10.4.8, PowerPC G5 Quad</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>% uname -a</DIV><DIV>Darwin pingvin.tp.umu.se 8.8.0 Darwin Kernel Version 8.8.0: Fri Sep 8 17:18:57 PDT 2006; root:xnu-792.12.6.obj~1/RELEASE_PPC Power Macintosh powerpc</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>% ./config.guess</DIV><DIV>powerpc970-apple-darwin8.8.0</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>% ./configfsf.guess</DIV><DIV>powerpc-apple-darwin8.8.0</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Claude</DIV><DIV><BR><DIV> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">--<SPAN class="Apple-converted-space"> </SPAN></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Claude Dion<SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><A href="mailto:claude.dion@tp.umu.se">claude.dion@tp.umu.se</A></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Department of Physics</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Umea University<SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>tel: +46 90 786 5043</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">SE-901 87 Umea<SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>fax: +46 90 786 6673</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Sweden</FONT></P> </DIV><BR></DIV></BODY></HTML>