[CM] Building Snd-FTH on Debian unstable...
Charles Turner
vze26m98@optonline.net
Sun, 11 Mar 2007 19:23:58 -0400
Hi-
I had a chance to build Snd-FTH on a Dell L700CX running Debian
unstable, although not with it's most recent kernel:
Linux ballard 2.6.14-2-386 #1 Wed Dec 28 17:55:02 UTC 2005 i686
GNU/Linux
gcc (GCC) 4.1.2 20061020 (prerelease) (Debian 4.1.1-17)
The build went pretty much without incident except for the following
minor points:
On the FTH side, from CVS:
mkinstalldirs failed a couple of times, but this was where it was trying
to create /usr/local/share/fth when I didn't even have /usr/local/share.
make check failed with the following:
cturner@ballard:/usr/local/src/fth$ make check
#(cd . && aclocal -I m4)
#(cd . && autoconf && autoheader)
#(cd . && autoheader && echo timestamp > stamp-h.in)
for f in ./ficl ./lib ./src; do (cd ${f} && make all); done
make[1]: Entering directory `/usr/local/src/fth/ficl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/src/fth/ficl'
make[1]: Entering directory `/usr/local/src/fth/lib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/src/fth/lib'
make[1]: Entering directory `/usr/local/src/fth/src'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/src/fth/src'
(cd tests && make check)
make[1]: Entering directory `/usr/local/src/fth/tests'
#{ \
echo '# Signature of the current package.';
\
echo 'm4_define([AT_PACKAGE_NAME], [FTH])';
\
echo 'm4_define([AT_PACKAGE_TARNAME], [fth])';
\
echo 'm4_define([AT_PACKAGE_VERSION], [1.0.8])';
\
echo 'm4_define([AT_PACKAGE_STRING], [FTH 1.0.8])';
\
echo 'm4_define([AT_PACKAGE_BUGREPORT],
[mi-scholz@users.sourceforge.net])'; \
} >./package.m4
/bin/sh: -c: line 7: syntax error near unexpected token `}'
/bin/sh: -c: line 7: `} >./package.m4'
make[1]: *** [package.m4] Error 2
make[1]: Leaving directory `/usr/local/src/fth/tests'
make: *** [check] Error 2
On the Snd side, from the 8.9 release tarball:
I configured with ./configure --with-gtk --with-jack --with-forth, but
Snd bailed in the link step because there was no -lfth on the command
line:
cturner@ballard:/usr/local/src/snd-8$ make -n
(cd po && make)
make[1]: Entering directory `/usr/local/src/snd-8/po'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/src/snd-8/po'
gcc -Wl,-export-dynamic -O2 -I. -g -O2 headers.o audio.o io.o sound.o
clm.o xen.o vct.o sndlib2xen.o clm2xen.o snd-io.o snd-utils.o
snd-listener.o snd-error.o snd-completion.o snd-menu.o snd-axis.o
snd-data.o snd-fft.o snd-marks.o snd-file.o snd-edits.o snd-chn.o
snd-dac.o snd-region.o snd-select.o snd-find.o snd-snd.o snd-help.o
snd-main.o snd-print.o snd-trans.o snd-mix.o snd.o snd-env.o snd-xen.o
snd-ladspa.o snd-rec.o snd-kbd.o snd-sig.o snd-draw.o snd-run.o
snd-gutils.o snd-ghelp.o snd-gfind.o snd-gmenu.o snd-gdraw.o
snd-glistener.o snd-gchn.o snd-gsnd.o snd-gregion.o snd-gdrop.o
snd-gmain.o snd-gmix.o snd-grec.o snd-genv.o snd-gxutils.o
snd-gxbitmaps.o snd-gxcolormaps.o snd-gfft.o snd-gprint.o snd-gfile.o
snd-gxen.o snd-gprefs.o -o snd -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
-lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender
-lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11
-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -ljack -lsamplerate
-lm -lm
I put the following in my makefile:
GUILE_LIBS=-lfth
I guess there's no FTH_LIBS... ;-)
Of course I had to fiddle with xen.c to use the Forth functions in the
CVS to make the undefined refs to fth_printing_p and fth_new_eval go
away...
Things look good after some limited testing.
Thanks again! Charles
<vze26m98@optonline.net>