[CM] FTH for Snd: SUCCESS!!
Fri, 09 Mar 2007 14:46:50 -0500
Sorry for all the churn today. My build of FTH finally completed and I
can make check successfully.
Darwin spinoza 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
powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build
To build FTH on OSX PPC there are least dependencies on GMP and
readline. (There may be others that didn't bark at me) I used Fink
unstable source packages in all cases.
It seems you MUST build with GMP, as trying to configure without it
doesn't avoid a call to gmp_asprintf() in the functions fl_inspect() and
fl_to_string() found at the top of src/numbers.c.
You can be fooled by configure's acceptance of the BSD readline
emulation in OSX 10.4 in usr/include. I spent a while tinkering with
trying to get it to work, but the implementation is pretty old (still
has max_input_entries from readline 4.1) so the expedient thing to do is
install Fink readline or equivalent.
As usual, I didn't read the README file quite as carefully as I should.
For me, this line worked the best:
./configure --with-gmp-prefix=/sw --with-readline-prefix=/sw
--disable-nls CFLAGS="-g3 -O2"
Even with it, I got the following complaints from the static link:
gcc -L/sw/lib -L/sw/lib -o fth-static fth.o libfth.a -lgmp -lreadline
-lncurses -lm -lc
/usr/bin/ld: warning multiple definitions of symbol _xrealloc
libfth.a(utils.o) definition of _xrealloc in section (__TEXT,__text)
/sw/lib/libreadline.dylib(xmalloc.so) definition of _xrealloc
/usr/bin/ld: warning multiple definitions of symbol _xmalloc
libfth.a(utils.o) definition of _xmalloc in section (__TEXT,__text)
/sw/lib/libreadline.dylib(xmalloc.so) definition of _xmalloc
/usr/bin/ld: warning multiple definitions of symbol _xfree
libfth.a(utils.o) definition of _xfree in section (__TEXT,__text)
/sw/lib/libreadline.dylib(xmalloc.so) definition of _xfree
cp fth-static fth
But the final product passes make check, so I'm happy for now.
Now on to make Snd-forth!!
Best and thanks, Charles