On Sunday 12 April 2009 00:04:10 Jason Moxham wrote: > On Saturday 11 April 2009 23:25:53 mabshoff wrote: > > On Apr 11, 3:18 pm, Jason Moxham <ja...@njkfrudils.plus.com> wrote: > > > On Saturday 11 April 2009 22:21:04 mabshoff wrote: > > > > Opps, > > > > > > > > this OSX 10.4 specific issues slipped through my testing so far. The > > > > bug itself is generally present on OSX, but only leads to linking > > > > failures on OSX 10.4. > > > > > > > > g++ -dynamiclib ${wl}-undefined ${wl}dynamic_lookup -o .libs/ > > > > liblinboxsage.0.0.0.dylib .libs/linbox-sage.o -L/Users/Roed/Math/ > > > > sage-3.4.1.rc2/local/lib -lntl /Users/Roed/Math/sage-3.4.1.rc2/local/ > > > > lib/libgmpxx.dylib /Users/Roed/Math/sage-3.4.1.rc2/local/lib/ > > > > libmpir.dylib /Users/Roed/Math/sage-3.4.1.rc2/local/lib/libgmp.dylib > > > > / Users/Roed/Math/sage-3.4.1.rc2/local/lib/libgivaro.dylib > > > > -L/Users/Roed/ Math/sage-3.4.1.rc2/local//lib -install_name > > > > /Users/Roed/Math/ sage-3.4.1.rc2/local/lib/liblinboxsage.0.dylib > > > > -compatibility_version 1 -current_version 1.0 -Wl,-single_module > > > > ld: multiple definitions of symbol ___gmpz_clear > > > > /Users/Roed/Math/sage-3.4.1.rc2/local/lib/libmpir.dylib(clear.o) > > > > definition of ___gmpz_clear > > > > /Users/Roed/Math/sage-3.4.1.rc2/local/lib/libgmp.dylib(clear.o) > > > > definition of ___gmpz_clear > > > > <SNIP various other symbols> > > > > ld: multiple definitions of symbol ___gmpz_sizeinbase > > > > /Users/Roed/Math/sage-3.4.1.rc2/local/lib/libmpir.dylib(sizeinbase.o) > > > > definition of ___gmpz_sizeinbase > > > > /Users/Roed/Math/sage-3.4.1.rc2/local/lib/libgmp.dylib(sizeinbase.o) > > > > definition of ___gmpz_sizeinbase > > > > /usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: internal link edit > > > > command failed > > > > make[4]: *** [liblinboxsage.la] Error 1 > > > > make[3]: *** [install-recursive] Error 1 > > > > make[2]: *** [install-recursive] Error 1 > > > > Error installing linbox > > > > > > > > The problem lies in libgmpxx.la: > > > > > > > > # Libraries that this one depends upon. > > > > dependency_libs=' /tmp/mpr-1.0/lib/libmpir.la' > > > > > > > > Because there is libmpir.la instead of libgmp.la linbox links with > > > > > > > > -lgmpxx -mpir -lgmp > > > > > > > > and things blow up as above. The manual workaround to make > > > > libgmpxx.la depend on libgmp.la fixes the build. > > > > > > but then we get the problem , that it takes two go's to install it as > > > before , as it wont install until it's dependences "are in". > > > We could go back to sym-links , although would this have the same > > > problem as above? > > > > Hmm, I am not sure if symlinks would fix that. How about > > > > "make install" installs mpir and all those bits > > I don't know how to get it to not try to install everything when you do > make install > > I'll try a web search , some other project must of done this before :) > > > "make install-compat" installs all the *gmp* compat bits > > > > install-compat would depend in install, so we would have a two stage > > install. > >
How about We go back to the previous method, I'll make gmpxx depend on gmp (NOT mpir) Make install installs mpir make install-gmpcompat installs gmp Superficially the same as what you suggested , but , make install-compat is just an alias for make install , and what really happens is this make install installs mpir,mpirxx,gmp and fails to install gmpxx , but the return code is still 0 , and the error message is so far up the screen that most people would miss it , I did :( . When we type make install-compat , this just runs make install which succeeds as libgmp is now installed. And everyone is happy :) > > Cheers, > > > > Michael > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "mpir-devel" group. To post to this group, send email to mpir-devel@googlegroups.com To unsubscribe from this group, send email to mpir-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/mpir-devel?hl=en -~----------~----~----~----~------~----~------~--~---