<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>I'm getting the same error when I attempt to compile (i.e "mex") the MP toolbox for Matlab:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><FONT class="Apple-style-span" face="Courier New">EDU>> m</FONT><FONT class="Apple-style-span" face="Courier New">ex gmp_prototype.c -I./ ./libmpfr.a ./libgmp.a</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New">In file included from gmp_prototype.c:2:</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New">mpfr.h:231: warning: use of `long double' type; its size may change in a future release</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New">mpfr.h:231: warning: (Long double usage is reported only once for each file.</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New">mpfr.h:231: warning: To disable this warning, use -Wno-long-double.)</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New">ld: ./libgmp.a(popcount.o) has local relocation entries in non-writable section (__TEXT,__text)</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"> mex: link of 'gmp_prototype.mexmac' failed.</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New">??? Error using ==> mex</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New">Unable to complete successfully</FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>As I am a bit of a neophyte when it comes to GCC and compiling in the Unix environment, I'd appreciate a bit of hand-holding regarding your solution. I don't know how to build a shareable library and I'm not quite sure what to do with the patch you list.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Specifically, does this have something to do with the "-mdynamic-no-pic" option? Is there a configuration file that I should change to remove the "-mdynamic-no-pic" option?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks in advance for your help.</DIV><BR><DIV><DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Bill</DIV></DIV></DIV><DIV><BR class="khtml-block-placeholder"></DIV></BODY></HTML>