Skip to Content.
Sympa Menu

mathemagix-devel - Re: [Mathemagix] static variables

Subject: Mathemagix

List archive

Re: [Mathemagix] static variables


Chronological Thread 
  • From: Julien Wintz <address@concealed>
  • To: address@concealed
  • Subject: Re: [Mathemagix] static variables
  • Date: Mon, 29 Oct 2007 04:24:14 +0100

On 28 oct. 07, at 22:36, Joris van der Hoeven wrote:

On Fri, Oct 26, 2007 at 04:53:25PM +0200, Julien Wintz wrote:
Julien please update and check if everything goes fine on your Mac.

After an update everything compiles fine.

I take the opportunity to summarize the situation on mac.

First, the default readline provided with apple developer tools does
not fit well, some headers are missing. I therefore recommand to use
fink (http://fink.sf.net) to install readline. The configure becomes:

./configure LDFLAGS="-L/sw/lib" CPPFLAGS="-I/sw/include"

(I remind /sw is fink's folder).

Hmm, do we want to force users to have fink installed?
We can also ship our own version of readline...

This is usually the solution I also choose, especially when there are only few files to propose ... Do you experience the same problem with yours ?

g++ ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/
libmmxnumerix.0.0.0.so -bundle .libs/libmmxnumerix_la-
complex_ball_glue.o .libs/libmmxnumerix_la-real_ball_glue.o .libs/
libmmxnumerix_la-complexify_glue.o .libs/libmmxnumerix_la-
integer_glue.o .libs/libmmxnumerix_la-rational_glue.o .libs/
libmmxnumerix_la-numerix_glue.o .libs/libmmxnumerix_la-
floating_glue.o -L/Users/jwintz/devel/mmx/basix/build/.libs -L/sw/
lib ./.libs/libnumerix.dylib -L/usr/local/lib libbasix.dylib /usr/ lib/
gcc/i686-apple-darwin8/4.0.1/../../..//libltdl.3.1.0.dylib /usr/lib/
gcc/i686-apple-darwin8/4.0.1/../../..//libdl.dylib /usr/lib/gcc/i686-
apple-darwin8/4.0.1/../../..//libm.dylib /Users/jwintz/devel/mmx/
basix/build/.libs/libbasix.dylib /usr/lib/libltdl.3.1.0.dylib -ldl /
sw/lib/libmpfr.dylib /sw/lib/libgmp.dylib -lm
i686-apple-darwin8-g++-4.0.1: libbasix.dylib: No such file or directory

... there is a extra libbasix.dylib which is to be removed, I do not
know how (I'm not familiar with autotools and will probably never be).

Yes, this seems to be the error I am really worried about and
which I told you about at Nice. Closer investigation showed that
libtool does something strange here.

Oh I understand now. At the time, I thought the problem was something else, i.e. relatively finding the libraries at runtime because of DYLD_LIBRARY_PATH.

I guess that you did *not* do any make install for basix and mmxlight.

Indeed.

If you manually change the corresponding libtool libraries and
change the "installed" parameter to "true", then things suddenly compiled.

I've tried to changed the "installed=" parameter to "true" (without the quotes of course) by editing basix/libtool and numerix/libtool but that does not make any difference. Maybe I did something wrong ?

I think that there is a bug in the libtool version of the Mac.

We could try to propose a patch but that may take long time to develop and then, to be integrated. Another solution is choosing another, possibly cross-platform, build system ... maybe CMake which is more and more adopted by large scale projects.

Best wishes, Joris

Regards, Julien.



Archive powered by MHonArc 2.6.18.

Top of Page