Subject: Mathemagix
List archive
- From: Julien Wintz <address@concealed>
- To: address@concealed
- Subject: Re: [Mathemagix] static variables
- Date: Fri, 26 Oct 2007 16:53:25 +0200
On 26 oct. 07, at 15:48, Grégoire Lecerf wrote:
Hello,
Hello Grégoire,
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).
With such a configuration, everything builds fine until numerix. The problem is the following one:
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).
So invoking the same line manually removing the extra libbasix.dylib, allows me to get numerix built but the compilation invoking "make" either in /path/to/mmx or /path/to/mmx/numerix/ or /path/to/mmx/numerix/build stops as shown below:
jwintz@teddysmis:~/devel/mmx/numerix/build$ 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 /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
jwintz@teddysmis:~/devel/mmx/numerix/build$ make
/bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -L/Users/jwintz/devel/mmx/basix/build/.libs -L/sw/lib -module -L/Users/jwintz/devel/mmx/basix/build/.libs -L/sw/lib -o libmmxnumerix.la -rpath /usr/local/lib libmmxnumerix_la-complex_ball_glue.lo libmmxnumerix_la-real_ball_glue.lo libmmxnumerix_la-complexify_glue.lo libmmxnumerix_la-integer_glue.lo libmmxnumerix_la-rational_glue.lo libmmxnumerix_la-numerix_glue.lo libmmxnumerix_la-floating_glue.lo libnumerix.la -L/usr/local/lib -lbasix -lltdl -ldl -lgmp -lm -lmpfr -lgmp -lmlibtool: link: warning: `/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../..//libltdl.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../..//libltdl.la' seems to be moved
rm -fr .libs/libmmxnumerix.0.0.0.so
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
make: *** [libmmxnumerix.la] Error 1
At this step I can run mmx *without moving any library nor installing*:
jwintz@teddysmis:~/devel/mmx/mmxlight/build$ ./mmx-light
--------------------------------------------------------------
|:*) Welcome to Mathemagix-light 0.2.5 (*:|
| This software falls under the GNU General Public License |
| It comes without any warranty whatsoever |
|------------------------------------------------------------|
| (c) 2001--2007 by |
| Joris van der Hoeven, Gregoire Lecerf, |
| Bernard Mourrain, Olivier Ruatta and others |
--------------------------------------------------------------
Warning: file '/Users/jwintz/.mathemagix/etc/boot.mmx' not found.
No package is loaded by default!
See documentation in 'doc/overview/shell.en.tm'.
1] use "basix" ;
2] 1+1 ;
2
3] bye
Here is the proof:
jwintz@teddysmis:~/devel/mmx/mmxlight/build$ ls /usr/local/lib/ | grep x
gettext
libgettextlib-0.14.5.dylib
libgettextlib.dylib
libgettextlib.la
libgettextpo.0.1.0.dylib
libgettextpo.0.dylib
libgettextpo.a
libgettextpo.dylib
libgettextpo.la
libgettextsrc-0.14.5.dylib
libgettextsrc.dylib
libgettextsrc.la
jwintz@teddysmis:~/devel/mmx/mmxlight/build$ tree ~/.mathemagix/
/Users/jwintz/.mathemagix/
|-- etc
|-- lib
|-- mmx
|-- system
`-- var
|-- history
`-- session
5 directories, 2 files
Grégoire.
Once I'll get a working version of mmx, i'll try to investigate the implementation of an Axel module.
Hope it helps, Ju.
- static variables, Grégoire Lecerf, 10/26/2007
- Re: [Mathemagix] static variables, Julien Wintz, 10/26/2007
- Re: [Mathemagix] static variables, Joris van der Hoeven, 10/28/2007
- Re: [Mathemagix] static variables, Julien Wintz, 10/29/2007
- Re: [Mathemagix] static variables, Joris van der Hoeven, 10/29/2007
- Re: [Mathemagix] static variables, Julien Wintz, 10/29/2007
- Re: [Mathemagix] static variables, Joris van der Hoeven, 10/28/2007
- Re: [Mathemagix] static variables, Julien Wintz, 10/26/2007
Archive powered by MHonArc 2.6.18.